Re: uvcvideo failure under xHCI

2011-06-18 Thread Laurent Pinchart
Hi Sarah, On Friday 17 June 2011 20:19:01 Sarah Sharp wrote: On Fri, Jun 17, 2011 at 07:01:10PM +0200, Laurent Pinchart wrote: On Friday 17 June 2011 18:46:20 Sarah Sharp wrote: On Fri, Jun 17, 2011 at 10:18:39AM +0200, Laurent Pinchart wrote: On Thursday 16 June 2011 22:20:22 Alan

Re: uvcvideo failure under xHCI

2011-06-17 Thread Laurent Pinchart
On Thursday 16 June 2011 22:20:22 Alan Stern wrote: On Thu, 16 Jun 2011, Sarah Sharp wrote: On Thu, Jun 16, 2011 at 03:39:11PM -0400, Alan Stern wrote: That's appropriate. But nobody should ever set an isochronous URB's status field to -EPROTO, no matter whether the device is connected

Re: uvcvideo failure under xHCI

2011-06-17 Thread Sarah Sharp
On Fri, Jun 17, 2011 at 10:18:39AM +0200, Laurent Pinchart wrote: On Thursday 16 June 2011 22:20:22 Alan Stern wrote: On Thu, 16 Jun 2011, Sarah Sharp wrote: On Thu, Jun 16, 2011 at 03:39:11PM -0400, Alan Stern wrote: That's appropriate. But nobody should ever set an isochronous URB's

Re: uvcvideo failure under xHCI

2011-06-17 Thread Laurent Pinchart
Hi Sarah, On Friday 17 June 2011 18:46:20 Sarah Sharp wrote: On Fri, Jun 17, 2011 at 10:18:39AM +0200, Laurent Pinchart wrote: On Thursday 16 June 2011 22:20:22 Alan Stern wrote: On Thu, 16 Jun 2011, Sarah Sharp wrote: On Thu, Jun 16, 2011 at 03:39:11PM -0400, Alan Stern wrote:

Re: uvcvideo failure under xHCI

2011-06-17 Thread Sarah Sharp
On Fri, Jun 17, 2011 at 07:01:10PM +0200, Laurent Pinchart wrote: Hi Sarah, On Friday 17 June 2011 18:46:20 Sarah Sharp wrote: On Fri, Jun 17, 2011 at 10:18:39AM +0200, Laurent Pinchart wrote: On Thursday 16 June 2011 22:20:22 Alan Stern wrote: On Thu, 16 Jun 2011, Sarah Sharp wrote:

Re: uvcvideo failure under xHCI

2011-06-16 Thread Laurent Pinchart
Hi Sarah, On Thursday 16 June 2011 04:59:57 Sarah Sharp wrote: On Wed, Jun 15, 2011 at 06:39:57PM -0700, Sarah Sharp wrote: When I plug in a webcam under an xHCI host controller in 3.0-rc3+ (basically top of Greg's usb-linus branch) with xHCI debugging turned on, the host controller

Re: uvcvideo failure under xHCI

2011-06-16 Thread Andy Walls
Sarah Sharp sarah.a.sh...@linux.intel.com wrote: Hi Laurent, I think this issue has been happening for a while now, but my recent patches to remove most of the xHCI debugging have finally allowed me to use a webcam under xHCI with debugging on. Unfortunately, it doesn't work very well. When

Re: uvcvideo failure under xHCI

2011-06-16 Thread Alan Stern
On Thu, 16 Jun 2011, Laurent Pinchart wrote: Hi Sarah, On Thursday 16 June 2011 04:59:57 Sarah Sharp wrote: On Wed, Jun 15, 2011 at 06:39:57PM -0700, Sarah Sharp wrote: When I plug in a webcam under an xHCI host controller in 3.0-rc3+ (basically top of Greg's usb-linus branch) with

Re: uvcvideo failure under xHCI

2011-06-16 Thread Sarah Sharp
On Thu, Jun 16, 2011 at 10:35:49AM -0400, Alan Stern wrote: On Thu, 16 Jun 2011, Laurent Pinchart wrote: On Thursday 16 June 2011 04:59:57 Sarah Sharp wrote: On Wed, Jun 15, 2011 at 06:39:57PM -0700, Sarah Sharp wrote: I've grepped through drivers/media/video, and it seems like none of

Re: uvcvideo failure under xHCI

2011-06-16 Thread Alan Stern
On Thu, 16 Jun 2011, Sarah Sharp wrote: Alan, does that seem correct? The description of the behavior of ehci-hcd and uhci-hcd is correct. ohci-hcd behaves the same way too. And they all agree with the behavior described in the kerneldoc for struct urb in include/linux/usb.h.

Re: uvcvideo failure under xHCI

2011-06-16 Thread Sarah Sharp
On Thu, Jun 16, 2011 at 01:39:43PM -0400, Alan Stern wrote: On Thu, 16 Jun 2011, Sarah Sharp wrote: Alan, does that seem correct? The description of the behavior of ehci-hcd and uhci-hcd is correct. ohci-hcd behaves the same way too. And they all agree with the behavior

Re: uvcvideo failure under xHCI

2011-06-16 Thread Alan Stern
On Thu, 16 Jun 2011, Sarah Sharp wrote: Sure. It feels like there should be a note about which values isochronous URBs might have in the urb-status field. The USB core is the only one that would be setting those, so which values would it set? uvcvideo tests for these error codes:

Re: uvcvideo failure under xHCI

2011-06-16 Thread Sarah Sharp
On Thu, Jun 16, 2011 at 03:39:11PM -0400, Alan Stern wrote: That's appropriate. But nobody should ever set an isochronous URB's status field to -EPROTO, no matter whether the device is connected or not and no matter whether the host controller is alive or not. But the individual frame status

Re: uvcvideo failure under xHCI

2011-06-16 Thread Alan Stern
On Thu, 16 Jun 2011, Sarah Sharp wrote: On Thu, Jun 16, 2011 at 03:39:11PM -0400, Alan Stern wrote: That's appropriate. But nobody should ever set an isochronous URB's status field to -EPROTO, no matter whether the device is connected or not and no matter whether the host controller is

uvcvideo failure under xHCI

2011-06-15 Thread Sarah Sharp
Hi Laurent, I think this issue has been happening for a while now, but my recent patches to remove most of the xHCI debugging have finally allowed me to use a webcam under xHCI with debugging on. Unfortunately, it doesn't work very well. When I plug in a webcam under an xHCI host controller in

Re: uvcvideo failure under xHCI

2011-06-15 Thread Sarah Sharp
On Wed, Jun 15, 2011 at 06:39:57PM -0700, Sarah Sharp wrote: When I plug in a webcam under an xHCI host controller in 3.0-rc3+ (basically top of Greg's usb-linus branch) with xHCI debugging turned on, the host controller occasionally cannot keep up with the isochronous transfers, and it tells