From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5E3FC43334 for ; Thu, 16 Jun 2022 08:12:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359662AbiFPIMU (ORCPT ); Thu, 16 Jun 2022 04:12:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359602AbiFPIMT (ORCPT ); Thu, 16 Jun 2022 04:12:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E6355D64D; Thu, 16 Jun 2022 01:12:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C0FCC61D26; Thu, 16 Jun 2022 08:12:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90DA5C34114; Thu, 16 Jun 2022 08:12:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655367138; bh=mWVWvlbNF5oM92o+SC6qXGqar6mMj/mWssSgx/VPIsY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oXjdS09w8tl6WHwt1elnRwRw61srgTuQepEqDujX/nKPw+I5ZIWuRD9rqzmRmk0ic u30mLIYhthZxNk/xyMVzl47T25FztdspG8l3ZUwBleKi+NoWTzBh9bsVooqZTGeapS uy29WF7wFHy0pbTS8X5g69cocaACtb8QI4vTbOiE= Date: Thu, 16 Jun 2022 10:12:14 +0200 From: Greg KH To: Hongyu Xie Cc: mathias.nyman@intel.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, 125707942@qq.com, wangqi@kylinos.cn, xiongxin@kylinos.cn, Hongyu Xie , kernel test robot Subject: Re: [PATCH v4 -next] usb: xhci: disable irq during initialization Message-ID: References: <20220616080933.1238309-1-xiehongyu1@kylinos.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220616080933.1238309-1-xiehongyu1@kylinos.cn> Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Thu, Jun 16, 2022 at 04:09:33PM +0800, Hongyu Xie wrote: > 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. > > Signed-off-by: Hongyu Xie > Reported-by: kernel test robot the test robot did not find this original problem, it only found problems with your original submission, which is different.