drm/amdgpu: add helper funcs to detect PCS error
authorHawking Zhang <Hawking.Zhang@amd.com>
Fri, 21 Feb 2020 13:43:44 +0000 (21:43 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Mar 2020 19:31:28 +0000 (14:31 -0500)
commit18f36157f2cbb1cfc7d67642c40deddbcece0553
treed1b049dbf9e6186c0d2c25d81f735f4cc1ffab1d
parent15a1fbdcfb519c2bd291ed01c6c94e0b89537a77
drm/amdgpu: add helper funcs to detect PCS error

Since from vega20, hardware supports run-time detect
and report XGMI/WAFL PCS ras error. Add helper functions
to walkthrough every type of ras error and report it if
any.

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_xgmi.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h