]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3e2511c5bdf0a978e5b9d9b1d96a289a1597fc26
tree522a7ee7938c287710d52051b11a83ad7132c0fc
parent766ed38f8bda211c7973d2b87a9452fbd40f9e42
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: bde6ea3345fe ("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