]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit16dcdb95e3aa140bf34eac21d7b79170f4c9cea3
treeb7bba1a92527e4cee4c95db21b2cb9f01ed40aa0
parent72db6aed99c774d58c4ac3a0fa91ad1dfeac6ee5
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