From owner-freebsd-usb@freebsd.org Mon Oct 3 11:20:12 2016 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AB04EAC6243 for ; Mon, 3 Oct 2016 11:20:12 +0000 (UTC) (envelope-from me@janh.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9FB4CA80; Mon, 3 Oct 2016 11:20:11 +0000 (UTC) (envelope-from me@janh.de) Received: from [192.168.178.49] ([84.180.232.219]) by mrelayeu.kundenserver.de (mreue005) with ESMTPSA (Nemesis) id 0LuYaa-1aravn2dYO-00zltj; Mon, 03 Oct 2016 13:20:07 +0200 Subject: Re: Status of PCIe Hotplug? To: Hans Petter Selasky References: <3c6ab189-aad0-2593-1d3c-f221de294174@janh.de> <1635480.htdnZkDgDb@ralph.baldwin.cx> <6742d46b-304c-79c9-7233-61cd86ef6542@selasky.org> <623f33ff-faaf-02e0-0c6e-725b9e0319e1@selasky.org> <35e7392f-fe89-a97b-d3e2-d0554a46e897@selasky.org> Cc: Alexander Motin , John Baldwin , FreeBSD-USB Mailing List , Warner Losh From: Jan Henrik Sylvester Message-ID: Date: Mon, 3 Oct 2016 13:19:57 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <35e7392f-fe89-a97b-d3e2-d0554a46e897@selasky.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:gda4WSLgt7SgQaw6gY2OFxMzfAHOU375T2DiVCwtYWj78ZyZL0Y W46v0PIMRZJZqX8VN0GoQoPLaALDV75ALG9yHeKoTbY9+jd6DWa//j2PEyl2MHy52wy+3Zz GV60SaLaiZ1vM2CXqoO+r0znml73rdEriSbFiIkqUQYbRLlFu8MtxOt/QRF5xae93VrjvYw hviU9qHNtcKJ85nReEiWg== X-UI-Out-Filterresults: notjunk:1;V01:K0:1fFYfZgVbjI=:LxMK5e6qCbe1MzQY6R/Lp4 RHovavi9CvTEBKJyM1PmvefEajbFKyI0vL02u1uZSGrVWQQulhHxLuYapih3v6qVFReHRBYi+ eQnmJmhw6xDVjY4VIZ4m76dbNfQAWmET9GqiUpD4Nejs9DNNxkX+jm4LdYRLCgxS59ebMmAws jbGiqj2qNBCgGx5eHWdbe6yA37HquPdUqJjHgP/b9ezYHuySQU6ojYsow2AHCBAc2i8HTb/ah okkalKv1JYAkTqwIjBOmCZFTgFKGmZSGE/WT6UfGY0dIvi7O096uj6ZPMUMmhWR+Jby6LUJ8e Fit3a/1n927U9t2jHxVFxPsrskhJ6gWW6ccgEPyAlpNqrtujmAPqNRgKac/8w7nXi21gNa3D7 fvUSV4eB3/gr9d5pP6gpEdjS37VS3Z3680cIT0VwLnTu+AaYRXTJ+g53bYM5D3wEEHiqABRfU FXOrYNH2i+jGeEWONia22i2pH0coEfXjnFF28CN2hB2ePM0hwblNg0Wyh9bXa5Mh6yF4Vlj05 zlucwEJ5dx2FofbznmYd62yx/lC5P9XDWcx4E5k7GPJsL+H9XvZY503/urS77E7dEGHLvN3b5 /MylP++plcXrQhBrodV720nNtYNZSxaAPgKfLNxyEef7rIOxk/y0uY9tZPUU3HRaa1Uv0IiJj 0qRpdgWXE2OxVHcLIdDEpM+SsTTxnisjwgVSehAtb5w4zIsCyeFNaB8KU3s0uc0iVBAbF4EXp JnP1u/QAITN4/3/o X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2016 11:20:12 -0000 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: 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: 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: 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