Skip to content

Commit 627f890

Browse files
Ilya BakoulinAlex Hung
authored andcommitted
drm/amd/display: Minimize wait for pending updates
[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 <dillon.varone@amd.com> Reviewed-by: Alvin Lee <alvin.lee2@amd.com> Signed-off-by: Ilya Bakoulin <Ilya.Bakoulin@amd.com> Signed-off-by: Zaeem Mohamed <zaeem.mohamed@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> (cherry picked from commit 022f0d692c8bccf51b10f2ac4ea6341c646a0986) Signed-off-by: Alex Hung <alex.hung@amd.com>
1 parent 28850c2 commit 627f890

File tree

1 file changed

+4
-1
lines changed
  • drivers/gpu/drm/amd/display/dc/core

1 file changed

+4
-1
lines changed

drivers/gpu/drm/amd/display/dc/core/dc.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3822,7 +3822,7 @@ static void commit_planes_for_stream(struct dc *dc,
38223822
dc_exit_ips_for_hw_access(dc);
38233823

38243824
dc_z10_restore(dc);
3825-
if (update_type == UPDATE_TYPE_FULL)
3825+
if (update_type == UPDATE_TYPE_FULL && dc->optimized_required)
38263826
hwss_process_outstanding_hw_updates(dc, dc->current_state);
38273827

38283828
for (i = 0; i < dc->res_pool->pipe_count; i++) {
@@ -3849,6 +3849,9 @@ static void commit_planes_for_stream(struct dc *dc,
38493849
context_clock_trace(dc, context);
38503850
}
38513851

3852+
if (update_type == UPDATE_TYPE_FULL)
3853+
hwss_wait_for_outstanding_hw_updates(dc, dc->current_state);
3854+
38523855
top_pipe_to_program = resource_get_otg_master_for_stream(
38533856
&context->res_ctx,
38543857
stream);

0 commit comments

Comments
 (0)