drm/amdgpu: Add check to prevent IH overflow
stable inclusion from stable-5.10.21 commit b9b1648ac9473337bd41ccad86a2bab5ffc73f1c bugzilla: 50609 -------------------------------- [ Upstream commit e4180c42 ] 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: NChristian König <christian.koenig@amd.com> Signed-off-by: NDefang Bo <bodefang@126.com> Signed-off-by: NAlex Deucher <alexander.deucher@amd.com> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录