bianbu-linux-6.6/drivers/gpu/drm/amd
Leo Li c7e557ab46 drm/amd/display: Clean up locking in dcn*_apply_ctx_for_surface()
[Why]

dcn*_disable_plane() doesn't unlock the pipe anymore, making the extra
lock unnecessary.

In addition - during full plane updates - all necessary pipes should be
locked/unlocked together when modifying hubp to avoid tearing in
pipesplit setups.

[How]

Remove redundant locks, and add function to lock all pipes. If an
interdependent pipe update is required, lock down all pipes. Otherwise,
lock only the top pipe for the updated pipe tree.

Signed-off-by: Leo Li <sunpeng.li@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-04-10 13:53:28 -05:00
..
acp drm/amdgpu: Remove wrapper layer of cgs irq handling 2018-03-21 14:36:58 -05:00
amdgpu drm/amd/display: Remove semicolon from to_dm_plane_state definition 2019-04-10 13:53:27 -05:00
amdkfd Revert "drm/amdkfd: avoid HMM change cause circular lock" 2019-03-28 10:15:49 -05:00
display drm/amd/display: Clean up locking in dcn*_apply_ctx_for_surface() 2019-04-10 13:53:28 -05:00
include drm/amdgpu: remove chash 2019-03-19 15:36:58 -05:00
powerplay drm/amd/powerplay: simplify the code of [get|set]_activity_monitor_coeff 2019-04-10 13:49:02 -05:00