Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3460000pxb; Sun, 24 Oct 2021 02:48:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDHdUtrAJNhvJCu98ngZHP6OVLcHLxGcRfzH0wxUmXJ/QazFm/01amscRc4fOREKr5fuou X-Received: by 2002:a63:9316:: with SMTP id b22mr1144696pge.463.1635068901756; Sun, 24 Oct 2021 02:48:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635068901; cv=none; d=google.com; s=arc-20160816; b=PrMLz57zA6kq/N+JRCqcMpLUI7026RudqXScgGPDaslIaf+ndzoyblttns6e+/Y+UU TLpSedyX+AxD3Qb6GuM8lX3KltAFV1PceCY/5nf3hjjB97rcrZb9j+D91CRltaPjbttT wDajZVA2eMOYKgCaRw8LIVarcSEXF9YRpRLU7UjDUDBU3z9TRTDPkYf0POUSLswL5Gr2 cGUuDFPg/E9iRGL6G7WN2e7BoHNkt6axCDsHs4PleO/OdSpvWlRDFVDZat0MItfPTuVc CWwLjTpXWyukG4RYyVMon3kcHbu+6G7ZTNyxIKhnmetKtaZ81V6UlBdm47Lzexsv/Fem GlNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=nQ7HZX+QoNOsSTROPCUsVhple/fj9SFTOJmDbsNkytY=; b=tzvKppk4pPl9DT9vEgs1c6QhFyWcbeMgPt7vExED54nN0b5pX9F/+qa382ZsPqKMYu fuHAhMPCcTSgyn/iwvIH5fQw2rFoQTX2Vni0wrLoIK9bhrAn2JyGJnFiDyIy67eTcFQj JSRzWC7YtXRnftN4AIoe+fBSYmMXLn2PiNIlFG/DfV5psLXXWYPJDKdk73EbPsYpWDC0 gRJVd9KS21HoS/JTHdxbvcBWI/qs/dsNm77w2vb/Hw2gtkARyVpa/ITvDS6bO3366I2h ZJutKQpT3uhAhq+/eYLsPSMVllxjOMxIzKwXQcYKJ9i3mOUNNgjp9BHM3u36kx9vkOWN GMOg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h8si18687159pjk.138.2021.10.24.02.48.09; Sun, 24 Oct 2021 02:48:21 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231808AbhJXJsR (ORCPT + 99 others); Sun, 24 Oct 2021 05:48:17 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:26115 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231172AbhJXJr6 (ORCPT ); Sun, 24 Oct 2021 05:47:58 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4HcY7P0pBcz1DGm9; Sun, 24 Oct 2021 17:43:45 +0800 (CST) Received: from kwepemm600016.china.huawei.com (7.193.23.20) 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.2308.15; Sun, 24 Oct 2021 17:45:36 +0800 Received: from localhost.localdomain (10.67.165.24) by kwepemm600016.china.huawei.com (7.193.23.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Sun, 24 Oct 2021 17:45:36 +0800 From: Guangbin Huang To: , , CC: , , , , Subject: [PATCH net-next 7/8] net: hns3: add new ras error type for roce Date: Sun, 24 Oct 2021 17:41:14 +0800 Message-ID: <20211024094115.42158-8-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211024094115.42158-1-huangguangbin2@huawei.com> References: <20211024094115.42158-1-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600016.china.huawei.com (7.193.23.20) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Weihang Li This patch adds one ras error of bus related for roce, this error including RRESP/BRESP and read poison error. Signed-off-by: Weihang Li Signed-off-by: Guangbin Huang --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c | 5 ++++- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c index 93aa7f2bdc13..59df3c477c36 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c @@ -1321,7 +1321,10 @@ static const struct hclge_hw_type_id hclge_hw_type_id_st[] = { }, { .type_id = ROCEE_OVF_ERR, .msg = "rocee_ovf_error" - } + }, { + .type_id = ROCEE_BUS_ERR, + .msg = "rocee_bus_error" + }, }; static void hclge_log_error(struct device *dev, char *reg, diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.h index d811eeefe2c0..2f4f4c71a5ec 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.h @@ -169,6 +169,7 @@ enum hclge_err_type_list { /* add new ERROR TYPE for NIC here in order */ ROCEE_NORMAL_ERR = 40, ROCEE_OVF_ERR = 41, + ROCEE_BUS_ERR = 42, /* add new ERROR TYPE for ROCEE here in order */ }; -- 2.33.0