Skip to content

Commit f8638ad

Browse files
Peng Ju Zhoualexdeucher
authored andcommitted
drm/amdgpu: Remove unnecessary register program in SRIOV
Remove unnecessary register program in SRIOV Signed-off-by: Peng Ju Zhou <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 8a1fbb4 commit f8638ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,9 @@ static void gfxhub_v2_1_gart_disable(struct amdgpu_device *adev)
397397
ENABLE_ADVANCED_DRIVER_MODEL, 0);
398398
WREG32_SOC15(GC, 0, mmGCMC_VM_MX_L1_TLB_CNTL, tmp);
399399

400+
if (amdgpu_sriov_vf(adev))
401+
return;
402+
400403
/* Setup L2 cache */
401404
WREG32_FIELD15(GC, 0, GCVM_L2_CNTL, ENABLE_L2_CACHE, 0);
402405
WREG32_SOC15(GC, 0, mmGCVM_L2_CNTL3, 0);

0 commit comments

Comments
 (0)