Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3596837iog; Tue, 21 Jun 2022 01:56:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t34vzN64R2KFRe5PMieTPy60KLgcXKi25epXa5advJBvfzXtMzRbO9kWN+svRT6dybqe+8 X-Received: by 2002:a05:6402:d0a:b0:425:d455:452 with SMTP id eb10-20020a0564020d0a00b00425d4550452mr33975882edb.259.1655801767292; Tue, 21 Jun 2022 01:56:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655801767; cv=none; d=google.com; s=arc-20160816; b=EM0slz8uvNg+Ab9k469gsqBaG1cA/r1LWtcD08xQ26tuReyKGG77FjMqx3/AyKy06U BJlk5jtcINtwVN7L2DbGsGx5cEWg3R/ONhDaVJyUh//m9Dm4RgFeaPhdOTPSLM8J33yf yWFsiSTRlhUXCFSCRCHJ24tdMovT/zM9v6KgPlssLoiO4PlYic7tHUZ6AJjwrBsonTZ0 percUpO1C0I6MRxWVhH0X9GWuZ43SfjPxcKbe5k8AdkXg8VHTm5RqQ1rmB+FiLjcfjtX 9WSXE/v/Ow1IFDCtb8BJ+eJPayqewzPHot6DqFfgw0EeNoZuIFaWX6lqpsOi1qoLXJC+ nnBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=TLr5bIXN3wN/Mwu7SAsTCLI/Lv1JEM7ieGZZG80lmuc=; b=wYPmcCsmMOCrd0l9vpznhpnlVmsMqPt1xu60Axbs4UeqDnQd3zlKAB9qbUfZZV//2e 12ImPzEUCX9Erf8Iv+eiEUiPndl5stah+rPcygRKsLSsqkb/mJ0emhkCItphEGXHw3RL HBFBqf2vTa7vFGXViVi8LfLpOdIBhXFDl+H5pvkSIwea6VAMP1xH+474xfWeQK/eZ8cM lSN0cuZtF1rQ408x8Th9wILa11hDZYzZhRlsiWbnEWkgFOcUcxMVexcjaLz3lLxVaeFf Es+EHxyFS+Q6095gdjWejbe1TaLvCVnM2d4SHtJus/PgsqtBjzdahplJ6ZIL399/ofGb Sh1w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kz1-20020a17090777c100b00711bd5bbe4bsi2186094ejc.585.2022.06.21.01.55.41; Tue, 21 Jun 2022 01:56:07 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347838AbiFUIlB (ORCPT + 99 others); Tue, 21 Jun 2022 04:41:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229829AbiFUIlA (ORCPT ); Tue, 21 Jun 2022 04:41:00 -0400 Received: from nksmu.kylinos.cn (mailgw.kylinos.cn [123.150.8.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0294A25EBA; Tue, 21 Jun 2022 01:40:58 -0700 (PDT) X-UUID: 3d5c3b1c444f432aaf165b63d2ee9f5a-20220621 X-UUID: 3d5c3b1c444f432aaf165b63d2ee9f5a-20220621 Received: from cs2c.com.cn [(172.17.111.24)] by nksmu.kylinos.cn (envelope-from ) (Generic MTA) with ESMTP id 1520558665; Tue, 21 Jun 2022 16:43:16 +0800 X-ns-mid: postfix-62B18413-1929898908 Received: from [172.20.4.10] (unknown [172.20.4.10]) by cs2c.com.cn (NSMail) with ESMTPSA id E10173848654; Tue, 21 Jun 2022 16:40:50 +0800 (CST) Message-ID: <13e54c18-7a58-b6bd-0399-273a109ee42e@kylinos.cn> Date: Tue, 21 Jun 2022 16:40:50 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v5 -next] usb: xhci: disable irq during initialization Content-Language: en-US To: Mathias Nyman , Hongyu Xie , mathias.nyman@intel.com, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, 125707942@qq.com, wangqi@kylinos.cn, xiongxin@kylinos.cn References: <20220616083852.1264261-1-xiehongyu1@kylinos.cn> From: =?UTF-8?B?6LCi5rOT5a6H?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, NICE_REPLY_A,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,T_SPF_PERMERROR, UNPARSEABLE_RELAY 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 Hi, It looks fine. Thanks for all the advices and cleanups. On 2022/6/21 16:25, Mathias Nyman wrote: > Hi > > On 16.6.2022 11.38, 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 >> -- > Thanks, added. > Did some non-functional cleanups, mostly to the old debug messages this patch > moves around: > > https://git.kernel.org/pub/scm/linux/kernel/git/mnyman/xhci.git/commit/?h=for-usb-linus&id=2d1fa9b0b08bb841fde9136c249f632eb04a1e00 > > Let me know if you disagree with the changes > > -Mathias -Hongyu