On 2025-09-03 12:44, Alex Deucher wrote:
> 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 <[email protected]>
> Cc: Fangzhi Zuo <[email protected]>
> Cc: Nicholas Kazlauskas <[email protected]>
> Cc: Harry Wentland <[email protected]>
> Signed-off-by: Alex Deucher <[email protected]>
Reviewed-by: Harry Wentland <[email protected]>
Harry
> ---
> drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
> b/drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
> index 7d24fa1517bf1..cc377fcda6ff9 100644
> --- a/drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
> +++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
> @@ -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;