Skip to content

Commit 27e4dc2

Browse files
committed
drm/amd/display: use udelay rather than fsleep
This function can be called from an atomic context so we can't use fsleep(). Fixes: 01f6034 ("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>
1 parent 4e89d62 commit 27e4dc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ enum dc_status dcn20_enable_stream_timing(
955955
return DC_ERROR_UNEXPECTED;
956956
}
957957

958-
fsleep(stream->timing.v_total * (stream->timing.h_total * 10000u / stream->timing.pix_clk_100hz));
958+
udelay(stream->timing.v_total * (stream->timing.h_total * 10000u / stream->timing.pix_clk_100hz));
959959

960960
params.vertical_total_min = stream->adjust.v_total_min;
961961
params.vertical_total_max = stream->adjust.v_total_max;

0 commit comments

Comments
 (0)