On Thu, 15 Sep 2016, c400 wrote:

> >Obviously you're not reading my email messages.  I told you quite
> >clearly:
> >
> >        After unloading the xhci-pci and xhci-hcd modules:
> >
> >        sudo modprobe xhci_hcd quirks=0x00800090
> >        sudo modprobe xhci_pci
> ===============================================
> this part of commands from your message were done right as you`ve sent
> i thought you`ve seen the result in DMESG (i`ve sent it twice)
> i even tried rmmod previously
> USB does not work either

Sorry.  From what you wrote, it sounded like you had not tried doing 
this.

Okay, here's the relevant part of your log.  This shows when the 
driver first failed, then it shows the driver being unloaded and 
reloaded with the quirk added:

> [   49.596314] xhci_hcd 0000:02:00.0: Command timeout
> [   49.596321] xhci_hcd 0000:02:00.0: Abort command ring
> [   61.128571] xhci_hcd 0000:02:00.0: Stopped the command ring failed, maybe 
> the host is dead
> [   61.128575] xhci_hcd 0000:02:00.0: // Halt the HC
> [   61.151685] xhci_hcd 0000:02:00.0: Host not halted after 16000 
> microseconds.
> [   61.151695] xhci_hcd 0000:02:00.0: Abort command ring failed
> [   61.151698] xhci_hcd 0000:02:00.0: HC died; cleaning up
> [   61.151702] xhci_hcd 0000:02:00.0: xHCI host controller is dead.
> [   61.151722] xhci_hcd 0000:02:00.0: Timeout while waiting for setup device 
> command
> [   61.354478] xhci_hcd 0000:02:00.0: Endpoint 0x0 ep reset callback called
> [   61.370472] xhci_hcd 0000:02:00.0: Ep 0x0: URB ffff881035fefc00 submitted 
> for non-responsive xHCI host.
> [   61.370476] xhci_hcd 0000:02:00.0: Ep 0x0: URB ffff881035fefc00 submitted 
> for non-responsive xHCI host.
> [   61.370478] xhci_hcd 0000:02:00.0: Ep 0x0: URB ffff881035fefc00 submitted 
> for non-responsive xHCI host.
> [   61.370480] usb 2-1: device descriptor read/8, error -108
> [   61.490469] xhci_hcd 0000:02:00.0: Ep 0x0: URB ffff881035fefc00 submitted 
> for non-responsive xHCI host.
> [   61.490472] xhci_hcd 0000:02:00.0: Ep 0x0: URB ffff881035fefc00 submitted 
> for non-responsive xHCI host.
> [   61.490474] xhci_hcd 0000:02:00.0: Ep 0x0: URB ffff881035fefc00 submitted 
> for non-responsive xHCI host.
> [   61.490476] usb 2-1: device descriptor read/8, error -108
> [   61.594469] xhci_hcd 0000:02:00.0: Endpoint 0x0 ep reset callback called
> [   61.594475] xhci_hcd 0000:02:00.0: xHCI dying or halted, can't 
> queue_command
> [   61.594477] xhci_hcd 0000:02:00.0: FIXME: allocate a command ring segment
> [   61.594478] usb usb2-port1: couldn't allocate usb_device
> [   70.980103] random: nonblocking pool is initialized
> [   74.719104] bus: 'pci': remove driver xhci_hcd
> [   74.719111] xhci_hcd 0000:02:00.0: remove, state 4
> [   74.719116] usb usb3: USB disconnect, device number 1
> [   74.719118] device: 'ep_81': device_unregister
> [   74.719129] PM: Removing info for No Bus:ep_81
> [   74.719143] bus: 'usb': remove device 3-0:1.0
> [   74.719148] device: 'usb3-port4': device_unregister
> [   74.719155] PM: Removing info for No Bus:usb3-port4
> [   74.719157] device: 'usb3-port3': device_unregister
> [   74.719163] PM: Removing info for No Bus:usb3-port3
> [   74.719165] device: 'usb3-port2': device_unregister
> [   74.719170] PM: Removing info for No Bus:usb3-port2
> [   74.719175] device: 'usb3-port1': device_unregister
> [   74.719185] PM: Removing info for No Bus:usb3-port1
> [   74.719188] PM: Removing info for usb:3-0:1.0
> [   74.719204] xHCI xhci_drop_endpoint called for root hub
> [   74.719206] xHCI xhci_check_bandwidth called for root hub
> [   74.719208] device: 'ep_00': device_unregister
> [   74.719217] PM: Removing info for No Bus:ep_00
> [   74.719297] bus: 'usb': remove device usb3
> [   74.719303] PM: Removing info for usb:usb3
> [   74.719316] xhci_hcd 0000:02:00.0: // Halt the HC
> [   74.742402] xhci_hcd 0000:02:00.0: Host not halted after 16000 
> microseconds.
> [   74.742405] xhci_hcd 0000:02:00.0: Host controller not halted, aborting 
> reset.
> [   74.742414] xhci_hcd 0000:02:00.0: USB bus 3 deregistered
> [   74.742426] device: 'usbmon3': device_unregister
> [   74.742519] PM: Removing info for No Bus:usbmon3
> [   74.742531] device: 'usbmon3': device_create_release
> [   74.742539] xhci_hcd 0000:02:00.0: remove, state 1
> [   74.742544] usb usb2: USB disconnect, device number 1
> [   74.742546] device: 'ep_81': device_unregister
> [   74.742559] PM: Removing info for No Bus:ep_81
> [   74.742574] bus: 'usb': remove device 2-0:1.0
> [   74.742579] device: 'usb2-port1': device_unregister
> [   74.742588] PM: Removing info for No Bus:usb2-port1
> [   74.742593] PM: Removing info for usb:2-0:1.0
> [   74.742616] xHCI xhci_drop_endpoint called for root hub
> [   74.742618] xHCI xhci_check_bandwidth called for root hub
> [   74.742620] device: 'ep_00': device_unregister
> [   74.742631] PM: Removing info for No Bus:ep_00
> [   74.742716] bus: 'usb': remove device usb2
> [   74.742721] PM: Removing info for usb:usb2
> [   74.742757] xhci_hcd 0000:02:00.0: // Disabling event ring interrupts
> [   74.742760] xhci_hcd 0000:02:00.0: cleaning up memory
> [   74.742763] xhci_hcd 0000:02:00.0: Freed ERST
> [   74.742765] xhci_hcd 0000:02:00.0: Freed event ring
> [   74.742768] xhci_hcd 0000:02:00.0: Freed command ring
> [   74.742773] xhci_hcd 0000:02:00.0: Freed segment pool
> [   74.742775] xhci_hcd 0000:02:00.0: Freed device context pool
> [   74.742777] xhci_hcd 0000:02:00.0: Freed small stream array pool
> [   74.742778] xhci_hcd 0000:02:00.0: Freed medium stream array pool
> [   74.742799] xhci_hcd 0000:02:00.0: xhci_stop completed - status = 0
> [   74.742800] xhci_hcd 0000:02:00.0: USB bus 2 deregistered
> [   74.742813] device: 'usbmon2': device_unregister
> [   74.742839] PM: Removing info for No Bus:usbmon2
> [   74.742859] device: 'usbmon2': device_create_release
> [   74.742941] driver: 'xhci_hcd': driver_release
> [   90.143177] bus: 'pci': add driver xhci_hcd
> [   90.143188] bus: 'pci': driver_probe_device: matched device 0000:02:00.0 
> with driver xhci_hcd
> [   90.143190] bus: 'pci': really_probe: probing driver xhci_hcd with device 
> 0000:02:00.0
> [   90.143194] devices_kset: Moving 0000:02:00.0 to end of list
> [   90.143286] xhci_hcd 0000:02:00.0: xHCI Host Controller
> [   90.143301] device: 'usbmon2': device_add
> [   90.143315] PM: Adding info for No Bus:usbmon2
> [   90.143380] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus 
> number 2
> [   90.143390] xhci_hcd 0000:02:00.0: xHCI capability registers at 
> ffffc900042a4000:
> [   90.143392] xhci_hcd 0000:02:00.0: CAPLENGTH AND HCIVERSION 0x1000020:
> [   90.143395] xhci_hcd 0000:02:00.0: CAPLENGTH: 0x20
> [   90.143397] xhci_hcd 0000:02:00.0: HCIVERSION: 0x100
> [   90.143399] xhci_hcd 0000:02:00.0: HCSPARAMS 1: 0x5000420
> [   90.143401] xhci_hcd 0000:02:00.0:   Max device slots: 32
> [   90.143403] xhci_hcd 0000:02:00.0:   Max interrupters: 4
> [   90.143405] xhci_hcd 0000:02:00.0:   Max ports: 5
> [   90.143407] xhci_hcd 0000:02:00.0: HCSPARAMS 2: 0xfc000031
> [   90.143409] xhci_hcd 0000:02:00.0:   Isoc scheduling threshold: 1
> [   90.143411] xhci_hcd 0000:02:00.0:   Maximum allowed segments in event 
> ring: 3
> [   90.143414] xhci_hcd 0000:02:00.0: HCSPARAMS 3 0xe70004:
> [   90.143415] xhci_hcd 0000:02:00.0:   Worst case U1 device exit latency: 4
> [   90.143428] xhci_hcd 0000:02:00.0:   Worst case U2 device exit latency: 231
> [   90.143430] xhci_hcd 0000:02:00.0: HCC PARAMS 0x2841eb:
> [   90.143432] xhci_hcd 0000:02:00.0:   HC generates 64 bit addresses
> [   90.143434] xhci_hcd 0000:02:00.0:   HC hasn't Contiguous Frame ID 
> Capability
> [   90.143436] xhci_hcd 0000:02:00.0:   HC can't generate Stopped - Short 
> Package event
> [   90.143438] xhci_hcd 0000:02:00.0:   FIXME: more HCCPARAMS debugging
> [   90.143440] xhci_hcd 0000:02:00.0: RTSOFF 0x200:
> [   90.143443] xhci_hcd 0000:02:00.0: HCC PARAMS2 0x0:
> [   90.143445] xhci_hcd 0000:02:00.0:   HC doesn't support Force save context 
> capability
> [   90.143447] xhci_hcd 0000:02:00.0:   HC doesn't support Large ESIT Payload 
> Capability
> [   90.143449] xhci_hcd 0000:02:00.0:   HC doesn't support Extended TBC 
> capability
> [   90.143451] xhci_hcd 0000:02:00.0: xHCI operational registers at 
> ffffc900042a4020:
> [   90.143453] xhci_hcd 0000:02:00.0: USBCMD 0x0:
> [   90.143455] xhci_hcd 0000:02:00.0:   HC is being stopped
> [   90.143457] xhci_hcd 0000:02:00.0:   HC has finished hard reset
> [   90.143459] xhci_hcd 0000:02:00.0:   Event Interrupts disabled
> [   90.143461] xhci_hcd 0000:02:00.0:   Host System Error Interrupts disabled
> [   90.143463] xhci_hcd 0000:02:00.0:   HC has finished light reset
> [   90.143466] xhci_hcd 0000:02:00.0: USBSTS 0x1000:
> [   90.143468] xhci_hcd 0000:02:00.0:   Event ring is empty
> [   90.143470] xhci_hcd 0000:02:00.0:   No Host System Error
> [   90.143472] xhci_hcd 0000:02:00.0:   HC is running
> [   90.143475] xhci_hcd 0000:02:00.0: ffffc900042a4420 port status reg = 
> 0x40000e03
> [   90.143478] xhci_hcd 0000:02:00.0: ffffc900042a4424 port power reg = 0x0
> [   90.143480] xhci_hcd 0000:02:00.0: ffffc900042a4428 port link reg = 0x0
> [   90.143483] xhci_hcd 0000:02:00.0: ffffc900042a442c port reserved reg = 0x0
> [   90.143485] xhci_hcd 0000:02:00.0: ffffc900042a4430 port status reg = 
> 0xa0002a0
> [   90.143488] xhci_hcd 0000:02:00.0: ffffc900042a4434 port power reg = 0x0
> [   90.143490] xhci_hcd 0000:02:00.0: ffffc900042a4438 port link reg = 0x0
> [   90.143493] xhci_hcd 0000:02:00.0: ffffc900042a443c port reserved reg = 0x0
> [   90.143495] xhci_hcd 0000:02:00.0: ffffc900042a4440 port status reg = 
> 0xa0002a0
> [   90.143498] xhci_hcd 0000:02:00.0: ffffc900042a4444 port power reg = 0x0
> [   90.143500] xhci_hcd 0000:02:00.0: ffffc900042a4448 port link reg = 0x0
> [   90.143503] xhci_hcd 0000:02:00.0: ffffc900042a444c port reserved reg = 0x0
> [   90.143505] xhci_hcd 0000:02:00.0: ffffc900042a4450 port status reg = 
> 0xa0002a0
> [   90.143507] xhci_hcd 0000:02:00.0: ffffc900042a4454 port power reg = 0x0
> [   90.143510] xhci_hcd 0000:02:00.0: ffffc900042a4458 port link reg = 0x0
> [   90.143512] xhci_hcd 0000:02:00.0: ffffc900042a445c port reserved reg = 0x0
> [   90.143515] xhci_hcd 0000:02:00.0: ffffc900042a4460 port status reg = 
> 0xa0002a0
> [   90.143517] xhci_hcd 0000:02:00.0: ffffc900042a4464 port power reg = 0x0
> [   90.143520] xhci_hcd 0000:02:00.0: ffffc900042a4468 port link reg = 0x0
> [   90.143522] xhci_hcd 0000:02:00.0: ffffc900042a446c port reserved reg = 0x0
> [   90.143525] xhci_hcd 0000:02:00.0: QUIRK: Resetting on resume
> [   90.143527] xhci_hcd 0000:02:00.0: // Halt the HC
> [   90.166739] xhci_hcd 0000:02:00.0: Host not halted after 16000 
> microseconds.
> [   90.166741] xhci_hcd 0000:02:00.0: can't setup: -110
> [   90.166744] xhci_hcd 0000:02:00.0: USB bus 2 deregistered
> [   90.166754] device: 'usbmon2': device_unregister
> [   90.166798] PM: Removing info for No Bus:usbmon2
> [   90.166806] device: 'usbmon2': device_create_release
> [   90.166849] xhci_hcd 0000:02:00.0: init 0000:02:00.0 fail, -110
> [   90.166851] xhci_hcd: probe of 0000:02:00.0 failed with error -110

It looks like the controller was left in a bad state after the first 
error, and resetting it (when the driver was reloaded) didn't help.  It 
failed before the quirk could make any difference.

Maybe you can put the quirk in /etc/modprobe.d so it will be used 
automatically.  Add a line to /etc/modprobe.d/local.conf saying:

options xhci_hcd quirks=0x00800090

and see if that makes any difference.  If it doesn't, Mathias will have 
to suggest something else for you to try.

Alan Stern

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

Reply via email to