drm/atomic-helper: Implement subsystem-level suspend/resume
authorThierry Reding <treding@nvidia.com>
Wed, 2 Dec 2015 16:50:04 +0000 (17:50 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 2 Dec 2015 22:11:17 +0000 (23:11 +0100)
commit1494276000db789c6d2acd85747be4707051c801
treebf2dda38924cfcb41ae23374ab670640c951f754
parent06eaae46381737a6236ad6fe81e5358fad3bbbe5
drm/atomic-helper: Implement subsystem-level suspend/resume

Provide subsystem-level suspend and resume helpers that can be used to
implement suspend/resume on atomic mode-setting enabled drivers.

v2: simplify locking, enhance kerneldoc comments
v3: pass lock acquisition context by parameter, improve kerneldoc
v4: - remove redundant code (already provided by atomic helpers)
      (Maarten Lankhorst)
    - move backoff dance from drm_modeset_lock_all_ctx() into suspend
      helper (Daniel Vetter)
v5: handle potential EDEADLK from drm_atomic_helper_duplicate_state()
    and drm_atomic_helper_disable_all() (Daniel Vetter)

Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1449075005-13937-2-git-send-email-thierry.reding@gmail.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic_helper.c
drivers/gpu/drm/drm_crtc_helper.c
include/drm/drm_atomic_helper.h