[PATCH 3/5] nouveau: Add interface to detect optimus support

2012-09-11 Thread Dave Airlie
On Tue, Sep 11, 2012 at 2:25 AM, Lekensteyn wrote: > Hi Dave, > >> +bool nouveau_is_optimus(void) { >> + return nouveau_dsm_priv.optimus_detected; >> +} > This will only work for new Optimus laptops, not the older ones such as your > Lenovo T410s or on a Dell Vostro 3500 with a GT 310M. Is tha

Re: [PATCH 3/5] nouveau: Add interface to detect optimus support

2012-09-11 Thread Lekensteyn
Hi Dave, > +bool nouveau_is_optimus(void) { > + return nouveau_dsm_priv.optimus_detected; > +} This will only work for new Optimus laptops, not the older ones such as your Lenovo T410s or on a Dell Vostro 3500 with a GT 310M. Is that intended? If not, check for those models too: ret

[PATCH 3/5] nouveau: Add interface to detect optimus support

2012-09-10 Thread Lekensteyn
Hi Dave, > +bool nouveau_is_optimus(void) { > + return nouveau_dsm_priv.optimus_detected; > +} This will only work for new Optimus laptops, not the older ones such as your Lenovo T410s or on a Dell Vostro 3500 with a GT 310M. Is that intended? If not, check for those models too: ret

[PATCH 3/5] nouveau: Add interface to detect optimus support

2012-09-10 Thread Dave Airlie
From: Dave Airlie This is required for later patches. Signed-off-by: Dave Airlie --- drivers/gpu/drm/nouveau/nouveau_acpi.c | 4 drivers/gpu/drm/nouveau/nouveau_acpi.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/gpu/drm/nouveau/nouveau_acpi.c b/drivers/gpu/drm/nouveau/

Re: [PATCH 3/5] nouveau: Add interface to detect optimus support

2012-09-10 Thread Dave Airlie
On Tue, Sep 11, 2012 at 2:25 AM, Lekensteyn wrote: > Hi Dave, > >> +bool nouveau_is_optimus(void) { >> + return nouveau_dsm_priv.optimus_detected; >> +} > This will only work for new Optimus laptops, not the older ones such as your > Lenovo T410s or on a Dell Vostro 3500 with a GT 310M. Is tha

[PATCH 3/5] nouveau: Add interface to detect optimus support

2012-09-09 Thread Dave Airlie
From: Dave Airlie This is required for later patches. Signed-off-by: Dave Airlie --- drivers/gpu/drm/nouveau/nouveau_acpi.c | 4 drivers/gpu/drm/nouveau/nouveau_acpi.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/gpu/drm/nouveau/nouveau_acpi.c b/drivers/gpu/drm/nouveau/