Skip to content

Commit b8983d4

Browse files
jinsdbalexdeucher
authored andcommitted
drm/amdgpu: mmVM_L2_CNTL3 register not initialized correctly
The mmVM_L2_CNTL3 register is not assigned an initial value Signed-off-by: Qu Huang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 61251b2 commit b8983d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ static void mmhub_v1_0_init_cache_regs(struct amdgpu_device *adev)
176176
tmp = REG_SET_FIELD(tmp, VM_L2_CNTL2, INVALIDATE_L2_CACHE, 1);
177177
WREG32_SOC15(MMHUB, 0, mmVM_L2_CNTL2, tmp);
178178

179+
tmp = mmVM_L2_CNTL3_DEFAULT;
179180
if (adev->gmc.translate_further) {
180181
tmp = REG_SET_FIELD(tmp, VM_L2_CNTL3, BANK_SELECT, 12);
181182
tmp = REG_SET_FIELD(tmp, VM_L2_CNTL3,

0 commit comments

Comments
 (0)