Re: [Libusbx-devel] usbdevfs: BULK_CONTINUATION flag does not work with XHCI controller

2012-06-04 Thread Sarah Sharp
On Mon, Jun 04, 2012 at 10:22:12AM -0400, Alan Stern wrote: > On Mon, 4 Jun 2012, Hans de Goede wrote: > > > >>> I'm thinking that maybe the issue is that the EREMOTEIO error gets > > >>> generated > > >>> by the driver based on the SHORT_NOT_OK flag (or so I believe), not the > > >>> hc > > >>>

Re: [Libusbx-devel] usbdevfs: BULK_CONTINUATION flag does not work with XHCI controller

2012-06-04 Thread Alan Stern
On Mon, 4 Jun 2012, Hans de Goede wrote: > >>> I'm thinking that maybe the issue is that the EREMOTEIO error gets > >>> generated > >>> by the driver based on the SHORT_NOT_OK flag (or so I believe), not the hc > >>> itself, could it be that the code doing that does not halt the ep, or > >>> hal

Re: [Libusbx-devel] usbdevfs: BULK_CONTINUATION flag does not work with XHCI controller

2012-06-04 Thread Hans de Goede
Hi, Hmm, should have read the thread further before reply-ing to Sarah's first response. Lets continue the discussion from here as this part of the thread seems more focussed on the issue at hand. On 06/04/2012 06:22 AM, Sarah Sharp wrote: > On Fri, May 25, 2012 at 09:47:53PM -0400, Alan Stern wr

Re: [Libusbx-devel] usbdevfs: BULK_CONTINUATION flag does not work with XHCI controller

2012-06-04 Thread Sarah Sharp
On Fri, May 25, 2012 at 09:47:53PM -0400, Alan Stern wrote: > On Fri, 25 May 2012, Hans de Goede wrote: > > > > Judging by your description, there is a bug either in xhci-hcd or in > > > your xHCI hardware. What does "lspci -vv" show for the controller? > > > > 01:00.0 USB Controller: NEC Corpor

Re: [Libusbx-devel] usbdevfs: BULK_CONTINUATION flag does not work with XHCI controller

2012-06-04 Thread Sarah Sharp
On Fri, May 25, 2012 at 04:54:01PM -0400, Alan Stern wrote: > On Fri, 25 May 2012, Hans de Goede wrote: > > Here is what I believe is happening, at 2 libusb splits the > > bulk in transfer into 2 packets, 1 of 16k and 1 of 4k, setting the > > USBDEVFS_URB_SHORT_NOT_OK flag on both and the > > USBDE

Re: [Libusbx-devel] usbdevfs: BULK_CONTINUATION flag does not work with XHCI controller

2012-06-03 Thread Xiaofan Chen
On Sat, May 26, 2012 at 4:54 AM, Alan Stern wrote: > On Fri, 25 May 2012, Hans de Goede wrote: >> I spend the last 1.5 days debugging a problem with redirecting >> certain USB mass-storage devices to a Windows 7 vm. >> >> This problem only happens when the device is plugged into an >> USB 3 port.

Re: [Libusbx-devel] usbdevfs: BULK_CONTINUATION flag does not work with XHCI controller

2012-05-29 Thread Xiaofan Chen
On Mon, May 28, 2012 at 7:27 PM, Hans de Goede wrote: > So it is almost the same NEC XHCI controller in both cases, > except that mine is a revision 4, and the thinkpad > one is a revision 3. > Just wondering if you could try to update the FW (probably need to use Windows machine) and then see if

Re: [Libusbx-devel] usbdevfs: BULK_CONTINUATION flag does not work with XHCI controller

2012-05-28 Thread Hans de Goede
Hi, On 05/25/2012 10:54 PM, Alan Stern wrote: > On Fri, 25 May 2012, Hans de Goede wrote: > >> To verify my theory, I've tried raising the packet splitting limit in >> libusb to 32k and that (unsurprisingly) fixes things, but that is just >> a bandaid and not a proper fix for the issue at hand IMH

Re: [Libusbx-devel] usbdevfs: BULK_CONTINUATION flag does not work with XHCI controller

2012-05-25 Thread Alan Stern
On Fri, 25 May 2012, Hans de Goede wrote: > > Judging by your description, there is a bug either in xhci-hcd or in > > your xHCI hardware. What does "lspci -vv" show for the controller? > > 01:00.0 USB Controller: NEC Corporation uPD720200 USB 3.0 Host Controller > (rev 04) (prog-if 30 [XHCI])

Re: [Libusbx-devel] usbdevfs: BULK_CONTINUATION flag does not work with XHCI controller

2012-05-25 Thread Hans de Goede
Hi, On 05/25/2012 10:54 PM, Alan Stern wrote: > On Fri, 25 May 2012, Hans de Goede wrote: > >> Hi, >> >> I spend the last 1.5 days debugging a problem with redirecting >> certain USB mass-storage devices to a Windows 7 vm. >> >> This problem only happens when the device is plugged into an >> USB 3

Re: [Libusbx-devel] usbdevfs: BULK_CONTINUATION flag does not work with XHCI controller

2012-05-25 Thread Alan Stern
On Fri, 25 May 2012, Hans de Goede wrote: > Hi, > > I spend the last 1.5 days debugging a problem with redirecting > certain USB mass-storage devices to a Windows 7 vm. > > This problem only happens when the device is plugged into an > USB 3 port. > > I believe I now know what is happening: >

[Libusbx-devel] usbdevfs: BULK_CONTINUATION flag does not work with XHCI controller

2012-05-25 Thread Hans de Goede
Hi, I spend the last 1.5 days debugging a problem with redirecting certain USB mass-storage devices to a Windows 7 vm. This problem only happens when the device is plugged into an USB 3 port. I believe I now know what is happening: First the working sequence: 1) Windows guest writes some bulk d