From: Nicholas Kazlauskas Date: Tue, 7 Oct 2025 14:39:07 +0000 (-0400) Subject: drm/amd/display: Fix notification of vtotal to DMU for cursor offload X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6cf0552e03033da74eff5137a10b33030c8a450a;p=thirdparty%2Fkernel%2Flinux.git drm/amd/display: Fix notification of vtotal to DMU for cursor offload [Why] It was placed after the early return and the notification is never sent. [How] Place it after .set_drr and before the return. Reviewed-by: Alvin Lee Signed-off-by: Nicholas Kazlauskas Signed-off-by: Wayne Lin Tested-by: Dan Wheeler Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 4c964cf28f685..c4ef63011f471 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -493,13 +493,14 @@ bool dc_stream_adjust_vmin_vmax(struct dc *dc, 1, *adjust); stream->adjust.timing_adjust_pending = false; + + if (dc->hwss.notify_cursor_offload_drr_update) + dc->hwss.notify_cursor_offload_drr_update(dc, dc->current_state, stream); + return true; } } - if (dc->hwss.notify_cursor_offload_drr_update) - dc->hwss.notify_cursor_offload_drr_update(dc, dc->current_state, stream); - return false; }