Skip to contentSkip to conversation

drm/amdgpu/gmc8: fix VM_L2_CNTL3 programming

PATCH In review Alex Deucher 2 participants 2 messages Apr 11, 2019 – Apr 12, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu/gmc8: fix VM_L2_CNTL3 programming

Got accidently dropped when 2+1 level support was added.

Fixes 6a42fd6fbf534096 ("drm/amdgpu: implement 2+1 PD support for Raven v3")
---
 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c +1 -0
index 1741056e6af6..41a9a5779623 100644
@@ -182,6 +182,7 @@ static void mmhub_v1_0_init_cache_regs(struct amdgpu_device *adev)
 		tmp = REG_SET_FIELD(tmp, VM_L2_CNTL3,
 				    L2_CACHE_BIGK_FRAGMENT_SIZE, 6);
 	}
+	WREG32_SOC15(MMHUB, 0, mmVM_L2_CNTL3, tmp);
 
 	tmp = mmVM_L2_CNTL4_DEFAULT;
 	tmp = REG_SET_FIELD(tmp, VM_L2_CNTL4, VMC_TAP_PDE_REQUEST_PHYSICAL, 0);
Signature · 6 lines
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by on v1 1/1
#1 lore raw

Am 11.04.19 um 21:57 schrieb Alex Deucher:

Quoted 4 lines

Got accidently dropped when 2+1 level support was added.

Fixes 6a42fd6fbf534096 ("drm/amdgpu: implement 2+1 PD support for Raven v3")
Quoted 17 lines
---
  drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c +1 -0
index 1741056e6af6..41a9a5779623 100644
@@ -182,6 +182,7 @@ static void mmhub_v1_0_init_cache_regs(struct amdgpu_device *adev)
  		tmp = REG_SET_FIELD(tmp, VM_L2_CNTL3,
  				    L2_CACHE_BIGK_FRAGMENT_SIZE, 6);
  	}
+	WREG32_SOC15(MMHUB, 0, mmVM_L2_CNTL3, tmp);
 
  	tmp = mmVM_L2_CNTL4_DEFAULT;
  	tmp = REG_SET_FIELD(tmp, VM_L2_CNTL4, VMC_TAP_PDE_REQUEST_PHYSICAL, 0);