android_kernel_xiaomi_sm8350/drivers/gpu/drm/i915
Linus Torvalds c9354c85c1 i915: fix intel graphics suspend breakage due to resume/lid event confusion
In commit c1c7af6089 ("drm/i915: force
mode set at lid open time") the intel graphics driver was taught to
restore the LVDS mode on lid open.

That caused problems with interaction with the suspend/resume code,
which commonly runs at the same time (suspend is often caused by the lid
close event, while lid open is commonly a resume event), which was
worked around with in commit 06891e27a9
("drm/i915: fix suspend/resume breakage in lid notifier").

However, in the meantime the lid event code had also grown a user event
notifier (commit 06324194ee: "drm/i915:
generate a KMS uevent at lid open/close time"), and now _that_ causes
problems with suspend/resume and some versions of Xorg reacting to those
uevents by setting the mode.

So this effectively reverts that commit 06324194ee, and makes the lid
open protection logic against suspend/resume more explicit.  This fixes
at least one laptop. See

	http://bugzilla.kernel.org/show_bug.cgi?id=14484

for more details.

Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Cc: Eric Anholt <eric@anholt.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-11-02 09:29:55 -08:00
..
dvo_ch7xxx.c
dvo_ch7017.c
dvo_ivch.c
dvo_sil164.c
dvo_tfp410.c
dvo.h
i915_debugfs.c
i915_dma.c drm/i915: Enable irq to trace batch buffer completion. 2009-09-29 03:15:25 +01:00
i915_drv.c i915: fix intel graphics suspend breakage due to resume/lid event confusion 2009-11-02 09:29:55 -08:00
i915_drv.h i915: fix intel graphics suspend breakage due to resume/lid event confusion 2009-11-02 09:29:55 -08:00
i915_gem_debug.c
i915_gem_tiling.c
i915_gem.c drm/i915: Enable irq to trace batch buffer completion. 2009-09-29 03:15:25 +01:00
i915_ioc32.c
i915_irq.c drm/i915: Enable irq to trace batch buffer completion. 2009-09-29 03:15:25 +01:00
i915_mem.c
i915_opregion.c
i915_reg.h Merge branch 'drm-intel-next' of git://git.kernel.org/pub/scm/linux/kernel/git/anholt/drm-intel 2009-09-24 10:30:41 -07:00
i915_suspend.c
i915_trace_points.c drm/i915: Add tracepoints 2009-09-23 01:05:21 +01:00
i915_trace.h drm/i915: Enable irq to trace batch buffer completion. 2009-09-29 03:15:25 +01:00
intel_bios.c
intel_bios.h
intel_crt.c
intel_display.c Merge branch 'drm-intel-next' of git://git.kernel.org/pub/scm/linux/kernel/git/anholt/drm-intel 2009-10-09 09:19:23 -07:00
intel_dp_i2c.c
intel_dp.c trivial: remove unnecessary semicolons 2009-09-21 15:14:58 +02:00
intel_dp.h
intel_drv.h Merge branch 'drm-next' of ../drm-next into drm-linus 2009-10-08 14:03:05 +10:00
intel_dvo.c
intel_fb.c drm/fb: add more correct 8/16/24/32 bpp fb support. 2009-10-06 13:54:01 +10:00
intel_hdmi.c drm/i915: Initialize HDMI outputs as HDMI connectors, not DVI. 2009-10-02 14:53:42 -07:00
intel_i2c.c
intel_lvds.c i915: fix intel graphics suspend breakage due to resume/lid event confusion 2009-11-02 09:29:55 -08:00
intel_modes.c
intel_sdvo_regs.h
intel_sdvo.c
intel_tv.c drm/i915: Multiply the refresh by 1000 in TV mode validatiion 2009-10-02 12:12:31 -07:00
Makefile drm/i915: Add tracepoints 2009-09-23 01:05:21 +01:00