]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: xhci: apply XHCI_AVOID_BEI quirk to all Intel xHCI controllers
authorLu Baolu <baolu.lu@linux.intel.com>
Mon, 23 Mar 2015 16:27:42 +0000 (18:27 +0200)
committerJiri Slaby <jslaby@suse.cz>
Wed, 22 Apr 2015 06:58:42 +0000 (08:58 +0200)
commit0bd2650374e49b61e9cac8e22ae6ee3ed847b355
treee3cb1261179bbe3ec4815f3bd185f58fba2c2527
parent55d572b94414646ebcd04840f28a8681fe50059e
usb: xhci: apply XHCI_AVOID_BEI quirk to all Intel xHCI controllers

commit 227a4fd801c8a9fa2c4700ab98ec1aec06e3b44d upstream.

When a device with an isochronous endpoint is plugged into the Intel
xHCI host controller, and the driver submits multiple frames per URB,
the xHCI driver will set the Block Event Interrupt (BEI) flag on all
but the last TD for the URB. This causes the host controller to place
an event on the event ring, but not send an interrupt. When the last
TD for the URB completes, BEI is cleared, and we get an interrupt for
the whole URB.

However, under Intel xHCI host controllers, if the event ring is full
of events from transfers with BEI set,  an "Event Ring is Full" event
will be posted to the last entry of the event ring,  but no interrupt
is generated. Host will cease all transfer and command executions and
wait until software completes handling the pending events in the event
ring.  That means xHC stops, but event of "event ring is full" is not
notified. As the result, the xHC looks like dead to user.

This patch is to apply XHCI_AVOID_BEI quirk to Intel xHC devices. And
it should be backported to kernels as old as 3.0, that contains the
commit 69e848c2090a ("Intel xhci: Support EHCI/xHCI port switching.").

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Tested-by: Alistair Grant <akgrant0710@gmail.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/host/xhci-pci.c