]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit391dea6381bb60f306dd5f8cc2801277445dc2d6
treeed5eeaadc75b68594b792df94c76432267fdf4ef
parent7da880a2ff578b72b8aab105af64307b6d1d14e5
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