提交 37cc00e3 编写于 作者: K Ke Chen 提交者: Wang Wensheng

net: hns3: add support for ROH ras

driver inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5WKYW

-----------------------------------------------------------------------

Add HCLGE_RAS_REG_ROH_ERR_MASK to support the error
recovery of the ROH ras. Add HCLGE_RAS_REG_ERR_MASK
to define the combination of the nfe_mask, the
rocee_err_mask and the roh_err_mask.

Add new module error types for ROH, adjust the order
of these types according to the design of firmware.
Signed-off-by: Jiaran Zhang's avatarJiaran Zhang <zhangjiaran@huawei.com>
Signed-off-by: NKe Chen <chenke54@huawei.com>
Reviewed-by: NGang Zhang <gang.zhang@huawei.com>
Reviewed-by: NYefeng Yan <yanyefeng@huawei.com>
Reviewed-by: NJingchao Dai <daijingchao1@huawei.com>
Reviewed-by: NJian Shen <shenjian15@huawei.com>
上级 d97994b7
......@@ -1275,6 +1275,15 @@ static const struct hclge_hw_module_id hclge_hw_module_id_st[] = {
}, {
.module_id = MODULE_ROCEE_LSAN,
.msg = "MODULE_ROCEE_LSAN"
}, {
.module_id = MODULE_ROH_MAC_IF,
.msg = "MODULE_ROH_MAC_IF"
}, {
.module_id = MODULE_ROH_HDLC,
.msg = "MODULE_ROH_HDLC"
}, {
.module_id = MODULE_ROH_HPCS,
.msg = "MODULE_ROH_HPCS"
}
};
......@@ -1333,7 +1342,10 @@ static const struct hclge_hw_type_id hclge_hw_type_id_st[] = {
}, {
.type_id = ROCEE_BUS_ERR,
.msg = "rocee_bus_error"
},
}, {
.type_id = ROH_ERR,
.msg = "roh_error"
}
};
static void hclge_log_error(struct device *dev, char *reg,
......
......@@ -15,8 +15,10 @@
#define HCLGE_RAS_PF_OTHER_INT_STS_REG 0x20B00
#define HCLGE_RAS_REG_NFE_MASK 0xFF00
#define HCLGE_RAS_REG_ROCEE_ERR_MASK 0x3000000
#define HCLGE_RAS_REG_ROH_ERR_MASK 0x18000000
#define HCLGE_RAS_REG_ERR_MASK \
(HCLGE_RAS_REG_NFE_MASK | HCLGE_RAS_REG_ROCEE_ERR_MASK)
(HCLGE_RAS_REG_NFE_MASK | HCLGE_RAS_REG_ROCEE_ERR_MASK | \
HCLGE_RAS_REG_ROH_ERR_MASK)
#define HCLGE_VECTOR0_REG_MSIX_MASK 0x1FF00
......@@ -151,6 +153,10 @@ enum hclge_mod_name_list {
MODULE_ROCEE_QMM = 48,
MODULE_ROCEE_LSAN = 49,
/* add new MODULE NAME for RoCEE here in order */
MODULE_ROH_MAC_IF = 80,
MODULE_ROH_HDLC = 81,
MODULE_ROH_HPCS = 82,
/* add new MODULE NAME for ROH here in order */
};
enum hclge_err_type_list {
......@@ -174,6 +180,8 @@ enum hclge_err_type_list {
ROCEE_OVF_ERR = 41,
ROCEE_BUS_ERR = 42,
/* add new ERROR TYPE for ROCEE here in order */
ROH_ERR = 80,
/* add new ERROR TYPE for ROH here in order */
};
struct hclge_hw_blk {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册