Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: Adjust usleep_range in fence wait

Tune the sleep interval in the PSP fence wait loop from 10-100us to
60-100us.This adjustment results in an overall wait window of 1.2s
(60us * 20000 iterations) to 2 seconds (100us * 20000 iterations),
which guarantees that we can retrieve the correct fence value

Signed-off-by: Ce Sun <cesun102@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Ce Sun and committed by
Alex Deucher
3ee1c726 cde38949

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
··· 735 735 ras_intr = amdgpu_ras_intr_triggered(); 736 736 if (ras_intr) 737 737 break; 738 - usleep_range(10, 100); 738 + usleep_range(60, 100); 739 739 amdgpu_device_invalidate_hdp(psp->adev, NULL); 740 740 } 741 741