From: Le Ma Date: Sat, 4 Dec 2021 10:59:08 +0000 (+0800) Subject: drm/amdgpu: correct register access for RLC_JUMP_TABLE_RESTORE X-Git-Tag: Ubuntu-5.4.0-105.119~525 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=7fcd8495e7a96dcfb6461de4f933ccf73c4f7c04;p=mirror_ubuntu-focal-kernel.git drm/amdgpu: correct register access for RLC_JUMP_TABLE_RESTORE BugLink: https://bugs.launchpad.net/bugs/1957991 commit f3a8076eb28cae1553958c629aecec479394bbe2 upstream. should count on GC IP base address Signed-off-by: Le Ma Signed-off-by: Hawking Zhang Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Kamal Mostafa Signed-off-by: Stefan Bader --- diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index d58a4a8018d9..a2b48ffa25c3 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -2902,8 +2902,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); } }