drm/msm/mdp5: add skeletal mdp5_state
authorRob Clark <robdclark@gmail.com>
Fri, 4 Nov 2016 18:50:08 +0000 (14:50 -0400)
committerRob Clark <robdclark@gmail.com>
Sun, 27 Nov 2016 16:32:28 +0000 (11:32 -0500)
commitac2a3fd35b48b7fb5a9e08a6d6f83147178b833d
treeca65aae8174271e0b5ee51f06fff5764c3771653
parent870d738acb7ebb0d4f6192c9d328cae95479715b
drm/msm/mdp5: add skeletal mdp5_state

Add basic state duplication/apply mechanism.  Following commits will
move actual global hw state into this.

The state_lock allows multiple concurrent updates to proceed as long as
they don't both try to alter global state.  The ww_mutex mechanism will
trigger backoff in case of deadlock between multiple threads trying to
update state.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Archit Taneja <architt@codeaurora.org>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.h