@@ -631,6 +631,7 @@ int cik_sdma_ring_test(struct radeon_device *rdev,
radeon_ring_write(ring, upper_32_bits(rdev->vram_scratch.gpu_addr));
radeon_ring_write(ring, 1); /* number of DWs to follow */
radeon_ring_write(ring, 0xDEADBEEF);
+ cik_sdma_hdp_flush_ring_emit(rdev, ring->idx);
radeon_ring_unlock_commit(rdev, ring, false);
for (i = 0; i < rdev->usec_timeout; i++) {
@@ -255,6 +255,7 @@ int r600_dma_ring_test(struct radeon_device *rdev,
radeon_ring_unlock_commit(rdev, ring, false);
for (i = 0; i < rdev->usec_timeout; i++) {
+ r600_mmio_hdp_flush(rdev);
tmp = readl(ptr);
if (tmp == 0xDEADBEEF)
break;