Skip to content

Commit 3f69d58

Browse files
Lijo Lazaralexdeucher
authored andcommitted
drm/amdgpu: Add a read to GFX v9.4.3 ring test
Issue a read to confirm the register write before ringing doorbell. With multiple XCCs there is chance for race condition. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Acked-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Asad Kamal <asad.kamal@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 5bd8e05 commit 3f69d58

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ static int gfx_v9_4_3_ring_test_ring(struct amdgpu_ring *ring)
256256
xcc_offset = SOC15_REG_OFFSET(GC, 0, regSCRATCH_REG0);
257257
scratch_reg0_offset = SOC15_REG_OFFSET(GC, GET_INST(GC, ring->xcc_id), regSCRATCH_REG0);
258258
WREG32(scratch_reg0_offset, 0xCAFEDEAD);
259+
tmp = RREG32(scratch_reg0_offset);
259260

260261
r = amdgpu_ring_alloc(ring, 3);
261262
if (r)

0 commit comments

Comments
 (0)