Skip to content

Commit abe1cba

Browse files
committed
drm/amdgpu/hdp6.0: do a posting read when flushing HDP
Need to read back to make sure the write goes through. Cc: David Belanger <[email protected]> Reviewed-by: Frank Min <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent f756dba commit abe1cba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@
3434
static void hdp_v6_0_flush_hdp(struct amdgpu_device *adev,
3535
struct amdgpu_ring *ring)
3636
{
37-
if (!ring || !ring->funcs->emit_wreg)
37+
if (!ring || !ring->funcs->emit_wreg) {
3838
WREG32((adev->rmmio_remap.reg_offset + KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL) >> 2, 0);
39-
else
39+
RREG32((adev->rmmio_remap.reg_offset + KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL) >> 2);
40+
} else {
4041
amdgpu_ring_emit_wreg(ring, (adev->rmmio_remap.reg_offset + KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL) >> 2, 0);
42+
}
4143
}
4244

4345
static void hdp_v6_0_update_clock_gating(struct amdgpu_device *adev,

0 commit comments

Comments
 (0)