Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 555962 - sys-kernel/gentoo-sources-4.0.5: Problem with xhci ring handling on kernel 4.0.5
Summary: sys-kernel/gentoo-sources-4.0.5: Problem with xhci ring handling on kernel 4.0.5
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://git.kernel.org/cgit/linux/kern...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-26 17:34 UTC by Mikael Grahn
Modified: 2017-03-02 00:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Grahn 2015-07-26 17:34:07 UTC
I'm having problems with xhci giving me errors like "ERROR Transfer event TRB DMA ptr not part of current TD..."

I've finally found a fix on lkml for this problem. I would love for this to be included in your patches for the latest table kernel so I don't have to add this patch manually (or anyone else having the same problem as me). This little fix I found works like a charm.

Reproducible: Always




These errors makes the usb device reset every time this happens with huge stalls for like 30 seconds for me. As I use the usb drive for system disc it hits me hard.
Comment 1 Mikael Grahn 2015-07-26 17:35:21 UTC
The URL i attached to this report will show the discussion about the problem and also the little fix that needs to be done to the kernel.
Comment 2 Andreas Klauer 2015-07-31 11:50:18 UTC
This thing bit me as well, using kernel 4.1.3.

It's an off by one error in the xhci.

https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg939670.html

drivers/usb/host/xhci-ring.c
- if (segment_offset > TRBS_PER_SEGMENT)
+ if (segment_offset >= TRBS_PER_SEGMENT)

Small change, USB3 speed went from 2MB/s back to 150MB/s.
Comment 3 Mike Pagano gentoo-dev 2015-11-16 00:32:26 UTC
This patch is in kernels >= 4.1.6