Commit 6cd131dd authored by Yufeng Mo's avatar Yufeng Mo Committed by David S. Miller

net: hns3: add a hardware error detect type

In hns3_process_hw_error(), the hardware error detection of the
ROCEE AXI RESP error type is added. When this error occurs,
the client needs to be notified of this error and take
corresponding operation.
Signed-off-by: default avatarYufeng Mo <moyufeng@huawei.com>
Signed-off-by: default avatarHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9d8d5a36
...@@ -152,6 +152,7 @@ enum hnae3_hw_error_type { ...@@ -152,6 +152,7 @@ enum hnae3_hw_error_type {
HNAE3_PPU_POISON_ERROR, HNAE3_PPU_POISON_ERROR,
HNAE3_CMDQ_ECC_ERROR, HNAE3_CMDQ_ECC_ERROR,
HNAE3_IMP_RD_POISON_ERROR, HNAE3_IMP_RD_POISON_ERROR,
HNAE3_ROCEE_AXI_RESP_ERROR,
}; };
enum hnae3_reset_type { enum hnae3_reset_type {
......
...@@ -4600,6 +4600,8 @@ static const struct hns3_hw_error_info hns3_hw_err[] = { ...@@ -4600,6 +4600,8 @@ static const struct hns3_hw_error_info hns3_hw_err[] = {
.msg = "IMP CMDQ error" }, .msg = "IMP CMDQ error" },
{ .type = HNAE3_IMP_RD_POISON_ERROR, { .type = HNAE3_IMP_RD_POISON_ERROR,
.msg = "IMP RD poison" }, .msg = "IMP RD poison" },
{ .type = HNAE3_ROCEE_AXI_RESP_ERROR,
.msg = "ROCEE AXI RESP error" },
}; };
static void hns3_process_hw_error(struct hnae3_handle *handle, static void hns3_process_hw_error(struct hnae3_handle *handle,
......
...@@ -1507,6 +1507,8 @@ hclge_log_and_clear_rocee_ras_error(struct hclge_dev *hdev) ...@@ -1507,6 +1507,8 @@ hclge_log_and_clear_rocee_ras_error(struct hclge_dev *hdev)
reset_type = HNAE3_FUNC_RESET; reset_type = HNAE3_FUNC_RESET;
hclge_report_hw_error(hdev, HNAE3_ROCEE_AXI_RESP_ERROR);
ret = hclge_log_rocee_axi_error(hdev); ret = hclge_log_rocee_axi_error(hdev);
if (ret) if (ret)
return HNAE3_GLOBAL_RESET; return HNAE3_GLOBAL_RESET;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment