Skip to content

Commit 72e3961

Browse files
jinsdbsmb49
authored andcommitted
drm/amdgpu: mmVM_L2_CNTL3 register not initialized correctly
BugLink: https://bugs.launchpad.net/bugs/1992211 [ Upstream commit b8983d4 ] 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]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Kamal Mostafa <[email protected]> Signed-off-by: Stefan Bader <[email protected]>
1 parent cbd3666 commit 72e3961

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
@@ -182,6 +182,7 @@ static void mmhub_v1_0_init_cache_regs(struct amdgpu_device *adev)
182182
tmp = REG_SET_FIELD(tmp, VM_L2_CNTL2, INVALIDATE_L2_CACHE, 1);
183183
WREG32_SOC15(MMHUB, 0, mmVM_L2_CNTL2, tmp);
184184

185+
tmp = mmVM_L2_CNTL3_DEFAULT;
185186
if (adev->gmc.translate_further) {
186187
tmp = REG_SET_FIELD(tmp, VM_L2_CNTL3, BANK_SELECT, 12);
187188
tmp = REG_SET_FIELD(tmp, VM_L2_CNTL3,

0 commit comments

Comments
 (0)