linux/drivers/gpu
Thierry Reding 8b9bfee228 UPSTREAM: drm: Implement drm_modeset_lock_all_ctx()
This function is like drm_modeset_lock_all(), but it takes the lock
acquisition context as a parameter rather than storing it in the DRM
device's mode_config structure.

Implement drm_modeset_{,un}lock_all() in terms of the new function for
better code reuse, and add a note to the kerneldoc that new code should
use the new functions.

v2: improve kerneldoc
v4: rename drm_modeset_lock_all_crtcs() to drm_modeset_lock_all_ctx()
    and take mode_config's .connection_mutex instead of .mutex lock to
    avoid lock inversion (Daniel Vetter), use drm_modeset_drop_locks()
    which is now the equivalent of drm_modeset_unlock_all_ctx()
v5: do not take the dev->mode_config.connection_mutex in
    drm_atomic_legacy_backoff() since drm_modeset_lock_all_ctx()
    already keeps it, enhance kerneldoc for drm_modeset_lock_all_ctx()
    (Daniel Vetter)

Change-Id: I1f16f686f77139b749b38c7a3a0dbc0b5d25f6fd
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1449075005-13937-1-git-send-email-thierry.reding@gmail.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
(cherry picked from commit 06eaae4638)
2016-08-08 14:39:25 +08:00
..
arm MALI: midgard: rockchip: add sysfs files to get GPU utilisation 2016-08-02 20:01:37 +08:00
drm UPSTREAM: drm: Implement drm_modeset_lock_all_ctx() 2016-08-08 14:39:25 +08:00
host1x rk: revert to v3.10 2015-11-11 15:57:28 +08:00
ipu-v3 drm/imx: Match imx-ipuv3-crtc components using device node in platform data 2016-06-07 18:14:37 -07:00
rogue RK3368 GPU version: Rogue L 0.22 2015-08-17 14:12:00 +08:00
rogue_m GPU: Rogue_M: update to 1.31_2 version & support gpu pd. 2016-01-18 19:04:28 +08:00
vga vgaarb: fix signal handling in vga_get() 2015-12-11 14:04:44 +10:00
Makefile MALI: add midgard src dir 2016-03-09 16:51:03 +08:00