Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp611410rdg; Tue, 10 Oct 2023 23:26:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5CKFxcQ1YFMumdRe5lIPP1EAZ9SBJ8aksmR2oUXJX+gqPbsXLjkcKuY39EqNSl1oaq1LS X-Received: by 2002:a17:902:d702:b0:1c5:f4c7:b4e4 with SMTP id w2-20020a170902d70200b001c5f4c7b4e4mr16707185ply.39.1697005585755; Tue, 10 Oct 2023 23:26:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697005585; cv=none; d=google.com; s=arc-20160816; b=VDXf/yEK8mwxKGAfH+l0nVv0/gh51can3dtI4H7sXDJdl45uJ75gGhdyXE4UOVePXY O0PyFZ7tmovRLc/0m5v5SyWiYRX9eKpH8tVf/Cv8bk/0pDiIo/0ewOPx2/JrIy5RM/EC 66W47zFK2B0kK7oVlTzMrqSy3sWZbYckal51H+YG1skvAXbD09JW1WbYVj6ou+0zGKKy Pwktbl3drXgCtmujkeVq8Vzbbs8LkK/WdFzk1jsketstwGmjb8ec0FsXIVDBzUfFvWiz 0HvNt4Wr1JbVcEoPHrSuUHubb3pYi5ft7LEqx75On7yrOH9/WzRZUiEBrLDKaaJ0OM1w hmzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=FNcW6uVn2Ym9wH75Rqrq2d8PLHk+LRw2BARKhFE40V0=; fh=SE+t0vNX+dl9lJfBKi2nu50LRd1EObJ1FR61Pm+IpE0=; b=jI5wok0hB/kHesKm8oVw38d2jk64BzLmj/JQ+qJsUxQGSFgUb332pZr1utwIfHZQ9N VmUHDNJkrXq9l+O8T7jCRP51sUYMocZwoI/+2l+k32MtuJMnGJt28YIhIlh7rPOBx4zA i+CzWILrCoyt7fqiw1ip22Z6dXUWAQWCpBp0YbqISY+XVJE+2a6hKUppn0D0IZTvotiM rLre45Kj5FaQ5YpGU74uwKSZB7umsOStj03MJyrAd3LN/8J6CfcR08aJqn0LnRA1/iG9 IQRS8PeW2C1lISvT4kHiNljfBFdm8d9mv7uEIlhsOK6ziiiwHDzNhuiifQsm1SgJCxck hHGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=KBrDM29O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ij30-20020a170902ab5e00b001c9b5d2c3fasi2961029plb.523.2023.10.10.23.26.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 23:26:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=KBrDM29O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 97F48807479F; Tue, 10 Oct 2023 23:25:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344778AbjJKGZL (ORCPT + 99 others); Wed, 11 Oct 2023 02:25:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344210AbjJKGZK (ORCPT ); Wed, 11 Oct 2023 02:25:10 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D91F93; Tue, 10 Oct 2023 23:25:08 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39B5tbkx006984; Wed, 11 Oct 2023 06:24:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=FNcW6uVn2Ym9wH75Rqrq2d8PLHk+LRw2BARKhFE40V0=; b=KBrDM29OU8qw2ZNb7/fCxSXM/AVIs2+CN0UVEwX/mPtH3j3xInQ1tLxoovLZlAG6JgQU Hc5DQG2ub7ElNnlri+TuZ7RfCtS631nlPRvZFdf7kF0rJFlqhL7AwRpucre2yBRIOpsz 64IBpxFsKp1NKzziTHfotm9ysK8nkVRqquhJUNZcwlzVKueiK46bJ3VWWFiw4q/HQKSw irIVFuMWyoj8Rmi6QwOmaH3fND502mxwPBfarT8tBdsFE3iHpi4IW2NAxRoavnfGEyR2 s/HUykKeVETGmtVoaXKRyXLoBfXffthJnrSN8cM1BYhpiC5xJHhzsFvfo7wznT8KrKkl Mw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tmymaas74-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Oct 2023 06:24:36 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39B6OZ4t023306 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Oct 2023 06:24:35 GMT Received: from [10.217.219.52] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Tue, 10 Oct 2023 23:24:33 -0700 Message-ID: Date: Wed, 11 Oct 2023 11:54:29 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH RESEND] xhci: Keep interrupt disabled in initialization until host is running. Content-Language: en-US To: Greg Kroah-Hartman CC: , , Hongyu Xie , Mathias Nyman , , Hongyu Xie , Mathias Nyman References: <1696847966-27555-1-git-send-email-quic_prashk@quicinc.com> <2023100943-underhand-wizard-6901@gregkh> <5f9b483a-ec7e-05f4-4472-57e2300f2c01@quicinc.com> <2023101043-muscular-risk-065f@gregkh> From: Prashanth K In-Reply-To: <2023101043-muscular-risk-065f@gregkh> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: l2XiBKCgwb9Gs62g278yteWNLBgv8YYH X-Proofpoint-GUID: l2XiBKCgwb9Gs62g278yteWNLBgv8YYH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-11_03,2023-10-10_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 adultscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=624 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310110056 X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,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: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 10 Oct 2023 23:25:15 -0700 (PDT) On 10-10-23 04:48 pm, Greg Kroah-Hartman wrote: > On Tue, Oct 10, 2023 at 02:34:44PM +0530, Prashanth K wrote: >> >> >> On 09-10-23 06:22 pm, Greg Kroah-Hartman wrote: >>> On Mon, Oct 09, 2023 at 04:09:26PM +0530, Prashanth K wrote: >>>> From: Hongyu Xie >>>> >>>> [ Upstream commit a808925075fb750804a60ff0710614466c396db4 ] >>>> >>>> irq is disabled in xhci_quiesce(called by xhci_halt, with bit:2 cleared >>>> in USBCMD register), but xhci_run(called by usb_add_hcd) re-enable it. >>>> It's possible that you will receive thousands of interrupt requests >>>> after initialization for 2.0 roothub. And you will get a lot of >>>> warning like, "xHCI dying, ignoring interrupt. Shouldn't IRQs be >>>> disabled?". This amount of interrupt requests will cause the entire >>>> system to freeze. >>>> This problem was first found on a device with ASM2142 host controller >>>> on it. >>>> >>>> [tidy up old code while moving it, reword header -Mathias] >>>> >>>> Cc: stable@kernel.org >>>> Signed-off-by: Hongyu Xie >>>> Signed-off-by: Mathias Nyman >>>> Link: https://lore.kernel.org/r/20220623111945.1557702-2-mathias.nyman@linux.intel.com >>>> Signed-off-by: Greg Kroah-Hartman >>>> Cc: # 5.15 >>>> Signed-off-by: Prashanth K >>>> --- >>> >>> Any specific reason you missed adding the extra blank line in this >>> version of the backport that the original added? That is going to cause >>> problems in the future if other patches are added on top of this that >>> would be expecting it because it is that way in Linus's tree. >>> >> >> Thanks for pointing out, i removed it while resolving some merge conflicts. >> Will add it back in next version. >> >>> And why is this only relevant for 5.15.y? >> >> I'm not really sure why this was only ported from 5.19 onwards and not >> present in older kernels (could be because of dependencies/conflicts). >> >> But anyways im backporting it to 5.15 since an irq storm was seen on a qcom >> SOC working on 5.15, and this patch is helping solve it. >> >> Should I change the CC to just stable kernel (without mentioning kernel >> version) ? >> something like this -- Cc: > > No, let us know what kernel version this is to be applied to so we know, > if you only think this is relevant for 5.15.y as you have tested it > there, that's fine, I just wanted to be sure. We tested it on 5.15 for over 20 hours and didn't see any issue. Will send a new patch after adding the newline. Thanks, Prashanth K