drm/amdgpu: add gfx9 gpr EDC workaround when RAS is enabled
authorJames Zhu <James.Zhu@amd.com>
Fri, 5 Apr 2019 19:31:47 +0000 (15:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 May 2019 17:20:50 +0000 (12:20 -0500)
commit5326ad54c5ef01a828cf5a942f6fdbf204ef7d3f
tree95b5e837d320db447710126e301c96638a813c52
parent8511477773c37c86b70e23b7fa5ff852cde03ff8
drm/amdgpu: add gfx9 gpr EDC workaround when RAS is enabled

When RAS is enabled, initializes the VGPRs/LDS/SGPRs and
resets EDC error counts. This is done in late_init, before
RAS TA GFX enable.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
drivers/gpu/drm/amd/amdgpu/soc15.h