ArchiveOrangemail archive

opensuse-kernel.opensuse.org


(List home) (Recent threads) (97 other OpenSUSE lists)

Subscription Options

  • RSS or Atom: Read-only subscription using a browser or aggregator. This is the recommended way if you don't need to send messages to the list. You can learn more about feed syndication and clients here.
  • Conventional: All messages are delivered to your mail address, and you can reply. To subscribe, send an email to the list's subscribe address with "subscribe" in the subject line, or visit the list's homepage here.
  • Low traffic list: less than 3 messages per day
  • This list contains about 4,787 messages, beginning Aug 2007
  • 1 messages added yesterday
Report the Spam
This button sends a spam report to the moderator. Please use it sparingly. For other removal requests, read this.
Are you sure? yes no

3.4rc6: ACPI change/regression ?

Ad
Cristian Rodríguez 1336577092Wed, 09 May 2012 15:24:52 +0000 (UTC)
Hi:

Since 3.4rc6 I am not able to "turn off" unused Nvidia "optimus" card, 
either with 3rd party modules or vga_switchero.

In rc5 it worked fine, now I get:

a) with third party bbswitch module.

bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
bbswitch: detected an Optimus _DSM function
bbswitch: disabling discrete graphics
bbswitch: Result of Optimus _DSM call: 11000059
pci 0000:01:00.0: Refused to change power state, currently in D0
ACPI: Device does not support D3
bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on

Ok, third party module may be buggy and I don't expect anyone here to 
support it, so I went to try kernel vga_switchero..

VGA switcheroo: switched nouveau off
[drm] nouveau 0000:01:00.0: Disabling display...
[drm] nouveau 0000:01:00.0: Disabling fbcon...
[drm] nouveau 0000:01:00.0: Unpinning framebuffer(s)...
[drm] nouveau 0000:01:00.0: Evicting buffers...
[drm] nouveau 0000:01:00.0: Idling channels...
[drm] nouveau 0000:01:00.0: Suspending GPU objects...
[drm] nouveau 0000:01:00.0: And we're gone!
ACPI: Device does not support D3

But device DOES support D3 states or at least it did in rc5..

The ill effec of this change is that now the video card fan is running 
almost all the time.

Is this a side effect of 
http://git.kernel.org/?p=linux/kernel/git/tor... 
?
Rafael J. Wysocki 1336674234Thu, 10 May 2012 18:23:54 +0000 (UTC)
On Wednesday, May 09, 2012, Cristian Rodríguez wrote:
> Hi:
> 
> Since 3.4rc6 I am not able to "turn off" unused Nvidia "optimus" card, 
> either with 3rd party modules or vga_switchero.
> 
> In rc5 it worked fine, now I get:
> 
> a) with third party bbswitch module.
> 
> bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
> bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
> bbswitch: detected an Optimus _DSM function
> bbswitch: disabling discrete graphics
> bbswitch: Result of Optimus _DSM call: 11000059
> pci 0000:01:00.0: Refused to change power state, currently in D0
> ACPI: Device does not support D3
> bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
> 
> Ok, third party module may be buggy and I don't expect anyone here to 
> support it, so I went to try kernel vga_switchero..
> 
> VGA switcheroo: switched nouveau off
> [drm] nouveau 0000:01:00.0: Disabling display...
> [drm] nouveau 0000:01:00.0: Disabling fbcon...
> [drm] nouveau 0000:01:00.0: Unpinning framebuffer(s)...
> [drm] nouveau 0000:01:00.0: Evicting buffers...
> [drm] nouveau 0000:01:00.0: Idling channels...
> [drm] nouveau 0000:01:00.0: Suspending GPU objects...
> [drm] nouveau 0000:01:00.0: And we're gone!
> ACPI: Device does not support D3
> 
> But device DOES support D3 states or at least it did in rc5..
> 
> The ill effec of this change is that now the video card fan is running 
> almost all the time.
> 
> Is this a side effect of 
> http://git.kernel.org/?p=linux/kernel/git/tor... 
> ?
> 
>
Rafael J. Wysocki 1336674401Thu, 10 May 2012 18:26:41 +0000 (UTC)
Hi,On Thursday, May 10, 2012, Rafael J. Wysocki wrote:
> On Wednesday, May 09, 2012, Cristian Rodríguez wrote:
> > Hi:
> > 
> > Since 3.4rc6 I am not able to "turn off" unused Nvidia "optimus" card, 
> > either with 3rd party modules or vga_switchero.
> > 
> > In rc5 it worked fine, now I get:
> > 
> > a) with third party bbswitch module.
> > 
> > bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
> > bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
> > bbswitch: detected an Optimus _DSM function
> > bbswitch: disabling discrete graphics
> > bbswitch: Result of Optimus _DSM call: 11000059
> > pci 0000:01:00.0: Refused to change power state, currently in D0
> > ACPI: Device does not support D3
> > bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
> > 
> > Ok, third party module may be buggy and I don't expect anyone here to 
> > support it, so I went to try kernel vga_switchero..
> > 
> > VGA switcheroo: switched nouveau off
> > [drm] nouveau 0000:01:00.0: Disabling display...
> > [drm] nouveau 0000:01:00.0: Disabling fbcon...
> > [drm] nouveau 0000:01:00.0: Unpinning framebuffer(s)...
> > [drm] nouveau 0000:01:00.0: Evicting buffers...
> > [drm] nouveau 0000:01:00.0: Idling channels...
> > [drm] nouveau 0000:01:00.0: Suspending GPU objects...
> > [drm] nouveau 0000:01:00.0: And we're gone!
> > ACPI: Device does not support D3
> > 
> > But device DOES support D3 states or at least it did in rc5..
> > 
> > The ill effec of this change is that now the video card fan is running 
> > almost all the time.
> > 
> > Is this a side effect of 
> > http://git.kernel.org/?p=linux/kernel/git/tor... 
> > ?Yes, it's probably this one.  Have you tried to revert it?

