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: Yufeng Mo <moyufeng@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9d8d5a360b
commit
6cd131dd10
|
@ -152,6 +152,7 @@ enum hnae3_hw_error_type {
|
|||
HNAE3_PPU_POISON_ERROR,
|
||||
HNAE3_CMDQ_ECC_ERROR,
|
||||
HNAE3_IMP_RD_POISON_ERROR,
|
||||
HNAE3_ROCEE_AXI_RESP_ERROR,
|
||||
};
|
||||
|
||||
enum hnae3_reset_type {
|
||||
|
|
|
@ -4600,6 +4600,8 @@ static const struct hns3_hw_error_info hns3_hw_err[] = {
|
|||
.msg = "IMP CMDQ error" },
|
||||
{ .type = HNAE3_IMP_RD_POISON_ERROR,
|
||||
.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,
|
||||
|
|
|
@ -1507,6 +1507,8 @@ hclge_log_and_clear_rocee_ras_error(struct hclge_dev *hdev)
|
|||
|
||||
reset_type = HNAE3_FUNC_RESET;
|
||||
|
||||
hclge_report_hw_error(hdev, HNAE3_ROCEE_AXI_RESP_ERROR);
|
||||
|
||||
ret = hclge_log_rocee_axi_error(hdev);
|
||||
if (ret)
|
||||
return HNAE3_GLOBAL_RESET;
|
||||
|
|
Loading…
Reference in New Issue