Bug 43333
Summary: | option-based modem unhappy on USB 3.0 port: "Transfer event TRB DMA ptr not part of current TD", "rejecting I/O to offline device" | ||
---|---|---|---|
Product: | Drivers | Reporter: | James Ettle (james) |
Component: | USB | Assignee: | Greg Kroah-Hartman (greg) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | alan, florian, sarah |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.4 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
Output of lspci -vvv
Output of lspci -vvv -n Possible bug fix. dmesg output with debugging enabled, patch applied |
Description
James Ettle
2012-06-02 21:12:27 UTC
James, can you try compiling my for-usb-linus branch and see if this takes care of your issue? git clone -b for-usb-linus git://git.kernel.org/pub/scm/linux/kernel/git/sarah/xhci.g There was a bug that got fixed that could cause the ERROR message to appear. (In reply to comment #1) > git clone -b for-usb-linus > git://git.kernel.org/pub/scm/linux/kernel/git/sarah/xhci.g > > There was a bug that got fixed that could cause the ERROR message to appear. Hmm... every time I try that, I get "fatal: The remote end hung up unexpectedly". Are there some plain patches for 3.4.4 I could try? James, can you retest with 3.4.5? There was a patch that fixed the "ERROR Transfer event TRB DMA ptr not part of current TD" message for some other devices. I suspect commit b62d32b9166b085a487916eca514b59b5ffdf2b7 may help your device as well. (In reply to comment #3) > James, can you retest with 3.4.5? There was a patch that fixed the "ERROR > Transfer event TRB DMA ptr not part of current TD" message for some other > devices. I suspect commit b62d32b9166b085a487916eca514b59b5ffdf2b7 may help > your device as well. I'm on 3.4.6 and I still get: [107173.234727] xhci_hcd 0000:03:00.0: ERROR Transfer event TRB DMA ptr not part of current TD [107210.252645] xhci_hcd 0000:03:00.0: ERROR Transfer event TRB DMA ptr not part of current TD [107230.221164] sr 74:0:0:0: Device offlined - not ready after error recovery [107232.607962] sr 74:0:0:0: rejecting I/O to offline device [107234.651880] sr 74:0:0:0: rejecting I/O to offline device ... Ok, James, thanks for trying that. Can you recompile your kernel with CONFIG_USB_DEBUG and CONFIG_USB_XHCI_HCD_DEBUGGING turned on, and post the resulting dmesg with the failure. I'll need to see some of the log before the failure as well. Also, will you please post the output of `sudo lspci -vvv` and `sudo lspci -vvv -n`? I need to see which host controller you're having issues with. Created attachment 76091 [details]
Output of lspci -vvv
Created attachment 76101 [details]
Output of lspci -vvv -n
lspci outputs attached. Debug kernel will take a little longer, will post output in due course.
I think I have fixed the bug. Please apply the attached patch and let me know if it fixes the ERROR messages. Created attachment 76151 [details]
Possible bug fix.
(In reply to comment #9) > I think I have fixed the bug. Please apply the attached patch and let me > know > if it fixes the ERROR messages. Do you want the CONFIG_[..]_DEBUG options of Comment #5 enabled and the corresponding trace when built against this patch? (In reply to comment #11) > (In reply to comment #9) > > I think I have fixed the bug. Please apply the attached patch and let me > know > > if it fixes the ERROR messages. > > Do you want the CONFIG_[..]_DEBUG options of Comment #5 enabled and the > corresponding trace when built against this patch? Yes. OK, I'll build a trace-enabled version soon. That said, things are looking good so far with the patch of Comment #10 applied (to a non-debug kernel). Created attachment 76391 [details]
dmesg output with debugging enabled, patch applied
A patch referencing this bug report has been merged in Linux v3.6-rc3: commit 50d0206fcaea3e736f912fd5b00ec6233fb4ce44 Author: Sarah Sharp <sarah.a.sharp@linux.intel.com> Date: Thu Jul 26 12:03:59 2012 -0700 xhci: Fix bug after deq ptr set to link TRB. For some reason, I'm now seeing this with the modem attached to a USB 2.0 port. I know it's appeared on at least kernel 3.5.2 with the patch from Comment #15, and on 3.5.3 (from my distro). James: can you please open a separate bugzilla request? It could be a different issue. |