drm/amdgpu: fix scratch register access method in SRIOV
authorGavin Wan <Gavin.Wan@amd.com>
Mon, 18 Jul 2022 19:30:51 +0000 (15:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Jul 2022 20:03:53 +0000 (16:03 -0400)
commitdc2b9c70ebca8e5661d33a15ed2b99d4510e90be
tree522a7ee7938c287710d52051b11a83ad7132c0fc
parent86bd6706c404ea703c11071d8b600d46bb98873c
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")
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Gavin Wan <Gavin.Wan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c