drm/amdgpu: use RREG32_KIQ to read register when get cg state
authorLikun Gao <Likun.Gao@amd.com>
Mon, 6 Jul 2020 08:18:28 +0000 (16:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jul 2020 13:01:18 +0000 (09:01 -0400)
commit2373dd48fc85c710e49ebc9833e0ef97cc103213
tree5a87e92ab7dd9d7a470834a57102b4964d63e910
parentdcf9864d2d31fb27c320b38a40a1596b7c91d935
drm/amdgpu: use RREG32_KIQ to read register when get cg state

Use RREG32_KIQ to read gfx register when try to get gfx/sdma
clockgating state instead of RREG32, as it will result
to system hard hang when GPU is enter into GFXOFF state.

Signed-off-by: Likun Gao <Likun.Gao@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_v10_0.c
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c