All of lore.kernel.org
 help / color / mirror / Atom feed
* USB xHCI regression after upgrading from kernel 3.19.0-51 to 4.2.0-34.
@ 2016-04-07 15:36 Matthew Giassa
  2016-04-08  8:51 ` Hans de Goede
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Giassa @ 2016-04-07 15:36 UTC (permalink / raw)
  To: linux-media; +Cc: Mathias Nyman, greg

Good day,

I maintain an SDK for USB2.0 and USB3.0 U3V machine vision cameras, and
several of my customers have reported severe issues since upgrading from
kernel 3.19.0-51 (Ubuntu 14.04.3 LTS) to kernel 4.2.0-34 (Ubuntu 14.04.4
LTS). I've received helpful advice from members of the libusb and
linux-usb mailing list and development groups on how to generate useful
logs to help diagnose the issue, and have filed a bug to track this
issue at:

  https://bugzilla.kernel.org/show_bug.cgi?id=115961

It seems that with kernels newer than the 3.19 series (I've tested on
4.2.0-34, and just repeated the tests on the latest 4.5.0 release), the
cameras lock up, and cannot stream image data to the user application. I
am able to resolve the issue on 4.2.0-34 by disabling USB power
management by adding "usbcore.autosuspend=-1". On the 4.5 kernel, this
"trick" doesn't work at all, and I have no way to get the cameras to
stream data. I can do simple USB control requests to query things like
register values and serial numbers, but that's it. Asynchronous bulk
transfers never succeed.

Special Cases:
 * The issue does not occur when using USB2.0 cameras on a USB2.0 port,
regardless of the kernel in use.
 * The issues occur only on Intel 8 Series and Intel 9 Series USB3.0
host controllers with 4.x kernels.
 * Intel 10 Series host controllers have not yet been tested.
 * The issues never occur on Fresco or Renesas host controllers,
regardless of the kernel in use.
 * From visual inspection of lsusb output, the issue only appears to
happen when the U1 and U2 options are available to the device.

I would like to request assistance with diagnosing and resolving the
issue, as it requires our customers to either not use Intel host
controllers, or sticking to older kernel releases.

Thank you for your time and assistance.

============================================================
Matthew Giassa, MASc, BASc, EIT
Security and Embedded Systems Specialist
linkedin: https://ca.linkedin.com/in/giassa
e-mail:   matthew@giassa.net
website:  www.giassa.net


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: USB xHCI regression after upgrading from kernel 3.19.0-51 to 4.2.0-34.
  2016-04-07 15:36 USB xHCI regression after upgrading from kernel 3.19.0-51 to 4.2.0-34 Matthew Giassa
@ 2016-04-08  8:51 ` Hans de Goede
  2016-04-08 14:26   ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Hans de Goede @ 2016-04-08  8:51 UTC (permalink / raw)
  To: Matthew Giassa, linux-media; +Cc: Mathias Nyman, greg

Hi,

It is probably best to resend this mail to
linux-usb <linux-usb@vger.kernel.org>
since this is more of a usb problem then a v4l2 problem,
and all the usb experts are subscribed to that list.

Regards,

Hans



On 07-04-16 17:36, Matthew Giassa wrote:
> Good day,
>
> I maintain an SDK for USB2.0 and USB3.0 U3V machine vision cameras, and
> several of my customers have reported severe issues since upgrading from
> kernel 3.19.0-51 (Ubuntu 14.04.3 LTS) to kernel 4.2.0-34 (Ubuntu 14.04.4
> LTS). I've received helpful advice from members of the libusb and
> linux-usb mailing list and development groups on how to generate useful
> logs to help diagnose the issue, and have filed a bug to track this
> issue at:
>
>    https://bugzilla.kernel.org/show_bug.cgi?id=115961
>
> It seems that with kernels newer than the 3.19 series (I've tested on
> 4.2.0-34, and just repeated the tests on the latest 4.5.0 release), the
> cameras lock up, and cannot stream image data to the user application. I
> am able to resolve the issue on 4.2.0-34 by disabling USB power
> management by adding "usbcore.autosuspend=-1". On the 4.5 kernel, this
> "trick" doesn't work at all, and I have no way to get the cameras to
> stream data. I can do simple USB control requests to query things like
> register values and serial numbers, but that's it. Asynchronous bulk
> transfers never succeed.
>
> Special Cases:
>   * The issue does not occur when using USB2.0 cameras on a USB2.0 port,
> regardless of the kernel in use.
>   * The issues occur only on Intel 8 Series and Intel 9 Series USB3.0
> host controllers with 4.x kernels.
>   * Intel 10 Series host controllers have not yet been tested.
>   * The issues never occur on Fresco or Renesas host controllers,
> regardless of the kernel in use.
>   * From visual inspection of lsusb output, the issue only appears to
> happen when the U1 and U2 options are available to the device.
>
> I would like to request assistance with diagnosing and resolving the
> issue, as it requires our customers to either not use Intel host
> controllers, or sticking to older kernel releases.
>
> Thank you for your time and assistance.
>
> ============================================================
> Matthew Giassa, MASc, BASc, EIT
> Security and Embedded Systems Specialist
> linkedin: https://ca.linkedin.com/in/giassa
> e-mail:   matthew@giassa.net
> website:  www.giassa.net
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: USB xHCI regression after upgrading from kernel 3.19.0-51 to 4.2.0-34.
  2016-04-08  8:51 ` Hans de Goede
@ 2016-04-08 14:26   ` Greg KH
  0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2016-04-08 14:26 UTC (permalink / raw)
  To: Hans de Goede; +Cc: Matthew Giassa, linux-media, Mathias Nyman

On Fri, Apr 08, 2016 at 10:51:26AM +0200, Hans de Goede wrote:
> Hi,
> 
> It is probably best to resend this mail to
> linux-usb <linux-usb@vger.kernel.org>
> since this is more of a usb problem then a v4l2 problem,
> and all the usb experts are subscribed to that list.

Heh, I told him to send it to linux-media, sorry about that.

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-08 14:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-07 15:36 USB xHCI regression after upgrading from kernel 3.19.0-51 to 4.2.0-34 Matthew Giassa
2016-04-08  8:51 ` Hans de Goede
2016-04-08 14:26   ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.