drm/amdgpu: correctly toggle gfx on/off around RLC_SPM_* register access
authorEvan Quan <evan.quan@amd.com>
Thu, 4 Nov 2021 03:11:26 +0000 (11:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Nov 2021 18:12:29 +0000 (14:12 -0400)
commite6ef9b396b6354b33373c62f0f47edf8702f12e5
tree5a755596c1da8849829676c932412f8e01d9fd9c
parent7513c9ff44d9dfb035ec35b55f469244304806e6
drm/amdgpu: correctly toggle gfx on/off around RLC_SPM_* register access

As part of the ib padding process, accessing the RLC_SPM_* register may
trigger gfx hang. Since gfxoff may be already kicked during the whole period.
To address that, we manually toggle gfx on/off around the RLC_SPM_*
register access.

This can resolve the gfx hang issue observed on running Talos with RDP launched
in parallel.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Acked-by: Guchun Chen <guchun.chen@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_v10_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c