Re: medtronic usb productId 0x8001: usbserial support, xhci enumeration

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

 



On Tue, Mar 18, 2014 at 1:10 AM, Johan Hovold <johan@xxxxxxxxxx> wrote:
> On Mon, Mar 17, 2014 at 11:58:57PM -0700, Benjamin West wrote:
>> On Mon, Mar 17, 2014 at 11:40 AM, Johan Hovold <johan@xxxxxxxxxx> wrote:
>> >> issues.  It's included below
>> >> https://gist.github.com/bewest/6488955#file-lsusb
>>
>> > I'm responding to this mail with a patch for you to test. The patch is
>> > also available here:
>> >
>> >         https://git.kernel.org/cgit/linux/kernel/git/johan/usb-serial.git/log/?h=carelink
>> >
>> > as a commit on top of usb-next. It's quite likely that the problem
>> > you've been having has already been fixed (in v3.14-rc) so I suggest
>> > just testing the carelink branch above. Remember to enable the
>> > usb-serial-simple driver.

Just speculating, git log -SNEW_SCHEME yields
48fc7dbd52c0559647291f33a10ccdc6cdbe4c72, it looks similar to the
other interesting patches.

>> Thanks very much for the patch; I tested your branch with my Carelink
>> stick and it works sometimes.
>>
>> Here's an example of it working as expected:
> That's good. Then the patch is correct (and should work for usb 2.0).
> Thanks for testing.
>
>> And I was able to use the created device.
>> However, most of the time, I get this:
>>
>> Mar 17 23:19:38 patient logger: Linux patient
>> 3.14.0-rc6-bewest-test-carelink-01 #5 SMP Mon Mar 17 15:32:48 PDT 2014
>> x86_64 x86_64 x86_64 GNU/Linux
> Just to make sure this isn't a new regression in usb-next you're
> hitting, can you try applying the patch directly to v3.14-rc7?
>
> Thanks,
> Johan
Some mixed results:
I tested your carelink branch many more times.  For some reason, it
started enumerating consistently for awhile, failed once, and then
enumerated consistently until I gave up.

I cherry-picked your e2c7df19e2734f5d54d0d942a57d1018539e02c4
on 3.14-rc7, which applied cleanly.  Your changes work as expected here.

The carelink usb stick did enumerate once or twice, here is a log:
https://gist.github.com/bewest/6488955#file-example-3-14-0-rc7-working-log

I still often get failure to enumerate after inserting the usb stick:
I didn't keep an exact count, but this feels like a more consistent
failure somehow.
Recorded here: https://gist.githubusercontent.com/bewest/6488955/raw/213a79af21735e8822e00d8afa05abd63ffd67ee/syslog.log

Mar 20 00:22:34 patient logger: Linux patient
3.14.0-rc7-bewest-test-3.14-rc7-carelink-01 #6 SMP Wed Mar 19 21:12:24
PDT 2014 x86_64 x86_64 x86_64 GNU/Linux
Mar 20 00:22:40 patient kernel: [  615.054659] usb 3-2: new full-speed
USB device number 41 using xhci_hcd
Mar 20 00:22:45 patient kernel: [  620.167319] xhci_hcd 0000:00:14.0:
Timeout while waiting for setup address command
Mar 20 00:22:50 patient kernel: [  625.372047] xhci_hcd 0000:00:14.0:
Timeout while waiting for setup address command
Mar 20 00:22:50 patient kernel: [  625.576031] usb 3-2: device not
accepting address 41, error -62
Mar 20 00:22:50 patient kernel: [  625.688157] usb 3-2: new full-speed
USB device number 42 using xhci_hcd
Mar 20 00:23:06 patient kernel: [  640.802272] usb 3-2: device
descriptor read/64, error -110
Mar 20 00:23:06 patient kernel: [  640.906255] xhci_hcd 0000:00:14.0:
Setup ERROR: setup context command for slot 11.
Mar 20 00:23:06 patient kernel: [  641.018244] usb 3-2: new full-speed
USB device number 43 using xhci_hcd
Mar 20 00:23:11 patient kernel: [  646.018888] xhci_hcd 0000:00:14.0:
Timeout while waiting for setup address command
Mar 20 00:23:16 patient kernel: [  651.223619] xhci_hcd 0000:00:14.0:
Timeout while waiting for setup address command
Mar 20 00:23:16 patient kernel: [  651.427649] usb 3-2: device not
accepting address 43, error -62
Mar 20 00:23:16 patient kernel: [  651.539702] usb 3-2: new full-speed
USB device number 44 using xhci_hcd
Mar 20 00:23:21 patient kernel: [  656.540344] xhci_hcd 0000:00:14.0:
Timeout while waiting for setup address command
Mar 20 00:23:27 patient kernel: [  661.745070] xhci_hcd 0000:00:14.0:
Timeout while waiting for setup address command
Mar 20 00:23:27 patient kernel: [  661.949103] usb 3-2: device not
accepting address 44, error -62
Mar 20 00:23:27 patient kernel: [  661.949163] hub 3-0:1.0: unable to
enumerate USB device on port 2
Mar 20 00:24:06 patient whoopsie[1220]: online

