Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Oct 2016 13:19:57 +0200
From:      Jan Henrik Sylvester <me@janh.de>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        Alexander Motin <mav@FreeBSD.org>, John Baldwin <jhb@freebsd.org>, FreeBSD-USB Mailing List <freebsd-usb@freebsd.org>, Warner Losh <imp@bsdimp.com>
Subject:   Re: Status of PCIe Hotplug?
Message-ID:  <d90fefc8-9f69-fadb-b0b1-f8138fa0a8fc@janh.de>
In-Reply-To: <35e7392f-fe89-a97b-d3e2-d0554a46e897@selasky.org>
References:  <D7E110DB-EF6D-41DD-8D69-A021422916FA@sarenet.es> <3c6ab189-aad0-2593-1d3c-f221de294174@janh.de> <b192f906-7e2e-339c-675c-5d6a01e6b7cd@selasky.org> <1635480.htdnZkDgDb@ralph.baldwin.cx> <de8a9add-0e55-6813-ff3b-ae9b335bf33a@selasky.org> <6742d46b-304c-79c9-7233-61cd86ef6542@selasky.org> <ab5b65f4-ff9a-36bb-caf1-17131dcc7aab@janh.de> <623f33ff-faaf-02e0-0c6e-725b9e0319e1@selasky.org> <d0255dab-4389-db60-92e4-1d05f46a243d@FreeBSD.org> <35e7392f-fe89-a97b-d3e2-d0554a46e897@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d90fefc8-9f69-fadb-b0b1-f8138fa0a8fc>