]> Git Repo - linux.git/commitdiff
drm/amd/display: Minimize wait for pending updates
authorIlya Bakoulin <[email protected]>
Wed, 9 Oct 2024 19:26:48 +0000 (15:26 -0400)
committerAlex Deucher <[email protected]>
Mon, 4 Nov 2024 16:39:11 +0000 (11:39 -0500)
[Why/How]
Move the wait for pending updates past prepare_bandwidth if the previous
update was not a full update to reduce the average time it takes to
complete a full update.

Reviewed-by: Dillon Varone <[email protected]>
Reviewed-by: Alvin Lee <[email protected]>
Signed-off-by: Ilya Bakoulin <[email protected]>
Signed-off-by: Zaeem Mohamed <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/display/dc/core/dc.c

index 8a52fef46785c0da9c4fdf6ae46fb0e038c8b30a..7872c6cabb14c3aa6819c034c9fd05255b335d0d 100644 (file)
@@ -3835,7 +3835,7 @@ static void commit_planes_for_stream(struct dc *dc,
        dc_exit_ips_for_hw_access(dc);
 
        dc_z10_restore(dc);
-       if (update_type == UPDATE_TYPE_FULL)
+       if (update_type == UPDATE_TYPE_FULL && dc->optimized_required)
                hwss_process_outstanding_hw_updates(dc, dc->current_state);
 
        for (i = 0; i < dc->res_pool->pipe_count; i++) {
@@ -3862,6 +3862,9 @@ static void commit_planes_for_stream(struct dc *dc,
                context_clock_trace(dc, context);
        }
 
+       if (update_type == UPDATE_TYPE_FULL)
+               hwss_wait_for_outstanding_hw_updates(dc, dc->current_state);
+
        top_pipe_to_program = resource_get_otg_master_for_stream(
                                &context->res_ctx,
                                stream);
This page took 0.064451 seconds and 4 git commands to generate.