]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: correct register access for RLC_JUMP_TABLE_RESTORE
authorLe Ma <le.ma@amd.com>
Sat, 4 Dec 2021 10:59:08 +0000 (18:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Dec 2021 22:49:50 +0000 (17:49 -0500)
should count on GC IP base address

Signed-off-by: Le Ma <le.ma@amd.com>
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

index b305fd39874fe68a8ab7f5141c3f01aaa0f7517d..edb3e3b08eed8fc6f241d7934d8db133d082ab5c 100644 (file)
@@ -3070,8 +3070,8 @@ static void gfx_v9_0_init_pg(struct amdgpu_device *adev)
                              AMD_PG_SUPPORT_CP |
                              AMD_PG_SUPPORT_GDS |
                              AMD_PG_SUPPORT_RLC_SMU_HS)) {
-               WREG32(mmRLC_JUMP_TABLE_RESTORE,
-                      adev->gfx.rlc.cp_table_gpu_addr >> 8);
+               WREG32_SOC15(GC, 0, mmRLC_JUMP_TABLE_RESTORE,
+                            adev->gfx.rlc.cp_table_gpu_addr >> 8);
                gfx_v9_0_init_gfx_power_gating(adev);
        }
 }