]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Fix notification of vtotal to DMU for cursor offload
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 7 Oct 2025 14:39:07 +0000 (10:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Oct 2025 13:57:35 +0000 (09:57 -0400)
[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 <alvin.lee2@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c

index 4c964cf28f685fb4b46e236dad069f7f483a7407..c4ef63011f47136690b9cf03c5bafb42f50f0f98 100644 (file)
@@ -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;
 }