Rafael
Lin Ming 1336705666Fri, 11 May 2012 03:07:46 +0000 (UTC)
On Fri, May 11, 2012 at 2:28 AM, Rafael J. Wysocki  wrote:
> On Wednesday, May 09, 2012, Cristian Rodríguez wrote:
>> Hi:
>>
>> Since 3.4rc6 I am not able to "turn off" unused Nvidia "optimus" card,
>> either with 3rd party modules or vga_switchero.
>>
>> In rc5 it worked fine, now I get:
>>
>> a) with third party bbswitch module.
>>
>> bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
>> bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
>> bbswitch: detected an Optimus _DSM function
>> bbswitch: disabling discrete graphics
>> bbswitch: Result of Optimus _DSM call: 11000059
>> pci 0000:01:00.0: Refused to change power state, currently in D0
>> ACPI: Device does not support D3
>> bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
>>
>> Ok, third party module may be buggy and I don't expect anyone here to
>> support it, so I went to try kernel vga_switchero..
>>
>> VGA switcheroo: switched nouveau off
>> [drm] nouveau 0000:01:00.0: Disabling display...
>> [drm] nouveau 0000:01:00.0: Disabling fbcon...
>> [drm] nouveau 0000:01:00.0: Unpinning framebuffer(s)...
>> [drm] nouveau 0000:01:00.0: Evicting buffers...
>> [drm] nouveau 0000:01:00.0: Idling channels...
>> [drm] nouveau 0000:01:00.0: Suspending GPU objects...
>> [drm] nouveau 0000:01:00.0: And we're gone!
>> ACPI: Device does not support D3
>>
>> But device DOES support D3 states or at least it did in rc5..
>>
>> The ill effec of this change is that now the video card fan is running
>> almost all the time.
>>
>> Is this a side effect of
>> http://git.kernel.org/?p=linux/kernel/git/tor...
>> ?Hi Cristian,

Could you attach the acpidump output of your machine?

Thanks,
Lin Ming
Cristian Rodríguez 1336707162Fri, 11 May 2012 03:32:42 +0000 (UTC)
attacpidump.xz (47.7 kB)
El 10/05/12 23:07, Lin Ming escribió:

> Could you attach the acpidump output of your machine?
>
> Thanks,
> Lin MingSure, here it is ;-)
Rafael J. Wysocki 1336766808Fri, 11 May 2012 20:06:48 +0000 (UTC)
On Friday, May 11, 2012, Lin Ming wrote:
> On Fri, May 11, 2012 at 2:28 AM, Rafael J. Wysocki  wrote:
> > On Wednesday, May 09, 2012, Cristian Rodríguez wrote:
> >> Hi:
> >>
> >> Since 3.4rc6 I am not able to "turn off" unused Nvidia "optimus" card,
> >> either with 3rd party modules or vga_switchero.
> >>
> >> In rc5 it worked fine, now I get:
> >>
> >> a) with third party bbswitch module.
> >>
> >> bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
> >> bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
> >> bbswitch: detected an Optimus _DSM function
> >> bbswitch: disabling discrete graphics
> >> bbswitch: Result of Optimus _DSM call: 11000059
> >> pci 0000:01:00.0: Refused to change power state, currently in D0
> >> ACPI: Device does not support D3
> >> bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
> >>
> >> Ok, third party module may be buggy and I don't expect anyone here to
> >> support it, so I went to try kernel vga_switchero..
> >>
> >> VGA switcheroo: switched nouveau off
> >> [drm] nouveau 0000:01:00.0: Disabling display...
> >> [drm] nouveau 0000:01:00.0: Disabling fbcon...
> >> [drm] nouveau 0000:01:00.0: Unpinning framebuffer(s)...
> >> [drm] nouveau 0000:01:00.0: Evicting buffers...
> >> [drm] nouveau 0000:01:00.0: Idling channels...
> >> [drm] nouveau 0000:01:00.0: Suspending GPU objects...
> >> [drm] nouveau 0000:01:00.0: And we're gone!
> >> ACPI: Device does not support D3This message is from __acpi_bus_set_power() which complains that the
device's "valid" flag is not set for D3_HOT (otherwise it would print
D4, which is a bug on its own, BTW).

