nouveau: Support Optimus models for vga_switcheroo
authorPeter Lekensteyn <lekensteyn@gmail.com>
Sat, 17 Dec 2011 11:54:04 +0000 (12:54 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 13 Jan 2012 09:09:15 +0000 (09:09 +0000)
commitd099230cc355c485e556121c034b1fca5a5fd18b
treeb7bba1a92527e4cee4c95db21b2cb9f01ed40aa0
parent9075e85f46c598e4dfc852b16b256a32e2fb396f
nouveau: Support Optimus models for vga_switcheroo

Newer nVidia cards with Optimus do not support/use the DSM switching functions.
Instead, it require a DSM function to be called prior to bringing a device into
D3 state. No other _DSM calls are necessary before/after enabling/disabling a
device. Switching between discrete and integrated GPU is not supported by
this Optimus _DSM call, therefore return on the switching method.

Signed-off-by: Peter Lekensteyn <lekensteyn@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_acpi.c
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_state.c