]> 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)
commit0899d610df00dc6b0ce04c138099c5d6e37e244b
tree522a7ee7938c287710d52051b11a83ad7132c0fc
parentc83b0617ca19892f94eaa23bf071390023fc6a50
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")
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