Re: failure of virtual USB2.0 after multiple S4

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

 



Am Montag, 12. März 2012, 17:22:40 schrieb Sarah Sharp:
> On Fri, Mar 09, 2012 at 04:55:25PM +0100, Oliver Neukum wrote:

Hi,

> > I suffer from an S4 problem with XHCI of PantherPoint with rc6. Coming up
> > from S4 I get  errors:
> > 
> > [  250.912198] xhci_hcd 0000:00:14.0: setting latency timer to 64
> > [  250.912210] usb usb3: root hub lost power or was reset
> > [  250.912212] usb usb4: root hub lost power or was reset
> > [  250.912256] xhci_hcd 0000:00:14.0: Slot 1 endpoint 2 not removed from BW list!
> 
> Was a USB device connected during this test?

No device was connected to XHCI.

[..]
> > [  776.590269] xhci_hcd 0000:00:14.0: Not enough host resources, active endpoint contexts = 64
> > [  776.590279] usb 3-1: Cannot reset HCD device state
> > [  776.702116] xhci_hcd 0000:00:14.0: Not enough host resources, active endpoint contexts = 64
> > [  776.702124] usb 3-1: Cannot reset HCD device state
> > [  776.706130] firewire_core: rediscovered device fw0
> > [  776.814234] xhci_hcd 0000:00:14.0: Not enough host resources, active endpoint contexts = 64
> > [  776.814247] usb 3-1: Cannot reset HCD device state
> > [  776.926044] usb 1-1: reset high-speed USB device number 2 using ehci_hcd
> > [  777.169967] usb 2-1: reset high-speed USB device number 2 using ehci_hcd
> > [  777.374072] usb 1-1.4: reset high-speed USB device number 3 using ehci_hcd
> > [  777.582005] usb 2-1.6: reset full-speed USB device number 3 using ehci_hcd
> > [  777.675493] PM: restore of devices complete after 1552.460 msecs
> > [  777.686056] Restarting kernel threads ... done.
> > [  777.687896] Restarting tasks ... done.
> > [  777.701776] usb 3-1: USB disconnect, device number 2
> > [  777.701847] xHCI xhci_drop_endpoint called with unaddressed device
> > [  777.701850] xHCI xhci_check_bandwidth called with unaddressed device
> > [  777.702383] xHCI xhci_free_dev called with unaddressed device
> > [  777.702424] xhci_hcd 0000:00:14.0: Not enough host resources, active endpoint contexts = 64
> > [  777.702442] hub 3-0:1.0: couldn't allocate port 1 usb_device
> > [  777.759709] PM: Basic memory bitmaps freed
> > [  777.759717] video LNXVIDEO:01: Restoring backlight state
> > 
> > I see the same thing in 3.0
> > It is interesting that S3 is not affected. It looks like the bandwidth change
> > when going down to S4 is not accounted for.
> > Do you have any ideas?
> 
> It may be in how the host controller is being shutdown during hibernate.
> Or maybe the issue is with the xHCI restore state failing on resume, and
> having to assume that the xHCI roothub lost power.  Maybe in that case,
> the USB core is not tearing down the previously connected USB devices?

The root hubs should be treated like hubs. So they go into reset_resume.

> Actually, it seems like it should be the xHCI driver's job to tear down
> the bandwidth tables, so the bug is probably in the xHCI driver's resume
> error path.

I am afraid so.
 
> Thanks for finding this bug.  I assume you had to hibernate 64 times to
> see the host run out of active endpoint contexts?

32 times. We have two virtual root hubs. Yes, this bug takes the better part
of an hour to reproduce.

	Regards
		Oliver
--
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