Skip to content

Commit

Permalink
drm/amd/display: Add a Precise Delay Routine
Browse files Browse the repository at this point in the history
Fix DP compliance failures 4.2.2.12, 4.3.1.21, 4.9.1.19
caused by imprecise delay on fsleep().

Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Signed-off-by: Fangzhi Zuo <Jerry.Zuo@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Fangzhi Zuo authored and Alex Deucher committed Oct 22, 2024
1 parent 0270600 commit 6c5bb04
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ void dp_wait_for_training_aux_rd_interval(
struct dc_link *link,
uint32_t wait_in_micro_secs)
{
fsleep(wait_in_micro_secs);
usleep_range_state(wait_in_micro_secs, wait_in_micro_secs, TASK_UNINTERRUPTIBLE);

DC_LOG_HW_LINK_TRAINING("%s:\n wait = %d\n",
__func__,
Expand Down

0 comments on commit 6c5bb04

Please sign in to comment.