Bug#584830: linux-image-2.6.32-5-amd64: USB 3.0 / xhci prevents suspend
On Mon, Jun 07, 2010 at 02:18:26AM +0100, Ben Hutchings wrote: On Mon, 2010-06-07 at 00:33 +0200, Thomas Jollans wrote: Package: linux-2.6 Version: 2.6.32-15 Severity: normal My motherboard includes a USB 3.0 controller, handled by the xhci module. When the xhci module is loaded, the system fails to suspend with the following log messages: [ 458.601622] pm_op(): usb_dev_suspend+0x0/0xa [usbcore] returns -2 [ 458.601624] PM: Device usb2 failed to suspend: error -2 When I unload the xhci module, the system suspends just fine, without this message. Sarah, any idea what's going on here? Debian version 2.6.32-15 is closely based on stable version 2.6.32.14. I didn't see any later changes to xhci that look related to PM. The report is expected behavior, since the xHCI driver doesn't implement PCI and USB bus power management yet. The xHCI power management code is still under development. I'm not sure if this code will be added to 2.6.32 stable, since it will add a lot of code to the driver. The code may need to be backported. Can you add this bug (or a link to the debian bug) to the kernel.org bugzilla? I'm trying to get all my xHCI-related bug reports and feature requests there. Sarah Sharp -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100607162007.gb8...@xanatos
Bug#584830: linux-image-2.6.32-5-amd64: USB 3.0 / xhci prevents suspend
On Mon, Jun 07, 2010 at 09:20:07AM -0700, Sarah Sharp wrote: On Mon, Jun 07, 2010 at 02:18:26AM +0100, Ben Hutchings wrote: On Mon, 2010-06-07 at 00:33 +0200, Thomas Jollans wrote: Package: linux-2.6 Version: 2.6.32-15 Severity: normal My motherboard includes a USB 3.0 controller, handled by the xhci module. When the xhci module is loaded, the system fails to suspend with the following log messages: [ 458.601622] pm_op(): usb_dev_suspend+0x0/0xa [usbcore] returns -2 [ 458.601624] PM: Device usb2 failed to suspend: error -2 When I unload the xhci module, the system suspends just fine, without this message. Sarah, any idea what's going on here? Debian version 2.6.32-15 is closely based on stable version 2.6.32.14. I didn't see any later changes to xhci that look related to PM. The report is expected behavior, since the xHCI driver doesn't implement PCI and USB bus power management yet. That seems like a big problem if the xhci driver is going to be auto-loaded in desktops and laptops. The xHCI power management code is still under development. I'm not sure if this code will be added to 2.6.32 stable, since it will add a lot of code to the driver. The code may need to be backported. I doubt it is a candidate for 2.6.32 stable, but I think we would want to include it in Debian's kernel packages based on 2.6.32. Can you add this bug (or a link to the debian bug) to the kernel.org bugzilla? I'm trying to get all my xHCI-related bug reports and feature requests there. Will do. Ben. -- Ben Hutchings We get into the habit of living before acquiring the habit of thinking. - Albert Camus -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100607165501.gn5...@decadent.org.uk
Bug#584830: linux-image-2.6.32-5-amd64: USB 3.0 / xhci prevents suspend
Package: linux-2.6 Version: 2.6.32-15 Severity: normal My motherboard includes a USB 3.0 controller, handled by the xhci module. When the xhci module is loaded, the system fails to suspend with the following log messages: [ 458.601622] pm_op(): usb_dev_suspend+0x0/0xa [usbcore] returns -2 [ 458.601624] PM: Device usb2 failed to suspend: error -2 When I unload the xhci module, the system suspends just fine, without this message. Relevant `lsusb -v` and dmesg output parts follow: # lsusb -v [ ... ] Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Device Descriptor: bLength18 bDescriptorType 1 bcdUSB 3.00 bDeviceClass9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 3 bMaxPacketSize0 9 idVendor 0x1d6b Linux Foundation idProduct 0x0003 3.0 root hub bcdDevice2.06 iManufacturer 3 Linux 2.6.32-5-amd64 xhci_hcd iProduct2 xHCI Host Controller iSerial 1 :04:00.0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xe0 Self Powered Remote Wakeup MaxPower0mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 Unused bInterfaceProtocol 0 Full speed (or root) hub iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes3 Transfer TypeInterrupt Synch Type None Usage Type Data wMaxPacketSize 0x0004 1x 4 bytes bInterval 12 Hub Descriptor: bLength 9 bDescriptorType 41 nNbrPorts 4 wHubCharacteristic 0x0009 Per-port power switching Per-port overcurrent protection TT think time 8 FS bits bPwrOn2PwrGood 10 * 2 milli seconds bHubContrCurrent 0 milli Ampere DeviceRemovable0x00 PortPwrCtrlMask0xff Hub Port Status: Port 1: .0100 power Port 2: .0100 power Port 3: .0100 power Port 4: .0100 power Device Status: 0x0003 Self Powered Remote Wakeup Enabled # pm-suspend # dmesg [ ... ] [ 457.630373] PM: Syncing filesystems ... done. [ 457.744997] PM: Preparing system for mem sleep [ 457.747218] Freezing user space processes ... (elapsed 0.00 seconds) done. [ 457.747607] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done. [ 457.747642] PM: Entering mem sleep [ 457.747653] Suspending console(s) (use no_console_suspend to debug) [ 457.812103] sd 3:0:0:0: [sdb] Synchronizing SCSI cache [ 457.812321] sd 3:0:0:0: [sdb] Stopping disk [ 458.225455] sd 2:0:0:0: [sda] Synchronizing SCSI cache [ 458.240627] sd 2:0:0:0: [sda] Stopping disk [ 458.601622] pm_op(): usb_dev_suspend+0x0/0xa [usbcore] returns -2 [ 458.601624] PM: Device usb2 failed to suspend: error -2 [ 458.601626] PM: Some devices failed to suspend [ 458.822063] sd 2:0:0:0: [sda] Starting disk [ 460.874188] sd 3:0:0:0: [sdb] Starting disk [ 465.811159] PM: Finishing wakeup. [ 465.811160] Restarting tasks ... done. # modprobe -r xhci # pm-suspend -- Suspend then works without a problem. dmesg output is, as one would expect, full of what looks to me like routine device suspend, later resume, log messages. The USB 3.0 controller doesn't appear in the USB device list reportbug added below since the module has been unloaded. It appears in the PCI device list, though, in case that helps. -- Package-specific info: ** Version: Linux version 2.6.32-5-amd64 (Debian 2.6.32-15) (b...@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-1) ) #1 SMP Tue Jun 1 04:34:03 UTC 2010 ** Command line: BOOT_IMAGE=/vmlinuz-2.6.32-5-amd64 root=UUID=d6aacc5e-b385-440f-a972-523ec3e3945d ro quiet ** Tainted: P (1) * Proprietary module has been loaded. ** Kernel log: [ removed, irrelevant. See above for relevant log parts. ] ** Model information sys_vendor: Gigabyte Technology Co., Ltd. product_name: GA-770TA-UD3 product_version: chassis_vendor: Gigabyte Technology Co., Ltd. chassis_version: bios_vendor: Award Software International, Inc. bios_version: F2 board_vendor: Gigabyte Technology Co., Ltd. board_name: GA-770TA-UD3 board_version: x.x ** Loaded modules: Module Size Used by sco 7209 2 ppdev 5030 0 lp 7462 0 bridge 39598 0 stp 1440 1 bridge
Bug#584830: linux-image-2.6.32-5-amd64: USB 3.0 / xhci prevents suspend
On Mon, 2010-06-07 at 00:33 +0200, Thomas Jollans wrote: Package: linux-2.6 Version: 2.6.32-15 Severity: normal My motherboard includes a USB 3.0 controller, handled by the xhci module. When the xhci module is loaded, the system fails to suspend with the following log messages: [ 458.601622] pm_op(): usb_dev_suspend+0x0/0xa [usbcore] returns -2 [ 458.601624] PM: Device usb2 failed to suspend: error -2 When I unload the xhci module, the system suspends just fine, without this message. Sarah, any idea what's going on here? Debian version 2.6.32-15 is closely based on stable version 2.6.32.14. I didn't see any later changes to xhci that look related to PM. Ben. Relevant `lsusb -v` and dmesg output parts follow: # lsusb -v [ ... ] Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Device Descriptor: bLength18 bDescriptorType 1 bcdUSB 3.00 bDeviceClass9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 3 bMaxPacketSize0 9 idVendor 0x1d6b Linux Foundation idProduct 0x0003 3.0 root hub bcdDevice2.06 iManufacturer 3 Linux 2.6.32-5-amd64 xhci_hcd iProduct2 xHCI Host Controller iSerial 1 :04:00.0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xe0 Self Powered Remote Wakeup MaxPower0mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 Unused bInterfaceProtocol 0 Full speed (or root) hub iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes3 Transfer TypeInterrupt Synch Type None Usage Type Data wMaxPacketSize 0x0004 1x 4 bytes bInterval 12 Hub Descriptor: bLength 9 bDescriptorType 41 nNbrPorts 4 wHubCharacteristic 0x0009 Per-port power switching Per-port overcurrent protection TT think time 8 FS bits bPwrOn2PwrGood 10 * 2 milli seconds bHubContrCurrent 0 milli Ampere DeviceRemovable0x00 PortPwrCtrlMask0xff Hub Port Status: Port 1: .0100 power Port 2: .0100 power Port 3: .0100 power Port 4: .0100 power Device Status: 0x0003 Self Powered Remote Wakeup Enabled # pm-suspend # dmesg [ ... ] [ 457.630373] PM: Syncing filesystems ... done. [ 457.744997] PM: Preparing system for mem sleep [ 457.747218] Freezing user space processes ... (elapsed 0.00 seconds) done. [ 457.747607] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done. [ 457.747642] PM: Entering mem sleep [ 457.747653] Suspending console(s) (use no_console_suspend to debug) [ 457.812103] sd 3:0:0:0: [sdb] Synchronizing SCSI cache [ 457.812321] sd 3:0:0:0: [sdb] Stopping disk [ 458.225455] sd 2:0:0:0: [sda] Synchronizing SCSI cache [ 458.240627] sd 2:0:0:0: [sda] Stopping disk [ 458.601622] pm_op(): usb_dev_suspend+0x0/0xa [usbcore] returns -2 [ 458.601624] PM: Device usb2 failed to suspend: error -2 [ 458.601626] PM: Some devices failed to suspend [ 458.822063] sd 2:0:0:0: [sda] Starting disk [ 460.874188] sd 3:0:0:0: [sdb] Starting disk [ 465.811159] PM: Finishing wakeup. [ 465.811160] Restarting tasks ... done. # modprobe -r xhci # pm-suspend -- Suspend then works without a problem. dmesg output is, as one would expect, full of what looks to me like routine device suspend, later resume, log messages. The USB 3.0 controller doesn't appear in the USB device list reportbug added below since the module has been unloaded. It appears in the PCI device list, though, in case that helps. -- Package-specific info: ** Version: Linux version 2.6.32-5-amd64 (Debian 2.6.32-15) (b...@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-1) ) #1 SMP Tue Jun 1 04:34:03 UTC 2010 ** Command line: BOOT_IMAGE=/vmlinuz-2.6.32-5-amd64 root=UUID=d6aacc5e-b385-440f-a972-523ec3e3945d ro quiet ** Tainted: P (1) * Proprietary module has been loaded. ** Kernel log: [ removed, irrelevant. See above for relevant log parts. ] ** Model information sys_vendor: Gigabyte Technology Co., Ltd. product_name: GA-770TA-UD3 product_version: chassis_vendor: Gigabyte Technology Co., Ltd. chassis_version: