drm/amdgpu: enable PCS error report on VG20
authorHawking Zhang <Hawking.Zhang@amd.com>
Fri, 21 Feb 2020 13:37:15 +0000 (21:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Mar 2020 19:31:35 +0000 (14:31 -0500)
Now driver will report XGMI/WAFL PCS error through
sysfs xgmi_wafl_err_count node on Vega20

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

index 930633a0ed646acf420ad771e2924ac5e28eeb50..e1e8fd4b2b89226ac0c3cc73d1e98afdd9b1e9ce 100644 (file)
@@ -721,6 +721,9 @@ int amdgpu_ras_error_query(struct amdgpu_device *adev,
                if (adev->nbio.funcs->query_ras_error_count)
                        adev->nbio.funcs->query_ras_error_count(adev, &err_data);
                break;
+       case AMDGPU_RAS_BLOCK__XGMI_WAFL:
+               amdgpu_xgmi_query_ras_error_count(adev, &err_data);
+               break;
        default:
                break;
        }