Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp57081rdg; Tue, 10 Oct 2023 04:18:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHxsx2Xpp7NId27Gbcwg32HHFCsvruscpnIWxwjNU+Cmq8lP+Eac8lYFfIr6X3VFmF6wxpd X-Received: by 2002:a05:6358:5289:b0:13a:4f34:8063 with SMTP id g9-20020a056358528900b0013a4f348063mr18432856rwa.32.1696936727983; Tue, 10 Oct 2023 04:18:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696936727; cv=none; d=google.com; s=arc-20160816; b=B+cxJqIteOuUJ3Z90g/mfrOQeB/fOfGE++UdN3dTpnVIsRj0OaKCgIpI7aRJ2C/qP1 s0G3jot71W/W8ypv+Z2T0S6mk+tn2x+Lwbj8pHqcehzXAv9OgkUH8BB3tBUcr0c2xGs0 wl1+QEg3uH8HhG7LHHLzuzajKwKvnuNKIgx8fpA66wcM+162+lV78zD7qCFdzyusejxf owDp9w6Dw8hOn/4blDgtuwiwGCUjuJiZEGhmW4K4H2vBjuB1P9lfk1TKWt98MPxEHHYA FR4wn5IcXQzCBmotL7UO790Bm6iKH4lQrrg1qZEvPfF0UdyxyJEwIpk8YZlId+JKpq3B uIiw== 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=39m/K85h1liuT8yCiWy3O5wS5nYQ29GbFqmlFI7bb98=; fh=7Qy6jwoj+V8cY+Xy5XwOHtj9n/ZeNlQgriSxcs+yvjc=; b=NSnz1Bw0Jrej0Vk0AVz2aT8NxomrrqQWRkWhGMS7R2M2Ckb0ZdlD8i3UgjxiFDCLjC DWwKUcxtRpOwhRGJHrbKWJg8+zpKKLhfld9pfxdKRyTlC3XsCzyws7MxPw+0VyoraNw3 HXa9vXuABKcIdL72JqkVt2QpPz9pgbLPUIcEJmgG5OPXVEtf3+MWOllw8qwNoEGF7flT LyxFSnMTI5mL6K4NEk7LkcZz2lNxpTtKmIJpmMTvTCz1f8XNyfd0AN2FqdXVTbGy1DKd BqAeyb1qfJtJJDac8/AKqZkhw0fz38VbKZ+mEwP/Sk2DTMNtagiteMTL3OfjUZEqokej Q/bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yV4YC2Q4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id on6-20020a17090b1d0600b0027cf3fd376bsi579209pjb.28.2023.10.10.04.18.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 04:18:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yV4YC2Q4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id B58C58153D2F; Tue, 10 Oct 2023 04:18:46 -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 S231383AbjJJLSl (ORCPT + 99 others); Tue, 10 Oct 2023 07:18:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231348AbjJJLSi (ORCPT ); Tue, 10 Oct 2023 07:18:38 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DB6FB6; Tue, 10 Oct 2023 04:18:31 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97664C433C7; Tue, 10 Oct 2023 11:18:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696936711; bh=yqS+VZM/cGBrRdLkNNqf/ekOvYWhuSMttPizxpeTXLk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yV4YC2Q4aA4fNLPu8MjLymDmJ2JyFbuqkeCn7yBFGJ+gwjhHvpK5VYRV0JH6asKP0 VD3cRuGcPjxnicUwqRUP/4dYT5/NBZ4Cq27G6FUejNVwjgoYBF3+Xvy4bf45mnudH2 0f+pmA4tilEFFygGrxMWQuwh9PP89Qn6XReY/0Vg= Date: Tue, 10 Oct 2023 13:18:28 +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: <2023101043-muscular-risk-065f@gregkh> References: <1696847966-27555-1-git-send-email-quic_prashk@quicinc.com> <2023100943-underhand-wizard-6901@gregkh> <5f9b483a-ec7e-05f4-4472-57e2300f2c01@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5f9b483a-ec7e-05f4-4472-57e2300f2c01@quicinc.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, 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 04:18:46 -0700 (PDT) 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. thanks, greg k-h