Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp212759ybh; Fri, 6 Mar 2020 19:53:36 -0800 (PST) X-Google-Smtp-Source: ADFU+vuI1RSXHe0g68L/+uwEyGHeSUXyxjUzAyF9u/A1B5cgj/B1ReexG04mwzv7jLwIqhv73PVl X-Received: by 2002:a9d:5551:: with SMTP id h17mr5145205oti.360.1583553216199; Fri, 06 Mar 2020 19:53:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583553216; cv=none; d=google.com; s=arc-20160816; b=BZwNPv6H2mYOnPDWtdvT2PirnPR82lR+2X5jfzaIislQssMbjF5rDyXCQnSiWJsPP1 O75jgCmH0tSlcCBZ+aTDtf41xFFc00X5/AF0DjLgjzQCuK2KqTqNoPyYocDnWl48zjYa NJZVqVCELrKcABmXk+TDzjsr2GEMlsoVix4c0yd6jqJH67BqpW+v5wsUIDIFJi4n/ZWf /fs7QLFwQaFRfhleZrYeylwQ73iIrjgtgL96JeoTkUQE1uGhasEG2fcNw1iAYD2dqB+A kD1hNr2U33nCYZ2KI5WArEihFHOtFa54XOLDE+LTqlKOy8/cj0aI3YT9GFh5p8TdK8wO tIwA== 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=uT2dhf1bb/cUWOP9NNKZ3rXOq5GSv/lc2hzacFBO40o=; b=dqE0mO4M7MPF0YHMXKWMM19s3lDwu8pcNB537ewvohelCfIRqv4vcx+gg6hC53awdN gMRhgJq7J7gv8EQWzvMq2Cz0TGY89frLm7+lyiZJCW7kYxjN6E2E9Kzq8Tvwoiyv7ecc m3lU1NXhgUZFVsY/Z7u0sDh+wwDpnz9CzPydVpA6IzUjs+oJViONmQHG0VO+VAFS6WBG SXggKafohobuFvg8PelCHSa4UiZOXWh+AVo5pw9mB9b8UdP+klUMPONC9MJkhJ7i+Fie NgBlAXdfk3QBhHD4W/mA16vOg9lxukUEfo2x8oD0YVtiqMQvZDwYOG/sSFXIAiYtzRhN KUnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4si2351916oto.217.2020.03.06.19.53.24; Fri, 06 Mar 2020 19:53:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727334AbgCGDwn (ORCPT + 99 others); Fri, 6 Mar 2020 22:52:43 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:11602 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726269AbgCGDwd (ORCPT ); Fri, 6 Mar 2020 22:52:33 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 0FC4ED79C3F7489753D0; Sat, 7 Mar 2020 11:52:29 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Sat, 7 Mar 2020 11:52:20 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH V2 net-next 6/9] net: hns3: print out status register when VF receives unknown source interrupt Date: Sat, 7 Mar 2020 11:42:47 +0800 Message-ID: <1583552570-51203-7-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1583552570-51203-1-git-send-email-tanhuazhong@huawei.com> References: <1583552570-51203-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 received an unknown vector 0 interrupt, there is not a helpful information for user to realize that now. So this patch prints out the value of the status register for this case, and uses dev_info() instead of dev_dbg() in hclge_check_event_cause(). Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c index d659720..f199a23 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c @@ -2002,7 +2002,10 @@ static enum hclgevf_evt_cause hclgevf_check_evt_cause(struct hclgevf_dev *hdev, return HCLGEVF_VECTOR0_EVENT_MBX; } - dev_dbg(&hdev->pdev->dev, "vector 0 interrupt from unknown source\n"); + /* print other vector0 event source */ + dev_info(&hdev->pdev->dev, + "vector 0 interrupt from unknown source, cmdq_src = %#x\n", + cmdq_stat_reg); return HCLGEVF_VECTOR0_EVENT_OTHER; } -- 2.7.4