]> Git Repo - linux.git/commitdiff
drm/amd/display: Add a Precise Delay Routine
authorFangzhi Zuo <[email protected]>
Wed, 2 Oct 2024 19:47:10 +0000 (15:47 -0400)
committerAlex Deucher <[email protected]>
Tue, 22 Oct 2024 21:50:38 +0000 (17:50 -0400)
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 <[email protected]>
Signed-off-by: Fangzhi Zuo <[email protected]>
Signed-off-by: Wayne Lin <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c

index a42c56a5725306cab8052fc4bdd666074401ce9b..754c895e1bfbde5b144ef1ed5cdcbd1e129c46d9 100644 (file)
@@ -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__,
This page took 0.052104 seconds and 4 git commands to generate.