]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7c587a0a896ae113d57050c11036280f08502c07
treeada6125ea4399833253b9a96839061688c6b36c4
parent67653ca0064536fc277b8c33225cf30e905f258a
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: c78622d6cd25 ("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