* [PATCH] drm/i915: take mode config lock around crtc disable at suspend
@ 2013-11-26 17:13 Jesse Barnes
2013-11-26 18:09 ` Daniel Vetter
0 siblings, 1 reply; 2+ messages in thread
From: Jesse Barnes @ 2013-11-26 17:13 UTC (permalink / raw)
To: intel-gfx
This is just a theoretical issue, but we need to do this to prevent the
WARN in pipe_from_connector at suspend time.
https://bugs.freedesktop.org/show_bug.cgi?id=71978
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
---
drivers/gpu/drm/i915/i915_drv.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 13076db..0ec0fb3 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -535,8 +535,10 @@ static int i915_drm_freeze(struct drm_device *dev)
* Disable CRTCs directly since we want to preserve sw state
* for _thaw.
*/
+ mutex_lock(&dev->mode_config.mutex);
list_for_each_entry(crtc, &dev->mode_config.crtc_list, head)
dev_priv->display.crtc_disable(crtc);
+ mutex_unlock(&dev->mode_config.mutex);
intel_modeset_suspend_hw(dev);
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/i915: take mode config lock around crtc disable at suspend
2013-11-26 17:13 [PATCH] drm/i915: take mode config lock around crtc disable at suspend Jesse Barnes
@ 2013-11-26 18:09 ` Daniel Vetter
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Vetter @ 2013-11-26 18:09 UTC (permalink / raw)
To: Jesse Barnes; +Cc: intel-gfx
On Tue, Nov 26, 2013 at 09:13:41AM -0800, Jesse Barnes wrote:
> This is just a theoretical issue, but we need to do this to prevent the
> WARN in pipe_from_connector at suspend time.
>
> https://bugs.freedesktop.org/show_bug.cgi?id=71978
> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Picked up for -fixes, thanks for the patch.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-26 18:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-26 17:13 [PATCH] drm/i915: take mode config lock around crtc disable at suspend Jesse Barnes
2013-11-26 18:09 ` Daniel Vetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox