Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1871670rdb; Mon, 9 Oct 2023 05:52:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEpLt81xUj5PcZ6tueGj9n/U9gdwomNtrsps8nJ2yyhf5w6dOTpvzYyNHqwRAvqYnwWpBpD X-Received: by 2002:a9d:6396:0:b0:6c4:897a:31c4 with SMTP id w22-20020a9d6396000000b006c4897a31c4mr15923671otk.29.1696855941172; Mon, 09 Oct 2023 05:52:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696855941; cv=none; d=google.com; s=arc-20160816; b=pF5PZ7TuRsf74QZncXRiQpDDbT7W9IBfKMREEauRXwA15OOSZNHfIrXBKb1lqjtASy DvyKGXzUdQ2s8nH7GeMoqMkIY9/GUKpBlAFOU95z3Z6GesKFKreheGsq4A6YAdaKLIpD krkffznqefu6tx9gqd34PcP544UlM9xKM+MPkBPWFlaekLoxlFWSutmODQ68DtO7urkZ sS6vHjC2qUTbaPtFA877qIC6IMaMl0mcsroaf25Zq/8MwVnpYXeGcXYVbbB3o6unbs1R iHXWVw7mlZU3/twE2cGv2DbxAk1DoiQqaK7IopDVOTzVO5axdh0vjoM1GCWnxROgumby 5yQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uBICZsQjf+NjWasiOCBBvUNTepsicA7Br4Zh1urp9gc=; fh=7Qy6jwoj+V8cY+Xy5XwOHtj9n/ZeNlQgriSxcs+yvjc=; b=PDRLNA4cw+Fu1ZzodNJsV9vOXSHL1SoSS2wjgUrAHi4UV3PUow05qd0+fZoIezjd1i dtJGBNAaH1vboV+MtlMJgkJlGiYlOahXhxigeGsQeXsr+ZhgnZarxyTOB71mlHcoPhDQ im3Ci69fhJopDPA6yHYEzeM4V4SFQ3tqHDkuiZ7MuNC62lTI82fcoADTwqK7YtPC/o9l 7jkQfzOlPvosZR98sbIJaZ/N8ZMNsyGpAoqQmMQiLXyDc1hFbCLU6dj04l6tEFj8duvF 0Dur2xtYqg1KHNasP4IyAaHV6ivlNt2J/yoU1ctTBPMFVNZs9AZ4rEgPTjVjxJilTmlj D3NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lYXb87BJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id bx18-20020a056a02051200b00565e424cbc7si10374330pgb.109.2023.10.09.05.52.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 05:52:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lYXb87BJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id F0FD5804C1B1; Mon, 9 Oct 2023 05:52:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376561AbjJIMwG (ORCPT + 99 others); Mon, 9 Oct 2023 08:52:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346634AbjJIMwF (ORCPT ); Mon, 9 Oct 2023 08:52:05 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6939893; Mon, 9 Oct 2023 05:52:03 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 774D0C433C8; Mon, 9 Oct 2023 12:52:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696855923; bh=Gd/aUOkQ3dpFucjV6W8k2UydiSxe2oz68p9fiYKX+K0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lYXb87BJOIbZNHpULMLqKQHXJCHAzg69J5v6nPr8DqAzWt92Z0FH1J15o4p07MySj 1dKjpFLOKG8AGkZay3MfkzzdcEHqbQt3tPGIVnr9SxYNhNtBhcsC5+vwkK8KKQbec8 nt/xrOFgtgN6o144blUbzhMfZxnWQTIRQm9eFZjM= Date: Mon, 9 Oct 2023 14:52:00 +0200 From: Greg Kroah-Hartman To: Prashanth K Cc: stable@vger.kernel.org, linux-kernel@vger.kernel.org, Hongyu Xie , Mathias Nyman , stable@kernel.org, Hongyu Xie , Mathias Nyman Subject: Re: [PATCH RESEND] xhci: Keep interrupt disabled in initialization until host is running. Message-ID: <2023100943-underhand-wizard-6901@gregkh> References: <1696847966-27555-1-git-send-email-quic_prashk@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1696847966-27555-1-git-send-email-quic_prashk@quicinc.com> X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Mon, 09 Oct 2023 05:52:18 -0700 (PDT) X-Spam-Level: ** 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. And why is this only relevant for 5.15.y? thanks, greg k-h