Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1924822ybk; Thu, 21 May 2020 19:53:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwO1xRgseuUu5yPT8M3y7KTtQ7QQZYmRfpaQepxxBUprdlSVucEJPpZWvTY0cEsc4tsUBp8 X-Received: by 2002:a50:fd83:: with SMTP id o3mr1314209edt.329.1590116004671; Thu, 21 May 2020 19:53:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590116004; cv=none; d=google.com; s=arc-20160816; b=bNsYje6mQliLj821euOWll44ue9frrwCZDcKsrhLWmefqh1Dy22pTwRarGaXQRl6ZT LYeqlmP4dHFfRhsU5M7bvxYfhAmrULlIxrdWbx2xFkFuQgs7+4ww2icvTcFEHla6ZDQJ IpPBEAawMjsnulYkBgLjzLrVgKOnNeqqeFpPJD2SxFRySgrnutNrhkmiSkU6ztGwGIN9 OHqkMthCfiwQyiXoD1JW9Vi3x9vAbl39c96ZwGwPd7dD019Sg78kjnQbH78BZnWQKHBX vGa73YWAlM5wmrgt6m6Ig+QB3o3QSdXvTzfqDrPNcp6fIqBg9dtjIxQaOx9Xs1AxknC+ BI/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=7Gevwz43wdicXbigaIpbO7U7ziW6ObW2VIL78VWBgQo=; b=R4U5SC4b52JKStGqsXIzSsZu8YIMvtKcskEPEKiaO1TN/h6gbctE3nJyaEUyXI9PJK EDcljaltd5iLGlzrc6WS3jvoPXfpi/FtS9N9FfvKoCy9QXsvDby15WXoc87kY9EkiT8G vrtM7m1FHH+KG2YboeZ6gRDd7mtjSRy4xVh6RwK6NtncsWrslGyTERNLDiuf3SJ8Fbai gK52Dph22CQWmcoKndGeS4hdDQ72Y8MvPHbkTNsOFv2J8KlTs2vCVtK9eF55CU2bfqOi MTlpQQ7dGoEYawV/4Xf1nwHl4bnyPgGiKCCguahLa1UvwyCvw5z+8lPKFgexXLbL0wsI 0bHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si165413eds.547.2020.05.21.19.53.02; Thu, 21 May 2020 19:53:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727897AbgEVCvO (ORCPT + 99 others); Thu, 21 May 2020 22:51:14 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4883 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727055AbgEVCvO (ORCPT ); Thu, 21 May 2020 22:51:14 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 7E46A9938208B36C1500; Fri, 22 May 2020 10:51:11 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Fri, 22 May 2020 10:51:03 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH net-next 5/5] net: hns3: add a print for initializing CMDQ when reset pending Date: Fri, 22 May 2020 10:49:46 +0800 Message-ID: <1590115786-9940-6-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590115786-9940-1-git-send-email-tanhuazhong@huawei.com> References: <1590115786-9940-1-git-send-email-tanhuazhong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When initializing CMDQ fails because of reset pending, there is no hint for debugging, so adds a log for it. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c index 7f509ef..64a1d0bd 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c @@ -426,6 +426,9 @@ int hclge_cmd_init(struct hclge_dev *hdev) * reset may happen when lower level reset is being processed. */ if ((hclge_is_reset_pending(hdev))) { + dev_err(&hdev->pdev->dev, + "failed to init cmd since reset %#lx pending\n", + hdev->reset_pending); ret = -EBUSY; goto err_cmd_init; } -- 2.7.4