Nouveau Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Wu <peter-VTkQYDcBqhK7DlmcbJSQ7g@public.gmane.org>
To: Mika Westerberg
	<mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Cc: linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-pci-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	rick.2889-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: Acer Aspire V7-582PG (Haswell, GTX 750M) fails to power off GPU via Power Resources
Date: Thu, 27 Oct 2016 11:06:04 +0200	[thread overview]
Message-ID: <20161027090604.GB27017@al> (raw)
In-Reply-To: <20161027081748.GX1476-3PARRvDOhMZrdx17CPfAsdBPR1lH4CV8@public.gmane.org>

On Thu, Oct 27, 2016 at 11:17:48AM +0300, Mika Westerberg wrote:
> On Thu, Oct 27, 2016 at 12:56:41AM +0200, Peter Wu wrote:
> > Hi PCI/ACPI PM experts,
> > 
> > Since Linux 4.8, nouveau switched to rely on the PCIe port driver to
> > transition to D3cold. This however does not happen for an Acer Aspire
> > V7-582PG (Haswell, NVIDIA GTX 750M) from Rick.
> > 
> > Any idea why? acpidump, lspci, dmesg and other details can be found in
> > the linked bug below.
> 
> > 
> > Kind regards,
> > Peter
> > 
> > On Wed, Oct 26, 2016 at 10:42:07PM +0000, bugzilla-daemon@freedesktop.org wrote:
> > > https://bugs.freedesktop.org/show_bug.cgi?id=98398
> > > 
> > > --- Comment #11 from Peter Wu <peter@lekensteyn.nl> ---
> > > So 4.7 and before used the "DSM" method on runtime-suspend:
> > > - \_SB.PCI0.RP05.PEGP._DSM would be invoked to enable Optimus
> > > - \_SB.PCI0.RP05.PEGP._PS3 is then invoked which would enter D3cold
> > > (note, this method is still used in 4.8 on older laptops or with the
> > > pcie_pm_port=off kernel option)
> > > 
> > > Since 4.8, _DSM is not called anymore by nouveau (when support from the PCI
> > > core is detected) and this sequence should instead happen:
> > > - \_SB.PCI0.RP05.PEGP._PS3 (does nothing besides updating _STA)
> > > - PCIe core removes power for the PCIe port since all its children are in
> > >   D3 and are willing to transition to D3cold. It does so by invoking
> > >   \NVP3._OFF (where \NVP3 is the power resource from \_SB.PCI0.RP05._PR3)
> > > 
> > > That is how I think it should work in theory, but on Ricks laptop running
> > > 4.8.4,
> > > /sys/bus/devices/0000:1c.4/firmware_node/ does not have power_resources_D0
> > > devices (which I do have on my own laptop for 0000:01:0).
> > > 
> > > The SSDT1 of Rick's Acer laptop shows this structure:
> > > 
> > >     If (\_OSI ("Windows 2013"))
> > >     {
> > >         Scope (\_SB.PCI0.RP05)
> > >         {
> > >         //...
> > >             Name (_PR0, Package (0x01)  // _PR0: Power Resources for D0
> > >             {
> > >                 NVP3
> > >             })
> > >             Name (_PR2, Package (0x01)  // _PR2: Power Resources for D2
> > >             {
> > >                 NVP2
> > >             })
> > >             Name (_PR3, Package (0x01)  // _PR3: Power Resources for D3hot
> > >             {
> > >                 NVP3
> > >             })
> > >             // ...
> > >             Method (_PS0, 0, NotSerialized)  // _PS0: Power State 0
> > >             {
> > >             }
> > > 
> > >             Method (_PS3, 0, NotSerialized)  // _PS3: Power State 3
> > >             {
> > >             }
> > >         }
> > > 
> > >         Name (MSD3, Zero)
> > >         PowerResource (NVP3, 0x00, 0x0000)
> > >         {
> > >             Name (_STA, One)  // _STA: Status
> > >             // ...
> > > 
> > >             Method (_ON, 0, NotSerialized)  // _ON_: Power On
> > >             {
> > >                 // ...
> > >             }
> > > 
> > >             Method (_OFF, 0, NotSerialized)  // _OFF: Power Off
> > >             {
> > >                 // ...
> > >             }
> > >         }
> > > 
> > > The dmesg does show "ACPI: Power Resource [NVP3] (on)", so I guess that the
> > > methods are found. It is a mystery to me why the "power_resources_Dx" files are
> > > not created, possibly breaking PM.
> 
> The ASL code looks right to me (except for the NVP2 which never set _STA
> to 0 but should not affect here).
> 
> I wonder what does /sys/bus/pci/devices/0000:00:1c.4/firmware_node/path contain?

The value is as expected, \_SB.PCI0.RP05:

/sys/bus/pci/devices/0000:00:1c.4/firmware_node/path:\_SB_.PCI0.RP05
/sys/bus/pci/devices/0000:00:1c.4/firmware_node/power_state:D3hot
-- 
Kind regards,
Peter Wu
https://lekensteyn.nl
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau

  parent reply	other threads:[~2016-10-27  9:06 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-98398-8800@http.bugs.freedesktop.org/>
     [not found] ` <bug-98398-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
2016-10-22 21:55   ` [Bug 98398] Vgaswitcharoo fails to turn off GPU properly bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2016-10-22 22:17   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2016-10-22 22:18   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2016-10-22 23:16   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2016-10-22 23:24   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2016-10-23 14:17   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2016-10-24 10:09   ` [Bug 98398] Acer Aspire V7-582PG (Haswell, GTX 750M) fails to power off GPU with runtime PM bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2016-10-24 13:21   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2016-10-26 19:35   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2016-10-26 22:42   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2016-10-26 22:56     ` Acer Aspire V7-582PG (Haswell, GTX 750M) fails to power off GPU via Power Resources Peter Wu
2016-10-27  8:17       ` Mika Westerberg
     [not found]         ` <20161027081748.GX1476-3PARRvDOhMZrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2016-10-27  9:06           ` Peter Wu [this message]
2016-10-27  9:15             ` Rick Kerkhof
     [not found]               ` <CANni8hdMs4pL0m6FrgeyJjE2R2C=6PaHbVbMVoUU+NszJuf9OA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-10-27  9:30                 ` Mika Westerberg
     [not found]                   ` <20161027093011.GZ1476-3PARRvDOhMZrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2016-10-27  9:35                     ` Peter Wu
2016-10-27  9:42                     ` Rick Kerkhof
     [not found]                       ` <CANni8her35iORgrZOkDzxhfVaOOzObTLG2Ly0kkNZPDTrbyfQQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-10-27  9:55                         ` Mika Westerberg
     [not found]                           ` <20161027095508.GA1476-3PARRvDOhMZrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2016-10-27 10:07                             ` Rick Kerkhof
     [not found]                               ` <CANni8hfSnT46pH8EnA1f00SWXUrJ=8PHRjydricGbH4AS4mR7A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-10-27 10:12                                 ` Mika Westerberg
     [not found]                                   ` <20161027101204.GB1476-3PARRvDOhMZrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2016-10-27 10:34                                     ` Rick Kerkhof
2016-10-27 16:06                           ` Peter Wu
2016-10-28  8:56                             ` Mika Westerberg
2016-10-28 11:09                               ` Peter Wu
2016-10-28 11:19                                 ` Mika Westerberg
2016-10-28 12:30                                   ` Peter Wu
2016-10-28 14:10                                     ` Mika Westerberg
2016-10-29  0:49                                       ` Zheng, Lv
2016-10-29  0:42                               ` Zheng, Lv
2016-10-30 11:08                                 ` Peter Wu
2016-10-28 23:23   ` [Bug 98398] Acer Aspire V7-582PG (Haswell, GTX 750M) fails to power off GPU with runtime PM bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2016-11-12 23:01   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2016-11-12 23:07   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2016-11-15 21:30   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2016-11-24  0:24   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2019-12-04  9:18   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161027090604.GB27017@al \
    --to=peter-vtkqydcbqhk7dlmcbjsq7g@public.gmane.org \
    --cc=linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-pci-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
    --cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=rick.2889-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox