drm/i915: Disable all crtcs during driver unload, v2.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 15 Dec 2016 14:29:44 +0000 (15:29 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 1 Feb 2017 21:04:37 +0000 (22:04 +0100)
commita667fb402c1e856209bf9e77ba41fc1cf356b867
tree39b2e5bd15297c6fb56e776e0d0d0de96bfacbb3
parent453cfe21711f644e744e834d5c61042b2fac218d
drm/i915: Disable all crtcs during driver unload, v2.

We may keep the crtc's enabled when userspace unsets all framebuffers but
keeps the crtc active. This exposes a WARN in fbc_global disable, and
a lot of bugs in our hardware readout code. Solve this by disabling
all crtc's for now.

Changes since v1:
- Use lock_all_ctx instead of lock_all.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1481812185-19098-4-git-send-email-maarten.lankhorst@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c