Now, the flag isn't set for D3_HOT (not _PR3 present, quite evidently),
so I guess what happens is that the driver asks the device to go into
PCI_D3hot and acpi_pci_set_power_state() calls acpi_bus_set_power()
with state equal to ACPI_STATE_D3_HOT.

Christian, does the patch below help?

Rafael---
 drivers/pci/pci-acpi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux/drivers/pci/pci-acpi.c
===================================================================
--- linux.orig/drivers/pci/pci-acpi.c
+++ linux/drivers/pci/pci-acpi.c
@@ -223,7 +223,7 @@ static int acpi_pci_set_power_state(stru
 		[PCI_D0] = ACPI_STATE_D0,
 		[PCI_D1] = ACPI_STATE_D1,
 		[PCI_D2] = ACPI_STATE_D2,
-		[PCI_D3hot] = ACPI_STATE_D3_HOT,
+		[PCI_D3hot] = ACPI_STATE_D3,
 		[PCI_D3cold] = ACPI_STATE_D3
 	};
 	int error = -EINVAL;
Rafael J. Wysocki 1337022069Mon, 14 May 2012 19:01:09 +0000 (UTC)
On Friday, May 11, 2012, Rafael J. Wysocki wrote:
> On Friday, May 11, 2012, Lin Ming wrote:
> > On Fri, May 11, 2012 at 2:28 AM, Rafael J. Wysocki  wrote:
> > > On Wednesday, May 09, 2012, Cristian Rodríguez wrote:
> > >> Hi:
> > >>
> > >> Since 3.4rc6 I am not able to "turn off" unused Nvidia "optimus" card,
> > >> either with 3rd party modules or vga_switchero.
> > >>
> > >> In rc5 it worked fine, now I get:
> > >>
> > >> a) with third party bbswitch module.
> > >>
> > >> bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
> > >> bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
> > >> bbswitch: detected an Optimus _DSM function
> > >> bbswitch: disabling discrete graphics
> > >> bbswitch: Result of Optimus _DSM call: 11000059
> > >> pci 0000:01:00.0: Refused to change power state, currently in D0
> > >> ACPI: Device does not support D3
> > >> bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
> > >>
> > >> Ok, third party module may be buggy and I don't expect anyone here to
> > >> support it, so I went to try kernel vga_switchero..
> > >>
> > >> VGA switcheroo: switched nouveau off
> > >> [drm] nouveau 0000:01:00.0: Disabling display...
> > >> [drm] nouveau 0000:01:00.0: Disabling fbcon...
> > >> [drm] nouveau 0000:01:00.0: Unpinning framebuffer(s)...
> > >> [drm] nouveau 0000:01:00.0: Evicting buffers...
> > >> [drm] nouveau 0000:01:00.0: Idling channels...
> > >> [drm] nouveau 0000:01:00.0: Suspending GPU objects...
> > >> [drm] nouveau 0000:01:00.0: And we're gone!
> > >> ACPI: Device does not support D3
> 
> This message is from __acpi_bus_set_power() which complains that the
> device's "valid" flag is not set for D3_HOT (otherwise it would print
> D4, which is a bug on its own, BTW).
> 
> Now, the flag isn't set for D3_HOT (not _PR3 present, quite evidently),
> so I guess what happens is that the driver asks the device to go into
> PCI_D3hot and acpi_pci_set_power_state() calls acpi_bus_set_power()
> with state equal to ACPI_STATE_D3_HOT.
> 
> Christian, does the patch below help?
> 
> Rafael
> 
> 
> ---
>  drivers/pci/pci-acpi.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> Index: linux/drivers/pci/pci-acpi.c
> ===================================================================
> --- linux.orig/drivers/pci/pci-acpi.c
> +++ linux/drivers/pci/pci-acpi.c
> @@ -223,7 +223,7 @@ static int acpi_pci_set_power_state(stru
>  		[PCI_D0] = ACPI_STATE_D0,
>  		[PCI_D1] = ACPI_STATE_D1,
>  		[PCI_D2] = ACPI_STATE_D2,
> -		[PCI_D3hot] = ACPI_STATE_D3_HOT,
> +		[PCI_D3hot] = ACPI_STATE_D3,
>  		[PCI_D3cold] = ACPI_STATE_D3
>  	};
>  	int error = -EINVAL;
> --Christian?  Ping ...
Home | About | Privacy