Skip to content

Commit 14172f8

Browse files
alexdeuchergregkh
authored andcommitted
drm/amdgpu/hdp6.0: do a posting read when flushing HDP
[ Upstream commit abe1cba ] 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] Signed-off-by: Sasha Levin <[email protected]>
1 parent c9ad5cb commit 14172f8

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
@@ -31,10 +31,12 @@
3131
static void hdp_v6_0_flush_hdp(struct amdgpu_device *adev,
3232
struct amdgpu_ring *ring)
3333
{
34-
if (!ring || !ring->funcs->emit_wreg)
34+
if (!ring || !ring->funcs->emit_wreg) {
3535
WREG32((adev->rmmio_remap.reg_offset + KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL) >> 2, 0);
36-
else
36+
RREG32((adev->rmmio_remap.reg_offset + KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL) >> 2);
37+
} else {
3738
amdgpu_ring_emit_wreg(ring, (adev->rmmio_remap.reg_offset + KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL) >> 2, 0);
39+
}
3840
}
3941

4042
static void hdp_v6_0_update_clock_gating(struct amdgpu_device *adev,

0 commit comments

Comments
 (0)