]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/amd/display: use udelay rather than fsleep
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Sep 2025 13:11:12 +0000 (09:11 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Sep 2025 20:15:51 +0000 (16:15 -0400)
This function can be called from an atomic context so we can't use
fsleep().

Fixes: 01f60348d8fb ("drm/amd/display: Fix 'failed to blank crtc!'")
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4549
Cc: Wen Chen <Wen.Chen3@amd.com>
Cc: Fangzhi Zuo <jerry.zuo@amd.com>
Cc: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c

index 7d24fa1517bf111581a91759b3565a7262a10b93..cc377fcda6ff9ad579ec6b04f725a22c2834026e 100644 (file)
@@ -955,7 +955,7 @@ enum dc_status dcn20_enable_stream_timing(
                return DC_ERROR_UNEXPECTED;
        }
 
-       fsleep(stream->timing.v_total * (stream->timing.h_total * 10000u / stream->timing.pix_clk_100hz));
+       udelay(stream->timing.v_total * (stream->timing.h_total * 10000u / stream->timing.pix_clk_100hz));
 
        params.vertical_total_min = stream->adjust.v_total_min;
        params.vertical_total_max = stream->adjust.v_total_max;