0 waits forever. We don't actually use the HW semaphore anymore, but if someone uses the packet, set a time out value so we eventually time out and avoid a potential queue or GPU reset.
Signed-off-by: Alex Deucher <[email protected]> --- drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c index 78bdfed0a7fd3..cf4ad97a93652 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c @@ -992,7 +992,7 @@ static int sdma_v4_4_2_inst_start(struct amdgpu_device *adev, for_each_inst(i, tmp_mask) { uint32_t temp; - WREG32_SDMA(i, regSDMA_SEM_WAIT_FAIL_TIMER_CNTL, 0); + WREG32_SDMA(i, regSDMA_SEM_WAIT_FAIL_TIMER_CNTL, 10); sdma_v4_4_2_gfx_resume(adev, i, restore); if (adev->sdma.has_page_queue) sdma_v4_4_2_page_resume(adev, i, restore); -- 2.53.0
