drm/msm: update cursors asynchronously through atomic
authorGustavo Padovan <gustavo.padovan@collabora.com>
Fri, 30 Jun 2017 18:03:20 +0000 (15:03 -0300)
committerRob Clark <robdclark@gmail.com>
Sat, 28 Oct 2017 18:02:56 +0000 (14:02 -0400)
commit224a4c970987fc685bc04854c5fb2d94ef46b2ee
tree84a38856b9ecb1cec5bad46fe867acbe2bbb504a
parent1f920175fff934b2bef0168cb70cf82b690f2d96
drm/msm: update cursors asynchronously through atomic

Add support to async updates of cursors by using the new atomic
interface for that. Basically what this commit does is do what
mdp5_update_cursor_plane_legacy() did but through atomic.

v5: call drm_atomic_helper_async_check() from the check hook

v4: add missing atomic async commit call to msm_atomic_commit(Archit Taneja)

v3: move size checks back to drivers (Ville Syrjälä)

v2: move fb setting to core and use new state (Eric Anholt)

Cc: Rob Clark <robdclark@gmail.com>
Cc: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Tested-by: Archit Taneja <architt@codeaurora.org> (v4)
[added comment about not hitting async update path if hwpipes are
 re-assigned or global state is touched]
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c
drivers/gpu/drm/msm/msm_atomic.c