On 09/30/2016 10:58, Hans Petter Selasky wrote:
> I've updated:
> 
> https://reviews.freebsd.org/D8070
> 
> Can you tra again Jan?

I have tested the new versions of the patch and could not produce any
panic -- no matter how quickly I attached and removed the ExpressCard
and the usb stick.

Most of the time, everything was as expected, sometimes I got CAM errors
with the message about aborting after 5 retries.

Rarely, I could create some error for xhci after reinserting the
ExpressCard. For example this one:

xhci0: <XHCI (generic) USB 3.0 controller> mem 0xf0000000-0xf0001fff at
device 0.0 on pci7
xhci0: 64 bytes context size, 64-bit DMA
xhci0: Unable to map MSI-X table
xhci0: Controller reset timeout.
xhci0: XHCI halt/start/probe failed err=18
device_attach: xhci0 attach returned 6

After pulling the ExpressCard again and reinserting it, it was usable again.

One error was more persistent:

12:51:31 xhci0: Resetting controller
12:51:37 usbd_req_re_enumerate: addr=1, set address failed!
(USB_ERR_TIMEOUT, ignored)
12:51:56 usbd_setup_device_desc: getting device descriptor at addr 1
failed, USB_ERR_TIMEOUT
12:51:58 usbd_req_re_enumerate: addr=1, set address failed!
(USB_ERR_TIMEOUT, ignored)
12:52:18 usbd_setup_device_desc: getting device descriptor at addr 1
failed, USB_ERR_TIMEOUT
12:52:21 usb_alloc_device: Failure selecting configuration index
0:USB_ERR_TIMEOUT, port 1, addr 1 (ignored)
12:52:21 ugen2.2: <Lexar> at usbus2
12:52:22 uhub_reattach_port: giving up port reset - device vanished
12:52:24 nb981 last message repeated 2 times
12:52:24 ugen2.2: <Lexar> at usbus2 (disconnected)
12:52:26 uhub_reattach_port: giving up port reset - device vanished
12:52:30 nb981 last message repeated 3 times
12:52:30 ugen2.1: <0x1912> at usbus2 (disconnected)
12:52:30 unknown: at usbus2, port 1, addr 1 (disconnected)
12:52:30 usbus2: detached
12:52:30 xhci0: detached
12:52:30 pci7: detached

When it found ugen2.2, the controller with usb stick was already gone
for 50 seconds during which reinserting the ExpressCard without the usb
stick would not produce any message. After a minute, the system had
caught up with the removal and reinserting the ExpressCard then made it
available and usable again.

In the end, every error could be recovered from without rebooting the
system and I never got a panic.

Thanks,
Jan Henrik
_______________________________________________
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to