drm/amdgpu: fix scratch register access method in SRIOV
authorZhenGuo Yin <zhenguo.yin@amd.com>
Mon, 6 Jun 2022 02:36:13 +0000 (10:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jun 2022 15:41:13 +0000 (11:41 -0400)
commit851dd8625320fb626b6ab6399b2402fd84abcdfb
treeada6125ea4399833253b9a96839061688c6b36c4
parent0381ac3ca2e727d4dfb7264d9416a8ba6bb6c18b
drm/amdgpu: fix scratch register access method in SRIOV

The scratch register should be accessed through MMIO instead of RLCG
in SRIOV, since it being used in RLCG register access function.

Fixes: d54762cc3e6a ("drm/amdgpu: nuke dynamic gfx scratch reg allocation")
Signed-off-by: ZhenGuo Yin <zhenguo.yin@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