]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2c0f480735d06398de4749f3fae20986d8541a8c
tree5a755596c1da8849829676c932412f8e01d9fd9c
parentae8b740cfd38719fb87330e725392ae8ea28f69d
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