Something else interesting happened as well.
At some point, I got the following messages in the logs.  After
receiving these messages, I tried several different usb devices, but
they all fail to enumerate after this.

Sarah's branch seemed to enumerate consistently, but hard to quantify;
I'll bang on it a bit more, and try to keep track of error vs success
rates.

-bewest

P. S. I wasn't doing my usual log capture routine, but I believe I saw
these messages, after which no log messages appear, even when
inserting/removing other usb devices.
https://gist.github.com/bewest/6488955#file-broken-usb-stack-log

Linux patient 3.14.0-rc7-bewest-test-3.14-rc7-carelink-01 #6 SMP Wed
Mar 19 21:12:24 PDT 2014 x86_64 x86_64 x86_64 GNU/Linux
Mar 20 08:03:16 patient whoopsie[1220]: online
Mar 20 08:04:37  whoopsie[1220]: last message repeated 2 times
Mar 20 08:05:37  whoopsie[1220]: last message repeated 3 times
Mar 20 08:05:40 patient kernel: [28385.152074] xhci_hcd 0000:00:14.0:
Timeout while waiting for a slot
Mar 20 08:05:40 patient kernel: [28385.152081] hub 3-0:1.0: couldn't
allocate port 2 usb_device
Mar 20 08:06:24 patient NetworkManager[867]: <warn> nl_recvmsgs()
error: (-33) Dump inconsistency detected, interrupted
Mar 20 08:06:37 patient whoopsie[1220]: online
Mar 20 08:07:37  whoopsie[1220]: last message repeated 2 times
Mar 20 08:08:37  whoopsie[1220]: last message repeated 3 times
Mar 20 08:09:56 patient whoopsie[1220]: online
Mar 20 08:11:08  whoopsie[1220]: last message repeated 2 times
Mar 20 08:12:08  whoopsie[1220]: last message repeated 3 times
Mar 20 08:13:16 patient whoopsie[1220]: online
Mar 20 08:13:17 patient whoopsie[1220]: online
Mar 20 08:13:21 patient bluetoothd[781]: Adapter /org/bluez/781/hci0
has been disabled
Mar 20 08:13:21 patient bluetoothd[781]: Unregister path: /org/bluez/781/hci0
Mar 20 08:13:21 patient bluetoothd[781]: Endpoint unregistered:
sender=:1.52 path=/MediaEndpoint/A2DPSink
Mar 20 08:13:21 patient bluetoothd[781]: Endpoint unregistered:
sender=:1.52 path=/MediaEndpoint/A2DPSource
Mar 20 08:13:21 patient bluetoothd[781]: Endpoint unregistered:
sender=:1.52 path=/MediaEndpoint/HFPAG
Mar 20 08:13:21 patient bluetoothd[781]: Endpoint unregistered:
sender=:1.52 path=/MediaEndpoint/HFPHS
Mar 20 08:13:21 patient colord: device removed: sysfs-Generic-BisonCam__NB_Pro
Mar 20 08:13:21 patient kernel: [28846.341209] xhci_hcd 0000:00:14.0:
xHCI host not responding to stop endpoint command.
Mar 20 08:13:21 patient kernel: [28846.341213] xhci_hcd 0000:00:14.0:
Assuming host is dying, halting host.
Mar 20 08:13:21 patient kernel: [28846.341232] Bluetooth: hci0 urb
ffff880405e7b900 failed to resubmit (22)
Mar 20 08:13:21 patient kernel: [28846.341237] Bluetooth: hci0 urb
ffff880405e7b540 failed to resubmit (22)
Mar 20 08:13:21 patient kernel: [28846.341240] Bluetooth: hci0 urb
ffff880405e7b840 failed to resubmit (22)
Mar 20 08:13:21 patient kernel: [28846.341245] xhci_hcd 0000:00:14.0:
HC died; cleaning up
Mar 20 08:13:21 patient kernel: [28846.341278] usb 3-4: USB
disconnect, device number 2
Mar 20 08:13:21 patient kernel: [28846.341283] device: 'ep_81':
device_unregister
Mar 20 08:13:21 patient kernel: [28846.341304] PM: Removing info for
No Bus:ep_81
Mar 20 08:13:21 patient kernel: [28846.341311] device: 'ep_82':
device_unregister
Mar 20 08:13:21 patient kernel: [28846.341330] PM: Removing info for
No Bus:ep_82
Mar 20 08:13:21 patient kernel: [28846.341334] device: 'ep_02':
device_unregister
Mar 20 08:13:21 patient kernel: [28846.341371] PM: Removing info for
No Bus:ep_02
Mar 20 08:13:21 patient kernel: [28846.341404] bus: 'usb': remove device 3-4:1.0
Mar 20 08:13:21 patient kernel: [28846.341456] PM: Removing info for
No Bus:rfkill0
Mar 20 08:13:21 patient kernel: [28846.341516] PM: Removing info for No Bus:hci0
Mar 20 08:13:21 patient kernel: [28846.341611] PM: Removing info for usb:3-4:1.0
Mar 20 08:13:21 patient kernel: [28846.341629] device: 'ep_83':
device_unregister
Mar 20 08:13:21 patient kernel: [28846.341650] PM: Removing info for
No Bus:ep_83
Mar 20 08:13:21 patient kernel: [28846.341652] device: 'ep_03':
device_unregister
Mar 20 08:13:21 patient kernel: [28846.341662] PM: Removing info for
No Bus:ep_03
Mar 20 08:13:21 patient kernel: [28846.341680] bus: 'usb': remove device 3-4:1.1
Mar 20 08:13:21 patient kernel: [28846.341681] PM: Removing info for usb:3-4:1.1
Mar 20 08:13:21 patient kernel: [28846.341697] device: 'ep_00':
device_unregister
Mar 20 08:13:21 patient kernel: [28846.341713] PM: Removing info for
No Bus:ep_00
Mar 20 08:13:21 patient kernel: [28846.341983] bus: 'usb': remove device 3-4
Mar 20 08:13:21 patient kernel: [28846.341991] PM: Removing info for usb:3-4
Mar 20 08:13:21 patient kernel: [28846.342034] usb 3-10: USB
disconnect, device number 3
Mar 20 08:13:21 patient kernel: [28846.342037] device: 'ep_83':
device_unregister
Mar 20 08:13:21 patient kernel: [28846.342063] PM: Removing info for
No Bus:ep_83
Mar 20 08:13:21 patient kernel: [28846.342098] bus: 'usb': remove
device 3-10:1.0
Mar 20 08:13:21 patient kernel: [28846.342111] device: 'video0':
device_unregister
Mar 20 08:13:21 patient kernel: [28846.342685] PM: Removing info for
No Bus:video0
Mar 20 08:13:21 patient kernel: [28846.361334] PM: Removing info for
No Bus:event5
Mar 20 08:13:21 patient kernel: [28846.381270] PM: Removing info for
No Bus:input13
Mar 20 08:13:21 patient kernel: [28846.381324] PM: Removing info for
usb:3-10:1.0
Mar 20 08:13:21 patient kernel: [28846.381350] bus: 'usb': remove
device 3-10:1.1
Mar 20 08:13:21 patient kernel: [28846.381352] PM: Removing info for
usb:3-10:1.1
Mar 20 08:13:21 patient kernel: [28846.381366] device: 'ep_00':
device_unregister
Mar 20 08:13:21 patient kernel: [28846.381377] PM: Removing info for
No Bus:ep_00
Mar 20 08:13:21 patient kernel: [28846.381455] bus: 'usb': remove device 3-10
Mar 20 08:13:21 patient kernel: [28846.381461] PM: Removing info for usb:3-10
Mar 20 08:13:28 patient whoopsie[1220]: online
Mar 20 08:14:24 patient NetworkManager[867]: <warn> nl_recvmsgs()
error: (-33) Dump inconsistency detected, interrupted
Mar 20 08:14:56 patient whoopsie[1220]: online
Mar 20 08:16:08  whoopsie[1220]: last message repeated 2 times
--
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