OSDN Git Service

drm/amdgpu: add codes to clear AccVGPR for arcturus
authorDennis Li <Dennis.Li@amd.com>
Thu, 12 Mar 2020 13:14:45 +0000 (21:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Mar 2020 15:52:36 +0000 (11:52 -0400)
commit93cdb48ecac2af7f795c41115c2a9c7199c54854
treeed5eeaadc75b68594b792df94c76432267fdf4ef
parent473e3f7720f652716eb7a5b8f49628d6f66b1e87
drm/amdgpu: add codes to clear AccVGPR for arcturus

AccVGPRs are newly added in arcturus. Before reading these
registers, they should be initialized. Otherwise edc error
happens, when RAS is enabled.

v2: reuse the existing logical to calculate register size

Signed-off-by: Dennis Li <Dennis.Li@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c