Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Use dc_update_planes_and_stream

[Why & How]
The old dc_commit_updates_for_stream lacks manipulation for many corner
cases where the DC feature requires special attention; as a result, it
starts to show its limitation (e.g., the SubVP feature is not supported
by it, among other cases). To modernize and unify our internal API, this
commit replaces the old dc_commit_updates_for_stream with
dc_update_planes_and_stream, which has more features.

Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Rodrigo Siqueira and committed by
Alex Deucher
f7511289 b8272241

+15 -15
+15 -15
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
··· 2672 2672 bundle->surface_updates[m].surface->force_full_update = 2673 2673 true; 2674 2674 } 2675 - dc_commit_updates_for_stream( 2676 - dm->dc, bundle->surface_updates, 2675 + 2676 + dc_update_planes_and_stream(dm->dc, 2677 + bundle->surface_updates, 2677 2678 dc_state->stream_status->plane_count, 2678 - dc_state->streams[k], &bundle->stream_update, dc_state); 2679 + dc_state->streams[k], 2680 + &bundle->stream_update); 2679 2681 } 2680 2682 2681 2683 cleanup: ··· 8161 8159 acrtc_state->stream->link->psr_settings.psr_allow_active) 8162 8160 amdgpu_dm_psr_disable(acrtc_state->stream); 8163 8161 8164 - dc_commit_updates_for_stream(dm->dc, 8165 - bundle->surface_updates, 8166 - planes_count, 8167 - acrtc_state->stream, 8168 - &bundle->stream_update, 8169 - dc_state); 8162 + dc_update_planes_and_stream(dm->dc, 8163 + bundle->surface_updates, 8164 + planes_count, 8165 + acrtc_state->stream, 8166 + &bundle->stream_update); 8170 8167 8171 8168 /** 8172 8169 * Enable or disable the interrupts on the backend. ··· 8695 8694 8696 8695 8697 8696 mutex_lock(&dm->dc_lock); 8698 - dc_commit_updates_for_stream(dm->dc, 8699 - dummy_updates, 8700 - status->plane_count, 8701 - dm_new_crtc_state->stream, 8702 - &stream_update, 8703 - dc_state); 8697 + dc_update_planes_and_stream(dm->dc, 8698 + dummy_updates, 8699 + status->plane_count, 8700 + dm_new_crtc_state->stream, 8701 + &stream_update); 8704 8702 mutex_unlock(&dm->dc_lock); 8705 8703 } 8706 8704