Skip to content

Commit dd4c780

Browse files
alexdeuchergregkh
authored andcommitted
drm/amd/display: use udelay rather than fsleep
commit 27e4dc2 upstream. 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> [ Backport for file path changed ] Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 572777a commit dd4c780

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ enum dc_status dcn20_enable_stream_timing(
781781
return DC_ERROR_UNEXPECTED;
782782
}
783783

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

786786
params.vertical_total_min = stream->adjust.v_total_min;
787787
params.vertical_total_max = stream->adjust.v_total_max;

0 commit comments

Comments
 (0)