Skip to content

Commit aebd3eb

Browse files
Lijo Lazaralexdeucher
authored andcommitted
drm/amdgpu: Assign correct bits for SDMA HDP flush
HDP Flush request bit can be kept unique per AID, and doesn't need to be unique SOC-wide. Assign only bits 10-13 for SDMA v4.4.2. Signed-off-by: Lijo Lazar <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent 0e95ed6 commit aebd3eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ static void sdma_v4_4_2_ring_emit_hdp_flush(struct amdgpu_ring *ring)
368368
u32 ref_and_mask = 0;
369369
const struct nbio_hdp_flush_reg *nbio_hf_reg = adev->nbio.hdp_flush_reg;
370370

371-
ref_and_mask = nbio_hf_reg->ref_and_mask_sdma0 << ring->me;
371+
ref_and_mask = nbio_hf_reg->ref_and_mask_sdma0
372+
<< (ring->me % adev->sdma.num_inst_per_aid);
372373

373374
sdma_v4_4_2_wait_reg_mem(ring, 0, 1,
374375
adev->nbio.funcs->get_hdp_flush_done_offset(adev),

0 commit comments

Comments
 (0)