Skip to content
/ linux Public

Commit 8c545bc

Browse files
Ce SunSasha Levin
authored andcommitted
drm/amdgpu: Adjust usleep_range in fence wait
[ Upstream commit 3ee1c72 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 89232d0 commit 8c545bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ psp_cmd_submit_buf(struct psp_context *psp,
726726
ras_intr = amdgpu_ras_intr_triggered();
727727
if (ras_intr)
728728
break;
729-
usleep_range(10, 100);
729+
usleep_range(60, 100);
730730
amdgpu_device_invalidate_hdp(psp->adev, NULL);
731731
}
732732

0 commit comments

Comments
 (0)