Skip to content

Commit d559744

Browse files
Lijo Lazaralexdeucher
authored andcommitted
drm/amdgpu: Fix HDP flush for VFs on nbio v7.9
HDP flush remapping is not done for VFs. Keep the original offsets in VF environment. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 15dba12 commit d559744

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,12 @@ static void nbio_v7_9_init_registers(struct amdgpu_device *adev)
431431
u32 inst_mask;
432432
int i;
433433

434+
if (amdgpu_sriov_vf(adev))
435+
adev->rmmio_remap.reg_offset =
436+
SOC15_REG_OFFSET(
437+
NBIO, 0,
438+
regBIF_BX_DEV0_EPF0_VF0_HDP_MEM_COHERENCY_FLUSH_CNTL)
439+
<< 2;
434440
WREG32_SOC15(NBIO, 0, regXCC_DOORBELL_FENCE,
435441
0xff & ~(adev->gfx.xcc_mask));
436442

0 commit comments

Comments
 (0)