Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2741578rdb; Fri, 22 Sep 2023 07:16:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG5wZIC4GuayhmqAUSyOT3+tGRk8Ss8YlsiMs1mRNhoXOzxX4NZ0ywTP95+Rf2O1JOzkpaC X-Received: by 2002:a05:6a20:8e03:b0:13e:fb5e:b460 with SMTP id y3-20020a056a208e0300b0013efb5eb460mr4107574pzj.0.1695392207424; Fri, 22 Sep 2023 07:16:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695392207; cv=none; d=google.com; s=arc-20160816; b=SapauX4GO83VDlEZ4bDD054Ur8816tx0w6trlsG/wHkgfOadXlqaUeFoI+ySRy90o+ CZtT6uvEVlNjnLizXq6B7XfAMq2QOK0gqBUx3AXE9SfkcmlHxHAMUMd2ibll+Zvu769o 7aAzRoqSW3kXo8mlUbEuZ16J2UNIHXxPvj4zn3EGj7mKgikVOCUZ6bJLOBWZD0uR6nBX 1fxms2Exn8t5PB4GOBFZlVvaIzq6VNZ0HWBUxfvR1KSRiFp65fLhIFyNi0LmqstnH3rv gqK63FzAu6pARbXm6ZG7ezXkyMoZttbnsP279+0bGPiWRNBR2n+Ve7dhOCMCAwxJuKIA xcQg== 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=9fvlquRKDdN8BzFej834VJGNd03AEmT2q4t49hfl15k=; fh=xCBBkd0YkOswIbzaN2O6pWsC8oPFMkLFVJp3F8VW+xs=; b=F739QvdL9mO2vj4aU8I6oRa4HBAZBNyCSajDZ1HHF+gtAnvrMc6RgpjkqOfVlZcUn7 TX44mwmtJfGKIQsA6bViL7Kzx927H6YsvjZvsjprzKPM871a4T/iqXuZVsKyH49sdU1A 9249SbEWUWAz08CSjavD4p5NO1FtD+I5BLRNjbCG/gFrmKMHFX3IeHJ88jWiWjprkYLv +2VbNAT0ck9C26ydbvueVxDG4X/fqgwUONpBh2VUm3nBd7ovSD6OQsScAdaqdKvpKelD 9kO9SW8w6Mq4hC5TDuxUN7YIgN7VN6xqN5ui2FFzWnBdiVpQlm5/w3A9KGsT/QIMp8PL a8Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aPitWE9T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id d63-20020a633642000000b00577f4d85fd7si3700507pga.316.2023.09.22.07.16.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 07:16:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aPitWE9T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 4919C83B8241; Fri, 22 Sep 2023 03:40:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233424AbjIVKkC (ORCPT + 99 others); Fri, 22 Sep 2023 06:40:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233413AbjIVKkA (ORCPT ); Fri, 22 Sep 2023 06:40:00 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB8B5E8 for ; Fri, 22 Sep 2023 03:39:53 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D083BC433C8; Fri, 22 Sep 2023 10:39:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1695379193; bh=ClMmkQmtEvP1Zh8b7X6oZZjA1vgE2eFdOh0zMYLqaQg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aPitWE9T8fBhng7NWIhVaZpNJJxUWOSX8rV+HIZHHQZotbCSj1Wj28WLN41R2ITgZ vk/dgicrL+ZYtjW0kztYiwCJa7RKE5/oSNS4nzOLt7z3aPrb+zNjCJT4uwPzFp0zrq xsJ15YaCQ/+Wq3VQxf6k77i4Vze7sJtGnggZbvwc= Date: Fri, 22 Sep 2023 12:39:50 +0200 From: Greg Kroah-Hartman To: Prashanth K Cc: linux-kernel@vger.kernel.org, Hongyu Xie , Mathias Nyman , stable@kernel.org, Hongyu Xie , Mathias Nyman Subject: Re: [PATCH] xhci: Keep interrupt disabled in initialization until host is running. Message-ID: <2023092236-cogwheel-skied-0841@gregkh> References: <1695374501-22649-1-git-send-email-quic_prashk@quicinc.com> <2023092256-smudge-disallow-48d3@gregkh> <56e210a4-8106-db7a-f44d-e40421e5abf7@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56e210a4-8106-db7a-f44d-e40421e5abf7@quicinc.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Fri, 22 Sep 2023 03:40:28 -0700 (PDT) On Fri, Sep 22, 2023 at 04:03:26PM +0530, Prashanth K wrote: > > > On 22-09-23 04:00 pm, Greg Kroah-Hartman wrote: > > On Fri, Sep 22, 2023 at 02:51:41PM +0530, Prashanth K wrote: > > > From: Hongyu Xie > > > > > > [ Upstream commit 808925075fb750804a60ff0710614466c396db4 ] > > > > > > 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 > > > --- > > > drivers/usb/host/xhci.c | 34 +++++++++++++++++++++------------- > > > 1 file changed, 21 insertions(+), 13 deletions(-) > > > > What stable kernel(s) are you asking this to be applied to? > > > > greg k-h > Need this patch on v5.15, I had cc'ed "stable@kernel.org # 5.15", but looks > like it didn't work. Should I resend this with SOB and CC tags? Yes please. thanks, greg k-h