Skip to content

Commit f24d991

Browse files
John Clementsalexdeucher
authored andcommitted
drm/amdgpu: Update RAS XGMI Error Query
Resolve bug querying error on unsupported ASIC Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: John Clements <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 3907c49 commit f24d991

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,6 @@ static int amdgpu_xgmi_query_ras_error_count(struct amdgpu_device *adev,
848848
}
849849
break;
850850
case CHIP_VEGA20:
851-
default:
852851
/* check xgmi pcs error */
853852
for (i = 0; i < ARRAY_SIZE(xgmi_pcs_err_status_reg_vg20); i++) {
854853
data = RREG32_PCIE(xgmi_pcs_err_status_reg_vg20[i]);
@@ -864,6 +863,9 @@ static int amdgpu_xgmi_query_ras_error_count(struct amdgpu_device *adev,
864863
data, &ue_cnt, &ce_cnt, false);
865864
}
866865
break;
866+
default:
867+
dev_warn(adev->dev, "XGMI RAS error query not supported");
868+
break;
867869
}
868870

869871
adev->gmc.xgmi.ras_funcs->reset_ras_error_count(adev);

0 commit comments

Comments
 (0)