Re: [linux-pm] ehci_hcd related S3 lockup on ASUS laptops, again

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 02, 2012 at 03:41:55PM -0400, Alan Stern wrote:
> On Thu, 3 May 2012, Andrey Rahmatullin wrote:
> 
> > On Wed, May 02, 2012 at 01:42:08PM -0400, Alan Stern wrote:
> > > Hmmm.  What about runtime suspend?
> > > 
> > > Still using the new patch without my patch, if you write "auto" to the
> > > power/control file under the two controller sysfs directories, at least
> > > one of them should go into suspend.  You can check this by seeing what
> > > the corresponding power/runtime_status file says (there might be
> > > something in the dmesg log too).  When this happens, what does "lspci
> > > -v" show for the controller's state?
> > root@sabine:~# echo auto> /sys/bus/pci/devices/0000\:00\:1d.0/power/control
> > root@sabine:~# echo auto> /sys/bus/pci/devices/0000\:00\:1a.0/power/control
> > root@sabine:~# cat /sys/bus/pci/devices/0000\:00\:1d.0/power/runtime_status
> > suspended
> > root@sabine:~# cat /sys/bus/pci/devices/0000\:00\:1a.0/power/runtime_status
> > suspended
> > root@sabine:~# lspci -v
> > 00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05) (prog-if 20 [EHCI])
> >         Subsystem: ASUSTeK Computer Inc. Device 1147
> >         Flags: medium devsel, IRQ 16
> >         Memory at dfe08000 (32-bit, non-prefetchable) [size=1K]
> >         Capabilities: [50] Power Management version 2
> >         Capabilities: [58] Debug port: BAR=1 offset=00a0
> >         Capabilities: [98] PCI Advanced Features
> >         Kernel driver in use: ehci_hcd
> > 00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05) (prog-if 20 [EHCI])
> >         Subsystem: ASUSTeK Computer Inc. Device 1147
> >         Flags: medium devsel, IRQ 23
> >         Memory at dfe07000 (32-bit, non-prefetchable) [size=1K]
> >         Capabilities: [50] Power Management version 2
> >         Capabilities: [58] Debug port: BAR=1 offset=00a0
> >         Capabilities: [98] PCI Advanced Features
> >         Kernel driver in use: ehci_hcd
> 
> Argh.  You need to use "lspci -vv" to see the details of the Power 
> Management capability.  I forgot about that.
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05) (prog-if 20 [EHCI])
        Subsystem: ASUSTeK Computer Inc. Device 1147
        Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at dfe08000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D3 NoSoftRst- PME-Enable+ DSel=0 DScale=0 PME-
        Capabilities: [58] Debug port: BAR=1 offset=00a0
        Capabilities: [98] PCI Advanced Features
                AFCap: TP+ FLR+
                AFCtrl: FLR-
                AFStatus: TP-
        Kernel driver in use: ehci_hcd
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05) (prog-if 20 [EHCI])
        Subsystem: ASUSTeK Computer Inc. Device 1147
        Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin A routed to IRQ 23
        Region 0: Memory at dfe07000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D3 NoSoftRst- PME-Enable+ DSel=0 DScale=0 PME-
        Capabilities: [58] Debug port: BAR=1 offset=00a0
        Capabilities: [98] PCI Advanced Features
                AFCap: TP+ FLR+
                AFCtrl: FLR-
                AFStatus: TP-
        Kernel driver in use: ehci_hcd

> After you do this, does the runtime_status change back to "active" when 
> you plug in a USB device?
Yes. And it's Status: in lspci changes to D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-

-- 
WBR, wRAR

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux