[Intel-gfx] [PATCH] drm/i915: fix suspend/resume breakage in lid notifier

Ben Gamari bgamari.foss at gmail.com
Mon Sep 14 22:01:31 CEST 2009


On Mon, Sep 14, 2009 at 10:58:48AM -0700, Jesse Barnes wrote:
> We now unconditionally restore the mode at lid open time since some
> platforms turn off the panel, pipes or other display elements when the
> lid is closed.  There's a problem with doing this at resume time
> however.
> 
> At resume time, we'll get a lid event, but restoring the mode at that
> time may not be safe (e.g. if we get the lid event before global state
> has been restored), so check the suspended state and make sure our
> restore is locked against other mode updates.
> 
> Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
Tested-by: Ben Gamari <bgamari.foss at gmail.com>

Thanks,
- Ben




More information about the Intel-gfx mailing list