linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Display switching support for Apple laptops
@ 2012-08-17 16:17 Seth Forshee
  2012-08-17 16:17 ` [PATCH v2 1/3] vga_switcheroo: Don't require handler init callback Seth Forshee
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Seth Forshee @ 2012-08-17 16:17 UTC (permalink / raw)
  To: linux-kernel, dri-devel, platform-driver-x86
  Cc: Matthew Garrett, David Airlie, Andreas Heider, Bernhard Froemel

This series adds display switching support for Apple laptops. The first
two patches contain preparatory changes to vga_switcheroo, and the third
contains the changes to support display switching with the gmux.

While these patches will allow switching the display mux, most Macbook
owners will not be able to switch GPUs in practice until the graphics
drivers are updated to deal with missing or incorrect vbios information
on Apple machines. These patches do fix an issue seen by some users of
Linux on Macbooks, however. These users will switch to the internal GPU
in OS X and then reboot into Linux to save power, but after S3 the gmux
gets reset to the discrete GPU. Adding the display mux support will fix
this problem by restoring the gmux state during resume.

v2: Disable interrupts during suspend and re-enable them during resume
    to fix timeouts waiting for switching to complete after S3

Thanks,
Seth


Andreas Heider (1):
  apple-gmux: Add display mux support

Seth Forshee (2):
  vga_switcheroo: Don't require handler init callback
  vga_switcheroo: Remove assumptions about registration/unregistration
    ordering

 drivers/gpu/drm/nouveau/nouveau_acpi.c |    6 -
 drivers/gpu/vga/vga_switcheroo.c       |   61 +++++----
 drivers/platform/x86/apple-gmux.c      |  224 ++++++++++++++++++++++++++++++++
 3 files changed, 262 insertions(+), 29 deletions(-)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-08-17 16:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-17 16:17 [PATCH v2 0/3] Display switching support for Apple laptops Seth Forshee
2012-08-17 16:17 ` [PATCH v2 1/3] vga_switcheroo: Don't require handler init callback Seth Forshee
2012-08-17 16:17 ` [PATCH v2 2/3] vga_switcheroo: Remove assumptions about registration/unregistration ordering Seth Forshee
2012-08-17 16:17 ` [PATCH v2 3/3] apple-gmux: Add display mux support Seth Forshee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).