Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1216103iog; Thu, 16 Jun 2022 01:16:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1suYk6FhdYsMIquYON4yFRLwOkhGl1QUxJPy4NHiK4gfjdf3m7jlPObZqnfntnnSdt1cCNs X-Received: by 2002:a05:6a00:26cf:b0:4f6:fc52:7b6a with SMTP id p15-20020a056a0026cf00b004f6fc527b6amr3637862pfw.39.1655367377418; Thu, 16 Jun 2022 01:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655367377; cv=none; d=google.com; s=arc-20160816; b=ALIHrTKgzLaG/tMQMxudjKQ335xA2ffrsreqCn+KQ/cKodkXlHje9nuvIFStcpRisz z11XR5ryRV8a6RlbKZm7kSPBqIZ42R/y0FFj3YuhMfEm2SFo8iYMofuEBPWgu4DDiK7Q 4zeqnCrx4nI8YcY/Dm8YPch57xa/yRGmvZ4xyADMknp63hToPPXbVag7/IaDds+McnGG US82ysjCTrUL/3l0usJR3rZLMjylKvwOo2k9b0rQu5he/XxpaVwD6Sdmrd9DvlccLvEs lQ8OBMW8WlHo2xMNEwkZU+vFsijm/3brbCMYY7eyQazzeKmqQmwZ5mdfwLVDkD463buS MagQ== 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=VvAhdwQJ+B6u2SbY+OZAcvNKz4f0iI2zPYJaQ0JShlw=; b=uH/6kDAe0OAX30Ihs9zyhkaP3EKj3ZpFto4v2y8FNRnRsbYwgz3xBXjyozv54Q3vwu yu/OVXgvTwpAAsEPmVOoBYOhyn2b1h638dB38w3Ub7q9NZWUTUy9Acjc/Q9F8J6UB2IE tVbtlR3Be6CqBIpzB5iKtEL79KjE2k/Sq5kPaicRRFtAe4HonCNolQNGhjMD9i+1FcVi 10VnDFs9IcsZ7vQDb30bU2bC3kZ3WI1PwrbR9Psbrjmy0Pt6UDMk8b5kWaHQNtscjHVB SsQ3JU0CQV81YfHvKsUPh7fXyXlyyRBi2BlH9Khku2IhUvHscmo0KuRcWQN+PZDyMTVI CgLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oXjdS09w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i12-20020a636d0c000000b00401b30446b0si1539587pgc.216.2022.06.16.01.16.04; Thu, 16 Jun 2022 01:16:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oXjdS09w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359674AbiFPIMV (ORCPT + 99 others); Thu, 16 Jun 2022 04:12:21 -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> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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.