Message ID | 20230531222719.14143-1-quic_wcheng@quicinc.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3221476vqr; Wed, 31 May 2023 15:40:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5O9lDkNvphV98GB3dsKSbP0vGfzqp7pQTA+i1+VDyJeKDCZCZvARVwQXv7IU+LOvUaPxRs X-Received: by 2002:a05:6a00:9a5:b0:641:39cb:1716 with SMTP id u37-20020a056a0009a500b0064139cb1716mr9343447pfg.20.1685572840936; Wed, 31 May 2023 15:40:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685572840; cv=none; d=google.com; s=arc-20160816; b=FYHwIQR5i1qwV6/L2xVLxun9Rqt/qMh9a7hbxu9Rg0q+V18OzoGh0NJvUtqZLcYtTg r1tNoWoj5cTG1RD2oDXb1DGZ7W55vycGKHOmfmY67R2dH1oHqdrtloJ0X7zq72q08QuP FitV+Z79pdcKlbmtomnq+cbTam4CtubnDp77E9UAbP18JBqmcdO+ngNCaWNu4VIbEld3 FDM+c1z7Pu7/552FWZTgBr2UTt4OkThH4XPcRx6lCvQnrQ68i+IffiKDclnSvvIlrsxJ X7XYKmiZFgkTnCYt4WrEUpI9rDMIR95bRueNfzkFK8g6nhndCbq08KWPptJ1DPz8OznA s/NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=rDJr7OT5DoV+Im0NhTFprT7s2ELhcPhDLHAUmYimpo8=; b=umK5AssAiQHGJ4EO4mtc3Ksmq0eBmOjfGLICOwL2KCxY7ueoiZ7cM56SDwCPzajHe1 qTysZjiCBA/Hu7TH9xVgb7wVTv6ZHrc1h0RTWaNOwbvFBESKmUDHzT+4ponRhQAGMa6u NJkwdj7EWTI4rgJCh9f+9VwnHyx19iJ5YTZcd9I2XxnW41HYaC9TEG/zjphkK+d5VXOs grA7HjTgeT+6LbYFVP2PsKOrfKz88hHjWoCUNj5elqg/o6jVMSXwtLOcl6+rJiD/HNar UXRBessnOTZPxC9EboB861ax8vyYpbNDUOMeDIz2o6Wr+ppxgIx8VhNTVtWCTQpWxwqQ NeXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=SS4YWWGP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id az9-20020a056a02004900b0053f01212571si1882859pgb.257.2023.05.31.15.40.28; Wed, 31 May 2023 15:40:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=SS4YWWGP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231244AbjEaW1i (ORCPT <rfc822;andrewvogler123@gmail.com> + 99 others); Wed, 31 May 2023 18:27:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229799AbjEaW1g (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 31 May 2023 18:27:36 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 712B211F; Wed, 31 May 2023 15:27:35 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34VLRdWq010495; Wed, 31 May 2023 22:27:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=rDJr7OT5DoV+Im0NhTFprT7s2ELhcPhDLHAUmYimpo8=; b=SS4YWWGPvpwK6BWb3cr0Q/VN1rM7hHa6cfoE+T9Mxn8gGIhbFmityntRsyJP533fR7eC ZsnhY+7v3PpE1gwmQ1AQE/0dQP9ETeIXEiX0pYccE+f+jmv70d7hgPLI739KIECs4iCX tyzTJUbLSXtlFDFHKvmtrFnRYjXxDJXmBNa7plhsnUjF6PTM/q2GgmAjly2Q63HfssrO DjXWiBcY/aTiMBucyNVhNX8xrxE2ucQhjwEgiM3BRbzrtrfF/Fbhd7WUsaBIsO/irj2s Eg91PIHWrjvM5EV/7okUTMH655YtRj/HOSQg12u2nePf1CADHXMyMVbJn5cu4OMo1Uik zw== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qx5pxhe4x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 May 2023 22:27:32 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34VMRVOq009725 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 May 2023 22:27:31 GMT Received: from hu-wcheng-lv.qualcomm.com (10.49.16.6) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Wed, 31 May 2023 15:27:31 -0700 From: Wesley Cheng <quic_wcheng@quicinc.com> To: <mathias.nyman@intel.com>, <gregkh@linuxfoundation.org> CC: <linux-kernel@vger.kernel.org>, <linux-usb@vger.kernel.org>, Wesley Cheng <quic_wcheng@quicinc.com> Subject: [PATCH v3 0/2] Avoid re-initializing XHCI HC during removal Date: Wed, 31 May 2023 15:27:17 -0700 Message-ID: <20230531222719.14143-1-quic_wcheng@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: BQB1MT9-MDh7TRAyu9ckjjMqoS1OySFo X-Proofpoint-ORIG-GUID: BQB1MT9-MDh7TRAyu9ckjjMqoS1OySFo X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-31_16,2023-05-31_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 priorityscore=1501 mlxscore=0 bulkscore=0 adultscore=0 mlxlogscore=331 lowpriorityscore=0 impostorscore=0 clxscore=1015 spamscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305310189 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767451226844894753?= X-GMAIL-MSGID: =?utf-8?q?1767451226844894753?= |
Series |
Avoid re-initializing XHCI HC during removal
|
|
Message
Wesley Cheng
May 31, 2023, 10:27 p.m. UTC
There is an extra amount of overhead being adding to XHCI HCD removal cases when the HCD needs to undergo a runtime resume. The xhc_reinit logic will attempt to restart the HC if there is a HCE observed during resume. However, in the removal case, this is not required as the XHCI stop/halt will execute the same operations. In addition, it isn't needed that the HC be placed back into the running state if it is being removed. Changes in v3: - Update xhci-plat to set the removal flag before issuing the runtime PM get Changes in v2: - Fixed spacing issue Wesley Cheng (2): usb: host: xhci: Do not re-initialize the XHCI HC if being removed usb: host: xhci-plat: Set XHCI_STATE_REMOVING before resuming XHCI HC drivers/usb/host/xhci-plat.c | 2 +- drivers/usb/host/xhci.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)
Comments
Friendly ping to see if there are any review feedback/concerns with this series? Thanks Wesley Cheng On 5/31/2023 3:27 PM, Wesley Cheng wrote: > There is an extra amount of overhead being adding to XHCI HCD removal > cases when the HCD needs to undergo a runtime resume. The xhc_reinit > logic will attempt to restart the HC if there is a HCE observed during > resume. However, in the removal case, this is not required as the > XHCI stop/halt will execute the same operations. In addition, it isn't > needed that the HC be placed back into the running state if it is being > removed. > > Changes in v3: > - Update xhci-plat to set the removal flag before issuing the runtime PM > get > > Changes in v2: > - Fixed spacing issue > > Wesley Cheng (2): > usb: host: xhci: Do not re-initialize the XHCI HC if being removed > usb: host: xhci-plat: Set XHCI_STATE_REMOVING before resuming XHCI HC > > drivers/usb/host/xhci-plat.c | 2 +- > drivers/usb/host/xhci.c | 3 ++- > 2 files changed, 3 insertions(+), 2 deletions(-) >
On 21.6.2023 22.46, Wesley Cheng wrote: > Friendly ping to see if there are any review feedback/concerns with this series? > Looks good to me. Seems that Greg already applied these -Mathias