drm/amdgpu: correct register access for RLC_JUMP_TABLE_RESTORE
authorjsg <jsg@openbsd.org>
Wed, 22 Dec 2021 12:33:02 +0000 (12:33 +0000)
committerjsg <jsg@openbsd.org>
Wed, 22 Dec 2021 12:33:02 +0000 (12:33 +0000)
From Le Ma
aec5897b277b13acd8f913d777654d4d092a24f1 in linux 5.10.y/5.10.88
f3a8076eb28cae1553958c629aecec479394bbe2 in mainline linux

sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c

index 1b363f2..1e7829e 100644 (file)
@@ -3002,8 +3002,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);
        }
 }