drm/amdgpu: fix mmhub register base coding error
authorYang Wang <KevinYang.Wang@amd.com>
Mon, 5 Dec 2022 13:16:26 +0000 (21:16 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Dec 2022 15:18:18 +0000 (10:18 -0500)
fix MMHUB register base coding error.

Fixes: ec6837591f992 ("drm/amdgpu/gmc10: program the smallK fragment size")
Signed-off-by: Yang Wang <KevinYang.Wang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c
drivers/gpu/drm/amd/amdgpu/mmhub_v3_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v3_0_1.c
drivers/gpu/drm/amd/amdgpu/mmhub_v3_0_2.c

index 998b5d17b271b62df41a571dbfc589745ac992ce..0e664d0cc8d51ff3195e0349bc0fae374660601a 100644 (file)
@@ -319,7 +319,7 @@ static void mmhub_v2_0_init_cache_regs(struct amdgpu_device *adev)
 
        tmp = mmMMVM_L2_CNTL5_DEFAULT;
        tmp = REG_SET_FIELD(tmp, MMVM_L2_CNTL5, L2_CACHE_SMALLK_FRAGMENT_SIZE, 0);
-       WREG32_SOC15(GC, 0, mmMMVM_L2_CNTL5, tmp);
+       WREG32_SOC15(MMHUB, 0, mmMMVM_L2_CNTL5, tmp);
 }
 
 static void mmhub_v2_0_enable_system_domain(struct amdgpu_device *adev)
index 1b027d069ab4042c294890bbd7cdd4cb449bffc2..4638ea7c2eec5c7599a80ff707ce65ea9a8fbc57 100644 (file)
@@ -243,7 +243,7 @@ static void mmhub_v2_3_init_cache_regs(struct amdgpu_device *adev)
 
        tmp = mmMMVM_L2_CNTL5_DEFAULT;
        tmp = REG_SET_FIELD(tmp, MMVM_L2_CNTL5, L2_CACHE_SMALLK_FRAGMENT_SIZE, 0);
-       WREG32_SOC15(GC, 0, mmMMVM_L2_CNTL5, tmp);
+       WREG32_SOC15(MMHUB, 0, mmMMVM_L2_CNTL5, tmp);
 }
 
 static void mmhub_v2_3_enable_system_domain(struct amdgpu_device *adev)
index a1d26c4d80b8c7802e70ffd881a6b252e9ded6fa..16cc82215e2e16c35278c6184b2bf857aef344b0 100644 (file)
@@ -275,7 +275,7 @@ static void mmhub_v3_0_init_cache_regs(struct amdgpu_device *adev)
 
        tmp = regMMVM_L2_CNTL5_DEFAULT;
        tmp = REG_SET_FIELD(tmp, MMVM_L2_CNTL5, L2_CACHE_SMALLK_FRAGMENT_SIZE, 0);
-       WREG32_SOC15(GC, 0, regMMVM_L2_CNTL5, tmp);
+       WREG32_SOC15(MMHUB, 0, regMMVM_L2_CNTL5, tmp);
 }
 
 static void mmhub_v3_0_enable_system_domain(struct amdgpu_device *adev)
index e8058edc1d1083969381374daf0ebe11751c15c4..6bdf2ef0298d6ea6cf857effddbe8411ad820a0d 100644 (file)
@@ -269,7 +269,7 @@ static void mmhub_v3_0_1_init_cache_regs(struct amdgpu_device *adev)
 
        tmp = regMMVM_L2_CNTL5_DEFAULT;
        tmp = REG_SET_FIELD(tmp, MMVM_L2_CNTL5, L2_CACHE_SMALLK_FRAGMENT_SIZE, 0);
-       WREG32_SOC15(GC, 0, regMMVM_L2_CNTL5, tmp);
+       WREG32_SOC15(MMHUB, 0, regMMVM_L2_CNTL5, tmp);
 }
 
 static void mmhub_v3_0_1_enable_system_domain(struct amdgpu_device *adev)
index 770be0a8f7ce7a4d1d8d2a687aa96cf310cb822b..45465acaa943aff683d1229d0d69dbb9534e9638 100644 (file)
@@ -268,7 +268,7 @@ static void mmhub_v3_0_2_init_cache_regs(struct amdgpu_device *adev)
 
        tmp = regMMVM_L2_CNTL5_DEFAULT;
        tmp = REG_SET_FIELD(tmp, MMVM_L2_CNTL5, L2_CACHE_SMALLK_FRAGMENT_SIZE, 0);
-       WREG32_SOC15(GC, 0, regMMVM_L2_CNTL5, tmp);
+       WREG32_SOC15(MMHUB, 0, regMMVM_L2_CNTL5, tmp);
 }
 
 static void mmhub_v3_0_2_enable_system_domain(struct amdgpu_device *adev)