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, 2012-05-02 at 13:42 -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?
> 

Note, all devices already had auto except for 1-1.1. So I started with
that:


# echo auto > /sys/bus/usb/devices/1-1.1/power/control
# cat /sys/bus/usb/devices/*/power/runtime_status
suspended
suspended
suspended
suspended
suspended
suspended
suspended
suspended
suspended
suspended
suspended
suspended
suspended
suspended
suspended
suspended
suspended
suspended

# lspci -v (only USB controllers)

00:1a.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #2 (rev 05) (prog-if 20 [EHCI])
        Subsystem: ASUSTeK Computer Inc. Device 1157
        Flags: bus master, medium devsel, latency 0, IRQ 16
        Memory at dfc08000 (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 Cougar Point USB Enhanced Host Controller #1 (rev 05) (prog-if 20 [EHCI])
        Subsystem: ASUSTeK Computer Inc. Device 1157
        Flags: bus master, medium devsel, latency 0, IRQ 23
        Memory at dfc07000 (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

03:00.0 USB Controller: Device 1b21:1042 (prog-if 30)
        Subsystem: ASUSTeK Computer Inc. Device 1059
        Flags: bus master, fast devsel, latency 0, IRQ 19
        Memory at dde00000 (64-bit, non-prefetchable) [size=32K]
        Capabilities: [50] MSI: Enable- Count=1/8 Maskable- 64bit+
        Capabilities: [68] MSI-X: Enable+ Count=8 Masked-
        Capabilities: [78] Power Management version 3
        Capabilities: [80] Express Legacy Endpoint, MSI 00
        Capabilities: [100] Virtual Channel
        Kernel driver in use: xhci_hcd

After plugging in a USB drive:

dmesg:
[186874.578867] ehci_hcd 0000:00:1d.0: port 1 remote wakeup
[186874.578893] usb usb2: usb wakeup-resume
[186874.578905] usb usb2: usb auto-resume
[186874.578912] ehci_hcd 0000:00:1d.0: resume root hub
[186874.604860] hub 2-0:1.0: hub_resume
[186874.604912] ehci_hcd 0000:00:1d.0: GetStatus port:1 status 001005 0  ACK POWER sig=se0 PE CONNECT
[186874.604926] hub 2-0:1.0: port 1: status 0503 change 0004
[186874.605010] hub 2-0:1.0: state 7 ports 2 chg 0002 evt 0000
[186874.605037] ehci_hcd 0000:00:1d.0: GetStatus port:1 status 001005 0  ACK POWER sig=se0 PE CONNECT
[186874.620866] usb 2-1: usb wakeup-resume
[186874.620891] usb 2-1: finish resume
[186874.621160] hub 2-1:1.0: hub_resume
[186874.621413] hub 2-1:1.0: port 2: status 0101 change 0001
[186874.724714] ehci_hcd 0000:00:1d.0: reused qh ffff88022e0ee240 schedule
[186874.724727] usb 2-1: link qh256-0001/ffff88022e0ee240 start 2 [1/0 us]
[186874.724746] hub 2-0:1.0: resume on port 1, status 0
[186874.724752] hub 2-0:1.0: port 1, status 0503, change 0004, 480 Mb/s
[186874.724762] hub 2-1:1.0: state 7 ports 6 chg 0004 evt 0000
[186874.724940] hub 2-1:1.0: port 2, status 0101, change 0000, 12 Mb/s
[186874.796710] usb 2-1.2: new high-speed USB device number 8 using ehci_hcd
[186874.889692] usb 2-1.2: default language 0x0409
[186874.891936] usb 2-1.2: udev 8, busnum 2, minor = 135
[186874.891946] usb 2-1.2: New USB device found, idVendor=0930, idProduct=6545
[186874.893607] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[186874.895195] usb 2-1.2: Product: USB Flash Memory
[186874.896772] usb 2-1.2: Manufacturer:         
[186874.898317] usb 2-1.2: SerialNumber: 001D92AD6BA9B940932B0008
[186874.900147] usb 2-1.2: usb_probe_device
[186874.900155] usb 2-1.2: configuration #1 chosen from 1 choice
[186874.900244] usb 2-1.2: adding 2-1.2:1.0 (config #1, interface 0)
[186874.900316] uas 2-1.2:1.0: usb_probe_interface
[186874.900322] uas 2-1.2:1.0: usb_probe_interface - got id
[186874.900403] usb-storage 2-1.2:1.0: usb_probe_interface
[186874.900422] usb-storage 2-1.2:1.0: usb_probe_interface - got id
[186874.900602] scsi11 : usb-storage 2-1.2:1.0
[186874.902569] /home/rostedt/work/git/nobackup/linux-build.git/drivers/usb/core/inode.c: creating file '008'
[186874.902624] hub 2-1:1.0: state 7 ports 6 chg 0000 evt 0004
[186875.925096] scsi 11:0:0:0: Direct-Access              USB Flash Memory PMAP PQ: 0 ANSI: 0 CCS
[186875.928294] sd 11:0:0:0: Attached scsi generic sg2 type 0
[186876.322831] sd 11:0:0:0: [sdb] 7827456 512-byte logical blocks: (4.00 GB/3.73 GiB)
[186876.325119] sd 11:0:0:0: [sdb] Write Protect is off
[186876.326771] sd 11:0:0:0: [sdb] Mode Sense: 23 00 00 00
[186876.327491] sd 11:0:0:0: [sdb] No Caching mode page present
[186876.329080] sd 11:0:0:0: [sdb] Assuming drive cache: write through
[186876.335540] sd 11:0:0:0: [sdb] No Caching mode page present
[186876.337135] sd 11:0:0:0: [sdb] Assuming drive cache: write through
[186876.358591]  sdb: sdb1
[186876.361760] sd 11:0:0:0: [sdb] No Caching mode page present
[186876.362353] sd 11:0:0:0: [sdb] Assuming drive cache: write through
[186876.363152] sd 11:0:0:0: [sdb] Attached SCSI removable disk

# cat /sys/bus/usb/devices/*/power/runtime_status
suspended
suspended
suspended
suspended
suspended
suspended
suspended
suspended
suspended
suspended
suspended
active
active
active
suspended
suspended
suspended
active
suspended
suspended

-- Steve


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

  Powered by Linux