Skip to content
Commit e4180c42 authored by Defang Bo's avatar Defang Bo Committed by Alex Deucher
Browse files

drm/amdgpu: Add check to prevent IH overflow



Similar to commit <b8217575>("drm/amdgpu: fix IH overflow on Vega10 v2").
When an ring buffer overflow happens the appropriate bit is set in the WPTR
register which is also written back to memory. But clearing the bit in the
WPTR doesn't trigger another memory writeback.

So what can happen is that we end up processing the buffer overflow over and
over again because the bit is never cleared. Resulting in a random system
lockup because of an infinite loop in an interrupt handler.

Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarDefang Bo <bodefang@126.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 88d5cb25
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment