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 2262FC6FA82 for ; Sat, 24 Sep 2022 02:37:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230079AbiIXChw (ORCPT ); Fri, 23 Sep 2022 22:37:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233215AbiIXChd (ORCPT ); Fri, 23 Sep 2022 22:37:33 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 825EA1559F8; Fri, 23 Sep 2022 19:35:56 -0700 (PDT) Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MZCgw1zkWzlVyS; Sat, 24 Sep 2022 10:31:24 +0800 (CST) Received: from kwepemm600005.china.huawei.com (7.193.23.191) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 24 Sep 2022 10:35:34 +0800 Received: from [10.67.102.118] (10.67.102.118) by kwepemm600005.china.huawei.com (7.193.23.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 24 Sep 2022 10:35:34 +0800 Subject: Re: [PATCH] xhci: print warning when HCE was set To: Mathias Nyman , , CC: , , References: <20220915011134.58400-1-liulongfang@huawei.com> <6b5a45f1-caf3-4259-77da-e36788f5b8a9@linux.intel.com> From: liulongfang Message-ID: <2648444c-2f2a-4d9b-8545-6677663adcf0@huawei.com> Date: Sat, 24 Sep 2022 10:35:33 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <6b5a45f1-caf3-4259-77da-e36788f5b8a9@linux.intel.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.102.118] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600005.china.huawei.com (7.193.23.191) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/9/22 21:01, Mathias Nyman Wrote: > Hi > > On 15.9.2022 4.11, Longfang Liu wrote: >> When HCE(Host Controller Error) is set, it means that the xhci hardware >> controller has an error at this time, but the current xhci driver >> software does not log this event. >> >> By adding an HCE event detection in the xhci interrupt processing >> interface, a warning log is output to the system, which is convenient >> for system device status tracking. >> > > xHC should cease all activity when it sets HCE, and is probably not > generating interrupts anymore. > > Would probably be more useful to check for HCE at timeouts than in the > interrupt handler. > Which function of the driver code is this timeout in? > If this is something seen on actual hardware then it makes sense to add it. > This HCE error is sure to report an interrupt on the chip we are using. > Thanks > -Mathias > . > Thansk, Longfang.