Skip to content

Commit eacb376

Browse files
Xiaojie Yuansmb49
authored andcommitted
drm/amdgpu/sdma5: fix mask value of POLL_REGMEM packet for pipe sync
BugLink: https://bugs.launchpad.net/bugs/1850456 commit d12c508 upstream. sdma will hang once sequence number to be polled reaches 0x1000_0000 Reviewed-by: Christian König <[email protected]> Signed-off-by: Xiaojie Yuan <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Connor Kuehl <[email protected]> Signed-off-by: Kleber Sacilotto de Souza <[email protected]>
1 parent 17d33a6 commit eacb376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ static void sdma_v5_0_ring_emit_pipeline_sync(struct amdgpu_ring *ring)
10861086
amdgpu_ring_write(ring, addr & 0xfffffffc);
10871087
amdgpu_ring_write(ring, upper_32_bits(addr) & 0xffffffff);
10881088
amdgpu_ring_write(ring, seq); /* reference */
1089-
amdgpu_ring_write(ring, 0xfffffff); /* mask */
1089+
amdgpu_ring_write(ring, 0xffffffff); /* mask */
10901090
amdgpu_ring_write(ring, SDMA_PKT_POLL_REGMEM_DW5_RETRY_COUNT(0xfff) |
10911091
SDMA_PKT_POLL_REGMEM_DW5_INTERVAL(4)); /* retry count, poll interval */
10921092
}

0 commit comments

Comments
 (0)