[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2021-07-20 Thread Guilherme G. Piccoli
** Changed in: linux (Debian)
 Assignee: Guilherme G. Piccoli (gpiccoli) => (unassigned)

** Changed in: linux (Ubuntu)
 Assignee: Guilherme G. Piccoli (gpiccoli) => (unassigned)

** Changed in: linux (Ubuntu Trusty)
 Assignee: Guilherme G. Piccoli (gpiccoli) => (unassigned)

** Changed in: linux (Ubuntu Bionic)
 Assignee: Guilherme G. Piccoli (gpiccoli) => (unassigned)

** Changed in: linux (Ubuntu Focal)
 Assignee: Guilherme G. Piccoli (gpiccoli) => (unassigned)

** Changed in: linux (Ubuntu Xenial)
 Assignee: Guilherme G. Piccoli (gpiccoli) => (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1749961/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2021-03-21 Thread Bug Watch Updater
** Changed in: linux
   Status: Unknown => Confirmed

** Changed in: linux
   Importance: Unknown => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2021-03-21 Thread Kevin Hester
** Bug watch added: Linux Kernel Bug Tracker #202541
   https://bugzilla.kernel.org/show_bug.cgi?id=202541

** Also affects: linux via
   https://bugzilla.kernel.org/show_bug.cgi?id=202541
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2021-03-21 Thread Kevin Hester
Btw - I just checked 20.10 even using kernel 5.11.8 (latest via
"mainline --install 5.11.8" and that current kernel shows the same
problem and error message "ERROR Transfer event TRB DMA ptr not part of
current TD ep_index 1"

Test hardware: Lenovo Thunderbolt Dock Gen 2" shows these same problems
with a high speed USB (Samsung SSD T7) disk on Ubuntu 20.10. No need to
involve the gige port to see the problem.

This is probably still a bug in the kernel but I'm not sure how you want
to report it upstream so it is linked here...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2021-02-23 Thread Kevin Hester
I can confirm @lamalas "Lenovo Thunderbolt Dock Gen 2" shows these same
problems with a high speed USB (Samsung SSD T7) disk on Ubuntu 20.10. No
need to involve the gige port to see the problem.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2021-02-04 Thread Rafael Waldo
I did a little bit of research on the Razer Core Chroma usb card.

This card uses 3 ASM1142 pcie to usb bridges (let's call them IC_0,
IC_1, IC_2) and the PCIe 4x connector is wired in a non-standard way.

IC_0 is wired up to the PCIe in a normal fashion using only the pcie
lane 0 (TX and RX) and the "usual" clock lane.

IC_1 data lanes are wired to pci lane 1 (TX and RX) but the clock lane
has been wired to lane 3 RX.

IC_2  data lanes are wired to pci lane 2 (TX and RX) but the clock lane
has been wired to lane 3 TX.

Furthermore IC_2 has one of it's two USB interfaces wired to an USB to
Ethernet bridge (ASIX AX88179), while the other one is connected to
another micro-controller on the Chroma's main board that I presume
controls the LED colours, in windows this IC is detected as some sort of
mouse so I would say that Razer have recycled some code to implement
this...

All clock lanes merge together in another IC (IC_4) that is on the
Chroma's main board.

I would say that they are doing some sort of Time-division to share the
same PCIe port for three different devices and this is provoking all the
mess. I have read people having trouble in every single OS (MacOS,
Windows and Linux) with this device. I would expeted such junkie desing
on low budged development, but never in a company as Razer. And
their response to they issue is been horrendous... something to bare in
mind in future acquisitions

Anyway it would be interesting to know if other people having trouble
has more of one ASM1142 or not

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2021-01-03 Thread Rafael Waldo
Hello, I have a Razer Core Chroma with this USB contoller, and I can
confirm that this issue still present at 5.9.16.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-10-27 Thread Nick Klein
Confirmed this continues on Ubuntu 20.10.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-09-09 Thread Bryan Walsh
I've heard nothing back from razer.  I first submitted the issue to them
over two years ago now.  Not holding my breath.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-09-07 Thread Nick Klein
Has anyone gotten their hardware vendor to cough up a new firmware yet?
Razer has shown no movement.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-08-12 Thread 3esmit
I am having the same exact error with `USB controller: ASMedia
Technology Inc. ASM1142 USB 3.1 Host Controller` and a `Logitech
StreamCam`.

I tried updating my kernel from `4.15.0-112` to `5.4.0-42` but that
didn't helped.

I brought a "dodocool DC26 SuperSpeed USB 3.1 PCI-Express Card with Dual
Type-C Ports", which was supposed to work with Linux, but it only works
for slow speed connections, if I try to use a high speed connection it
does not work.

The problem is not on the device I'm connecting. If I use an "Adaptor
Usb-C 3.1 Type-c Female to Usb-a 3.0 Male" in the onboard USB 3.0, it
works fine. I just have issues with the ASM1142.

If I keep trying to connect, I run into a error that totally disable the
ASM1142 .


These are the dmesg logs when I connect the high speed device:
```
[ 2229.576801] usb 6-1: new SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[ 2229.604832] usb 6-1: New USB device found, idVendor=046d, idProduct=0893, 
bcdDevice= 3.17
[ 2229.604837] usb 6-1: New USB device strings: Mfr=0, Product=2, SerialNumber=3
[ 2229.604841] usb 6-1: Product: Logitech StreamCam
[ 2229.604844] usb 6-1: SerialNumber: 5085D605
[ 2229.609976] uvcvideo: Found UVC 1.00 device Logitech StreamCam (046d:0893)
[ 2229.626309] uvcvideo 6-1:1.0: Entity type for entity Processing 3 was not 
initialized!
[ 2229.626313] uvcvideo 6-1:1.0: Entity type for entity Extension 14 was not 
initialized!
[ 2229.626316] uvcvideo 6-1:1.0: Entity type for entity Extension 6 was not 
initialized!
[ 2229.626318] uvcvideo 6-1:1.0: Entity type for entity Extension 8 was not 
initialized!
[ 2229.626321] uvcvideo 6-1:1.0: Entity type for entity Extension 9 was not 
initialized!
[ 2229.626323] uvcvideo 6-1:1.0: Entity type for entity Extension 10 was not 
initialized!
[ 2229.626325] uvcvideo 6-1:1.0: Entity type for entity Extension 11 was not 
initialized!
[ 2229.626327] uvcvideo 6-1:1.0: Entity type for entity Camera 1 was not 
initialized!
[ 2229.626514] input: Logitech StreamCam as 
/devices/pci:00/:00:01.0/:01:00.0/usb6/6-1/6-1:1.0/input/input29
[ 2229.635309] usb 6-1: current rate 16000 is different from the runtime rate 
24000
[ 2229.639323] usb 6-1: current rate 16000 is different from the runtime rate 
32000
[ 2229.643585] usb 6-1: current rate 16000 is different from the runtime rate 
48000
[ 2229.661927] hid-generic 0003:046D:0893.0007: hiddev0,hidraw0: USB HID v1.11 
Device [Logitech StreamCam] on usb-:01:00.0-1/input5
[ 2229.790807] usb 6-1: current rate 16000 is different from the runtime rate 
48000
[ 2229.797295] usb 6-1: current rate 16000 is different from the runtime rate 
48000
[ 2229.806037] usb 6-1: current rate 16000 is different from the runtime rate 
48000
``` 

When I try to access the device (opening Cheese), it turns the "camera led on" 
but no image is displayed, and this are the dmesg logs:
```
[ 2282.173723] usb 6-1: reset SuperSpeed Gen 1 USB device number 3 using 
xhci_hcd
[ 2282.913814] xhci_hcd :01:00.0: ERROR Transfer event TRB DMA ptr not part 
of current TD ep_index 2 comp_code 13
[ 2282.913834] xhci_hcd :01:00.0: Looking for event-dma 00036400e020 
trb-start 00036400e000 trb-end 00036400e000 seg-start 00036400e000 
seg-end 00036400eff0
[ 2282.913836] xhci_hcd :01:00.0: ERROR Transfer event TRB DMA ptr not part 
of current TD ep_index 2 comp_code 13
[ 2282.913838] xhci_hcd :01:00.0: Looking for event-dma 00036400e050 
trb-start 00036400e000 trb-end 00036400e000 seg-start 00036400e000 
seg-end 00036400eff0

//(...) repeats above 2 entries only changing event-dma id
``` 

If I change a configuration in Cheese to use 640x800, then no errors
appear in log, and the device works. If I keep insisting in changing the
resolution options to anything higher than 640x800, the whole card is
disabled and only rebooting the device enables it again, and this
appears in dmesg logs:

```
[ 2515.681558] xhci_hcd :01:00.0: ERROR unknown event type 15
[ 2520.664512] xhci_hcd :01:00.0: xHCI host not responding to stop endpoint 
command.
[ 2520.664535] xhci_hcd :01:00.0: xHCI host controller not responding, 
assume dead
[ 2520.664574] xhci_hcd :01:00.0: HC died; cleaning up
[ 2520.664629] usb 6-1: Not enough bandwidth for altsetting 0
[ 2520.664669] usb 6-1: USB disconnect, device number 3
```

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-07-14 Thread Guilherme G. Piccoli
** Changed in: linux (Ubuntu Bionic)
   Status: In Progress => Confirmed

** Changed in: linux (Ubuntu Xenial)
   Status: In Progress => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-07-12 Thread Kai-Heng Feng
No, I don't think there's any public information on this issue.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-07-12 Thread Bryan Walsh
I'll try to reach out to Razer again to see if they will push out a
firmware update.  Is there any documentation on the underlying firmware
bug that I can point them towards?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-07-09 Thread Kai-Heng Feng
I was told by ASMedia only firmware update can fix this issue. Please
ask the device/board vendor to roll out new firmware update.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-06-29 Thread Bryan Walsh
Tried running with iommu=off with my EGPU, exact same behavior as
before.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-06-23 Thread Aki Nyrhinen
I tried with iommu=off when I last looked at this and the problem
persisted.

On Tue, Jun 23, 2020, 12:25 AM Mikko Rantalainen <1749...@bugs.launchpad.net>
wrote:

> Could somebody that is seeing this problem try to boot with kernel flag
> "iommu=off". Some hardware that used to work with older kernels may be
> broken and fails to work with modern kernels which default to using
> IOMMU.
>
> Note that disabling IOMMU is a heavy handed workaround, not a proper
> fix. For more information about IOMMU, see https://heiko-sieger.info
> /iommu-groups-what-you-need-to-consider/
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1749961
>
> Title:
>   xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
>   Controller
>
> Status in linux package in Ubuntu:
>   In Progress
> Status in linux source package in Trusty:
>   Won't Fix
> Status in linux source package in Xenial:
>   In Progress
> Status in linux source package in Bionic:
>   In Progress
> Status in linux source package in Focal:
>   Confirmed
> Status in linux package in Debian:
>   Confirmed
>
> Bug description:
>   It was observed that while trying to use a 4K USB webcam connected to
>   USB port provided by ASMedia ASM1142 USB 3.1 Controller, the webcam
>   does not work and kernel log shows the following messages:
>
>   [431.928016] xhci_hcd :12:00.0: ERROR Transfer event TRB DMA ptr not
> part of current TD ep_index 2 comp_code 13
>   [431.928021] xhci_hcd :12:00.0: Looking for event-dma
> 003f3330e020 trb-start 003f3330e000 trb-end 003f3330e000
> seg-start 003f3330e000 seg-end 003f3330eff0
>   [431.928024] xhci_hcd :12:00.0: ERROR Transfer event TRB DMA ptr not
> part of current TD ep_index 2 comp_code 13
>   [431.928026] xhci_hcd :12:00.0: Looking for event-dma
> 003f3330e030 trb-start 003f3330e000 trb-end 003f3330e000
> seg-start 003f3330e000 seg-end 003f3330eff0
>   [431.928027] xhci_hcd :12:00.0: ERROR Transfer event TRB DMA ptr not
> part of current TD ep_index 2 comp_code 13
>   [431.928029] xhci_hcd :12:00.0: Looking for event-dma
> 003f3330e050 trb-start 003f3330e000 trb-end 003f3330e000
> seg-start 003f3330e000 seg-end 003f3330eff0
>   [431.928386] xhci_hcd :12:00.0: ERROR Transfer event TRB DMA ptr not
> part of current TD ep_index 2 comp_code 13
>
>   A similar issue was already reported on Launchpad:
>   https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1667750
>
>   The fix to this issue seems to be the following patch:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9da5a109
>
>   Tests in our scenario with this patch proved still broken. Our next
>   approach is to modify the patch a bit and re-test.
>
>   This LP will be used to document our progress in the investigation.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions
>

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-06-23 Thread Mikko Rantalainen
Could somebody that is seeing this problem try to boot with kernel flag
"iommu=off". Some hardware that used to work with older kernels may be
broken and fails to work with modern kernels which default to using
IOMMU.

Note that disabling IOMMU is a heavy handed workaround, not a proper
fix. For more information about IOMMU, see https://heiko-sieger.info
/iommu-groups-what-you-need-to-consider/

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-05-14 Thread John Jackson
Hi Aki and Linux Community, I was able to get the camera and Yes it does
produce the issue reported above with an ASMedia 3142. I have captured a
lecroy trace that I can share, I hope this helps someone.  You can
observe the enumeration and timing between packets, as well as see where
the flow control error occurs.

** Attachment added: "FlowControlErrorWithCamera.zip"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+attachment/5371545/+files/FlowControlErrorWithCamera.zip

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-05-06 Thread Aki Nyrhinen
John,

Unfortunately the chip is unmarked except for the letters "V3" and a dot to
mark a corner.  It's QFP88 package of some kind.


On Wed, May 6, 2020, 11:55 AM John Jackson <1749...@bugs.launchpad.net>
wrote:

> Thanks Lior, and Aki. I fear the Razer core X chroma may require
> extensive setup and a graphics card that I do not have handy or am
> prepared to take on right now.  And I cannot get the IMX291 CMOS Camera
> overnight. Aki, do you mind looking at the Camera and trying decipher
> which device side usb controller or mcu is on the board, maybe I can
> find something similar that I can get over night.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1749961
>
> Title:
>   xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
>   Controller
>
> Status in linux package in Ubuntu:
>   In Progress
> Status in linux source package in Trusty:
>   Won't Fix
> Status in linux source package in Xenial:
>   In Progress
> Status in linux source package in Bionic:
>   In Progress
> Status in linux source package in Focal:
>   Confirmed
> Status in linux package in Debian:
>   Confirmed
>
> Bug description:
>   It was observed that while trying to use a 4K USB webcam connected to
>   USB port provided by ASMedia ASM1142 USB 3.1 Controller, the webcam
>   does not work and kernel log shows the following messages:
>
>   [431.928016] xhci_hcd :12:00.0: ERROR Transfer event TRB DMA ptr not
> part of current TD ep_index 2 comp_code 13
>   [431.928021] xhci_hcd :12:00.0: Looking for event-dma
> 003f3330e020 trb-start 003f3330e000 trb-end 003f3330e000
> seg-start 003f3330e000 seg-end 003f3330eff0
>   [431.928024] xhci_hcd :12:00.0: ERROR Transfer event TRB DMA ptr not
> part of current TD ep_index 2 comp_code 13
>   [431.928026] xhci_hcd :12:00.0: Looking for event-dma
> 003f3330e030 trb-start 003f3330e000 trb-end 003f3330e000
> seg-start 003f3330e000 seg-end 003f3330eff0
>   [431.928027] xhci_hcd :12:00.0: ERROR Transfer event TRB DMA ptr not
> part of current TD ep_index 2 comp_code 13
>   [431.928029] xhci_hcd :12:00.0: Looking for event-dma
> 003f3330e050 trb-start 003f3330e000 trb-end 003f3330e000
> seg-start 003f3330e000 seg-end 003f3330eff0
>   [431.928386] xhci_hcd :12:00.0: ERROR Transfer event TRB DMA ptr not
> part of current TD ep_index 2 comp_code 13
>
>   A similar issue was already reported on Launchpad:
>   https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1667750
>
>   The fix to this issue seems to be the following patch:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9da5a109
>
>   Tests in our scenario with this patch proved still broken. Our next
>   approach is to modify the patch a bit and re-test.
>
>   This LP will be used to document our progress in the investigation.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions
>


** Attachment added: "IMG_20200506_121654.jpg"
   
https://bugs.launchpad.net/bugs/1749961/+attachment/5367495/+files/IMG_20200506_121654.jpg

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-05-06 Thread John Jackson
Thanks Lior, and Aki. I fear the Razer core X chroma may require
extensive setup and a graphics card that I do not have handy or am
prepared to take on right now.  And I cannot get the IMX291 CMOS Camera
overnight. Aki, do you mind looking at the Camera and trying decipher
which device side usb controller or mcu is on the board, maybe I can
find something similar that I can get over night.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-05-06 Thread Aki Nyrhinen
Hi John,

The webcam in my trace is
https://www.amazon.com/gp/product/B07P7YSZV1/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8=1
The pcie card that looks identical to this one
https://www.newegg.com/model-orico-pa31-2p-pci-express-to-usb-card/p/17Z-0003-8?Description=usb%203.1%20_re=usb_3.1-_-9SIA1DS4TW2779-_-Product

I could mail you one of each if you're interested in working on a fix.

On Wed, May 6, 2020 at 8:50 AM John Jackson <1749...@bugs.launchpad.net>
wrote:

> Hi Ubuntu Community,
>
> I would like to find one of the COTS products that is reproducing this
> issue. From reading the thread above it looks like it is a camera and a
> usb ethernet adapter. Does anyone have more specifics or a product link
> where I can purchase these. I currently havent seen the issue with a Usb
> block device such as a JMicron nvme to usb device type c, but I will
> continue testing.
>
> Where can i find this camera?
> Camera 1080p60 USB3 webcam
> idVendor=15aa, idProduct=1555
>
>
> Thanks,
> John
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1749961
>
> Title:
>   xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
>   Controller
>
> Status in linux package in Ubuntu:
>   In Progress
> Status in linux source package in Trusty:
>   Won't Fix
> Status in linux source package in Xenial:
>   In Progress
> Status in linux source package in Bionic:
>   In Progress
> Status in linux source package in Focal:
>   Confirmed
> Status in linux package in Debian:
>   Confirmed
>
> Bug description:
>   It was observed that while trying to use a 4K USB webcam connected to
>   USB port provided by ASMedia ASM1142 USB 3.1 Controller, the webcam
>   does not work and kernel log shows the following messages:
>
>   [431.928016] xhci_hcd :12:00.0: ERROR Transfer event TRB DMA ptr not
> part of current TD ep_index 2 comp_code 13
>   [431.928021] xhci_hcd :12:00.0: Looking for event-dma
> 003f3330e020 trb-start 003f3330e000 trb-end 003f3330e000
> seg-start 003f3330e000 seg-end 003f3330eff0
>   [431.928024] xhci_hcd :12:00.0: ERROR Transfer event TRB DMA ptr not
> part of current TD ep_index 2 comp_code 13
>   [431.928026] xhci_hcd :12:00.0: Looking for event-dma
> 003f3330e030 trb-start 003f3330e000 trb-end 003f3330e000
> seg-start 003f3330e000 seg-end 003f3330eff0
>   [431.928027] xhci_hcd :12:00.0: ERROR Transfer event TRB DMA ptr not
> part of current TD ep_index 2 comp_code 13
>   [431.928029] xhci_hcd :12:00.0: Looking for event-dma
> 003f3330e050 trb-start 003f3330e000 trb-end 003f3330e000
> seg-start 003f3330e000 seg-end 003f3330eff0
>   [431.928386] xhci_hcd :12:00.0: ERROR Transfer event TRB DMA ptr not
> part of current TD ep_index 2 comp_code 13
>
>   A similar issue was already reported on Launchpad:
>   https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1667750
>
>   The fix to this issue seems to be the following patch:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9da5a109
>
>   Tests in our scenario with this patch proved still broken. Our next
>   approach is to modify the patch a bit and re-test.
>
>   This LP will be used to document our progress in the investigation.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions
>

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-05-06 Thread Lior Lobel
Hi John,

I see this issue in a Razer core X chroma, related to the Ethernet 
adapter. Obviously, this it is expansive to just buy for testing 
purposes. But just wanted to mention..

Best,

Lior

On Wed, May 6, 2020 at 15:44, John Jackson <1749...@bugs.launchpad.net> 
wrote:
> Hi Ubuntu Community,
> 
> I would like to find one of the COTS products that is reproducing this
> issue. From reading the thread above it looks like it is a camera and 
> a
> usb ethernet adapter. Does anyone have more specifics or a product 
> link
> where I can purchase these. I currently havent seen the issue with a 
> Usb
> block device such as a JMicron nvme to usb device type c, but I will
> continue testing.
> 
> Where can i find this camera?
> Camera 1080p60 USB3 webcam
> idVendor=15aa, idProduct=1555
> 
> 
> Thanks,
> John
> 
> --
> You received this bug notification because you are subscribed to the 
> bug
> report.
> 
> 
> Title:
>   xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
>   Controller
> 
> Status in linux package in Ubuntu:
>   In Progress
> Status in linux source package in Trusty:
>   Won't Fix
> Status in linux source package in Xenial:
>   In Progress
> Status in linux source package in Bionic:
>   In Progress
> Status in linux source package in Focal:
>   Confirmed
> Status in linux package in Debian:
>   Confirmed
> 
> Bug description:
>   It was observed that while trying to use a 4K USB webcam connected 
> to
>   USB port provided by ASMedia ASM1142 USB 3.1 Controller, the webcam
>   does not work and kernel log shows the following messages:
> 
>   [431.928016] xhci_hcd :12:00.0: ERROR Transfer event TRB DMA 
> ptr not part of current TD ep_index 2 comp_code 13
>   [431.928021] xhci_hcd :12:00.0: Looking for event-dma 
> 003f3330e020 trb-start 003f3330e000 trb-end 003f3330e000 
> seg-start 003f3330e000 seg-end 003f3330eff0
>   [431.928024] xhci_hcd :12:00.0: ERROR Transfer event TRB DMA 
> ptr not part of current TD ep_index 2 comp_code 13
>   [431.928026] xhci_hcd :12:00.0: Looking for event-dma 
> 003f3330e030 trb-start 003f3330e000 trb-end 003f3330e000 
> seg-start 003f3330e000 seg-end 003f3330eff0
>   [431.928027] xhci_hcd :12:00.0: ERROR Transfer event TRB DMA 
> ptr not part of current TD ep_index 2 comp_code 13
>   [431.928029] xhci_hcd :12:00.0: Looking for event-dma 
> 003f3330e050 trb-start 003f3330e000 trb-end 003f3330e000 
> seg-start 003f3330e000 seg-end 003f3330eff0
>   [431.928386] xhci_hcd :12:00.0: ERROR Transfer event TRB DMA 
> ptr not part of current TD ep_index 2 comp_code 13
> 
>   A similar issue was already reported on Launchpad:
>   
> 
>   The fix to this issue seems to be the following patch:
>   
> 
> 
>   Tests in our scenario with this patch proved still broken. Our next
>   approach is to modify the patch a bit and re-test.
> 
>   This LP will be used to document our progress in the investigation.
> 
> To manage notifications about this bug go to:
> 

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-05-06 Thread John Jackson
Hi Ubuntu Community,

I would like to find one of the COTS products that is reproducing this
issue. From reading the thread above it looks like it is a camera and a
usb ethernet adapter. Does anyone have more specifics or a product link
where I can purchase these. I currently havent seen the issue with a Usb
block device such as a JMicron nvme to usb device type c, but I will
continue testing.

Where can i find this camera?
Camera 1080p60 USB3 webcam
idVendor=15aa, idProduct=1555


Thanks,
John

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-05-05 Thread Guilherme G. Piccoli
** Changed in: linux (Ubuntu Focal)
   Status: New => Confirmed

** Changed in: linux (Ubuntu Focal)
   Importance: Undecided => Medium

** Changed in: linux (Ubuntu Focal)
 Assignee: (unassigned) => Guilherme G. Piccoli (gpiccoli)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-05-05 Thread Guilherme G. Piccoli
** Also affects: linux (Ubuntu Focal)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-05-05 Thread Guilherme G. Piccoli
Awesome Bryan, thanks for your kind words!!
I'll nominate this bug for Focal then.
Cheers,


Guilherme

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-05-04 Thread Bryan Walsh
Hi Guilherme,

First, congrats on the release of Ubuntu 20.04.  I've been following
ubuntu for over 15 years now and it is one of the most polished releases
of seen. Job well done.

...but, yes I'm still seeing the same behavior on ubuntu 20.04.

Thanks,

Bryan

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-05-04 Thread Guilherme G. Piccoli
Hi John and all, thanks for updating logs and enhancing the report! Due
to a lot of other work, and the nature of this problem (being a FW issue
that we'd try to alleviate using a hack in linux), I wasn't able to work
the tentative hack approach yet.

The issue was "resolved" through a FW update by ASMedia, but this was
only worked with a specific motherboard vendor, not as a general
release. This is the problem with FW fixes...they are quite scattered
and vendor-depending. So, can you John or any of the reporters try to
reproduce the problem with:

(a) Ubuntu 20.04, just released?
(b) Ubuntu 18.04 running the current HWE kernel (5.3)?

That'd be good data points. Also, if you could try Ubuntu 20.04 with latest 
mainline kernel (from [0]), that would be a gigantic help!
Thanks in advance,


Guilherme


[0] https://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=D

** No longer affects: linux (Ubuntu Artful)

** Changed in: linux (Ubuntu Trusty)
   Status: In Progress => Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-05-01 Thread John Jackson
Hi Ubuntu and Linux Team, I have been observing the attached dmesg
output with several different ASMedia 3142 Cards whilst doing usb bulk
transfers using the linux read and write api's to a usb device. This
tends to break the software invoking said API's.  I am using Ubuntu
server 18.04.3 with kernel 4.15.0-55-generic. I see this issue with both
Intel and AMD based computers.

Has there been an update or patch or change in priory that might resolve
this bug?

[155247.078810] xhci_hcd :07:00.0: ERROR Transfer event TRB DMA ptr not 
part of current TD ep_in
dex 2 comp_code 1
[155247.083037] xhci_hcd :07:00.0: Looking for event-dma 000892c11000 
trb-start 000892c0
8fe0 trb-end 000892c08fe0 seg-start 000892c08000 seg-end 
000892c08ff0
[155247.091767] xhci_hcd :07:00.0: ERROR Transfer event TRB DMA ptr not 
part of current TD ep_in
dex 2 comp_code 1
[155247.096313] xhci_hcd :07:00.0: Looking for event-dma 000892c11010 
trb-start 000892c0
8fe0 trb-end 000892c08fe0 seg-start 000892c08000 seg-end 
000892c08ff0
[155247.106027] xhci_hcd :07:00.0: ERROR Transfer event TRB DMA ptr not 
part of current TD ep_in
dex 2 comp_code 1
[155247.110869] xhci_hcd :07:00.0: Looking for event-dma 000890436000 
trb-start 000893b7
3fe0 trb-end 000893b73fe0 seg-start 000893b73000 seg-end 
000893b73ff0
[155247.120830] xhci_hcd :07:00.0: ERROR Transfer event TRB DMA ptr not 
part of current TD ep_in
dex 2 comp_code 1
[155247.125985] xhci_hcd :07:00.0: Looking for event-dma 000890436010 
trb-start 000893b7
3fe0 trb-end 000893b73fe0 seg-start 000893b73000 seg-end 
000893b73ff0

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-04-03 Thread Aki Nyrhinen
Beyond all of that, does anyone happen to know of a USB3 card that does work 
(on Linux)?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-04-03 Thread Aki Nyrhinen
I'm also getting the above errors when trying to read from a 1080p60
USB3 webcam. It seems I have some information not mentioned above.

[8.822044] usb 4-2: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[8.851879] usb 4-2: New USB device found, idVendor=15aa, idProduct=1555, 
bcdDevice=10.02
[8.851883] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[8.851886] usb 4-2: Product: 3.0 USB Camera

When opening /dev/video0 with an application, I immediatelly get the
following error repeatedly (but event-dma increments by 0x10 each line),
as seems to be the case for everyone.

[   54.007465] xhci_hcd :01:00.0: ERROR Transfer event TRB DMA ptr not part 
of current TD ep_index 2 comp_code 13
[   54.010154] xhci_hcd :01:00.0: Looking for event-dma 000849690010 
trb-start 00084969 trb-end 00084969 seg-start 00084969 
seg-end 000849690ff0

I added some previously posted diagnostic code from Mathias Nyman to
drivers/usb/host/xhci-ring.c, and got the following, which is similar to
previously reported bug with some ASMedia chip, but seems to be missing
transfer events much more frequently. It seems to be missing a "Transfer
Event" after each "Normal" packet. It's not about the LINK TRB because
it doesn't work for long enough to get to it (there's plenty of zeroed
out descriptors at the end of both rings, which I've omitted).

This is likely an ASMedia firmware/hardware issue, though this card (&
camera) works fine on the same machine when running Windows. I saw
mentions that ASMedia would be releasing a firmware fix, but I've
updated to what I believe to be the latest and it didn't help at all.
Has anyone found a firmware that works?

Attached dmesg also contains the event & endpoint ring dumps


** Attachment added: "asm1142-trace.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+attachment/5345871/+files/asm1142-trace.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2020-02-28 Thread Danny Pacheco
I am seeing this same issue on my system. Any help would be greatly
appreciated. I am using Ubuntu 16.04 with the 4.15.0-88-generic kernel.
I have seen it on both host controllers on the motherboard.

Here is the  info for the host controllers.

00:14.0 USB controller [0c03]: Intel Corporation 200 Series/Z370 Chipset Family 
USB 3.0 xHCI Controller [8086:a2af] (prog-if 30 [XHCI])
Subsystem: ASRock Incorporation Device [1849:a2af]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
SERR- TAbort- SERR- https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2019-12-21 Thread Erik Davidson
I also wanted to mention that in my case after the issue is triggered I
can unplug the cable from the ethernet jack on the eGPU I have, then
plug it back in and it'll work again for a little bit until I trigger it
again.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2019-12-21 Thread Erik Davidson
Guilherme, I've attached a dmesg that ends as soon as my ethernet in the
egpu disconnects.  It's just a matter of running something like
"fast.com" a couple times to trigger it.

I'd also be willing to try a debug kernel or whatever else I can do to
help get this fixed!

** Attachment added: "egpu_debug.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+attachment/5314492/+files/egpu_debug.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2019-12-15 Thread Bryan Walsh
Sounds good.  I'm not sure if matters or not but, I'm now on Ubuntu
19.10.  I'm seeing the exact same behavior as before.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2019-12-13 Thread Guilherme G. Piccoli
Thank you Bryan! We can try the "hackish" approach proposed by Mathias
in that thread..let me study the code and get back to you in next few
weeks!

Cheers,


Guilherme

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2019-12-13 Thread Bryan Walsh
I would be willing to try a debug kernel.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2019-12-13 Thread Guilherme G. Piccoli
Thanks a lot @kaihengfeng! Quite great discussion with Mathias - it
seems there's a potential quirk for IN packets, but the right approach
indeed is getting the HW fixed by ASMedia.

Cheers,


Guilherme

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2019-12-13 Thread Kai-Heng Feng
For reference, here's the analysis from xHCI maintainer:
https://lore.kernel.org/linux-usb/3449c957-ce20-baa3-ca97-63aff9ffa...@linux.intel.com/

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2019-12-13 Thread Guilherme G. Piccoli
Hi Erik, thanks for your report! Can you attach a dmesg right after the issue 
reproduces?
Also, are you willing to run debug kernels in your machine?

The problem was narrowed down to a FW issue fixed by ASMedia in form of
firmware upgrade but this seems to not be available from ASMedia
themselves; instead, the motherboard vendor usually is the path for
obtaining such fix.

That said, I'd be really glad if we could quirk this from kernel
perspective to get the fix to a wider audience, not relying on
unresponsive motherboard vendors. So let me know if you (also applies to
anybody that reported the issue) are willing to run debug kernels.

Cheers,


Guilherme

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2019-12-08 Thread Erik Davidson
I'm also seeing this issue on a fresh install of Ubuntu 19.10 with a
Razer Core X Chroma and a Lenovo X1 Extreme Gen2. I was seeing it on a
fully updated Arch Linux install and installed Ubuntu in hopes it would
fix the issue. Here's some info from my current install. Let me know if
you need anything else!

uname:
Linux fate 5.3.0-24-generic #26-Ubuntu SMP Thu Nov 14 01:33:18 UTC 2019 x86_64 
x86_64 x86_64 GNU/Linux

I've attached all the same info you were asking for earlier.

** Attachment added: "egpu_debug.txt"
   
https://bugs.launchpad.net/ubuntu/artful/+source/linux/+bug/1749961/+attachment/5310852/+files/egpu_debug.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2019-09-30 Thread Guilherme G. Piccoli
So Felix, can you provide more details like the machine or device you're
using, a dmesg showing the problem, and a bit more information about the
device itself? I guess you're the first reporter with a "SATA" device
showing that.

Thanks,


Guilherme

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2019-09-28 Thread Felix Moreno
having same problem with Bus 002 Device 004: ID 174c:55aa ASMedia
Technology Inc. Name: ASM1051E SATA 6Gb

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2019-05-26 Thread Alex Lourenco
I am experiencing the exact same issue first reported in this LP
(ASMedia ASM1142 USB 3.1 Controller with a Logitech Brio 4k, ERROR
Transfer event TRB DMA ptr not part of current TD ...). In my case the
controller is provided by a StarTech.com 4 Port USB 3.1 PCIe Card 3x
USB-A and 1x USB-C [PEXUS313AC2V].

While searching online I found a couple of LP's and forum posts with
similar issues. The common factor seems to be high speed usb devices
(e.g 4k webcam, usb ethernet adapters) connected to ASMedia controllers.

I have compiled 5.0.0 with a variety of existing quirks but nothing has
done the trick so far. There are a couple of ASMedia firmwares posted on
station-drivers. Unfortunately none of them seem to fix the issue
either.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2019-05-06 Thread Guilherme G. Piccoli
Thanks Gabe! I agree with you, would be really nice to have a quirk for that. 
It would be more easy to analyze that possibility with a datasheet for this 
adapter, which unfortunately I don't have.
I'm on vacation until next week, I'll try to discuss that in linux-usb when I'm 
back, and pursue a kernel quirk instead of firmware-only fix.

@Bryan, thanks for checking with the vendor, let us know the outcome.
Cheers,


Guilherme

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2019-05-04 Thread Bryan Walsh
In attempt to update the firmware I installed the razer software on my
newly created windows partition, to see if it could be updated through
there.  No luck.

I emailed Razer support to ask about obtaining updated firmware.  I'll
let everyone know what I hear back.

And yes, "enx90203a19dcb6" is the problematic interface.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2019-05-03 Thread Gabe Esposito
I'm also experiencing the same issue with the ASM1142 controller on the
Core X Chroma and can reproduce consistently. I'm running kernel 5.0.9.

Guilherme, thanks for your work diagnosing this. This device is sold by
Razer. I will try and reach out but they do not claim Linux support on
any of their devices so I worry this may go unfixed. Barring a firmware
fix, is there any hope of this being fixed with a quirk, as the other
controller was? I realize this LP is not the ideal place for such a fix
to take place, but I am happy to participate in finding a solution.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2019-04-29 Thread Guilherme G. Piccoli
Great Bryan, the model of your USB controller is the same reported in
this LP; also, given the outputs you provided, the network interface
"enx90203a19dcb6" in under one of those USB controllers - you mentioned
you see the TRB DMA errors and the interface stops responding. Is the
problematic interface that one, "enx90203a19dcb6" ?

Who is the vendor of your device? I'd suggest you to seek help from
them, mentioning this LP and that ASMedia may have a potential firmware
fix for the issue.

Thanks,


Guilherme

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2019-04-26 Thread Bryan Walsh
Please see attached log for the outputs that you requested.

** Attachment added: "egpu_debug.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+attachment/5259377/+files/egpu_debug.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2019-04-26 Thread Bryan Walsh
Please see attached log for the outputs that you requested.

** Attachment added: "egpu_debug.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+attachment/5259376/+files/egpu_debug.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2019-04-25 Thread Guilherme G. Piccoli
Hi Bryan, thanks for the report. It could be the same issue, can you
provide the full dmesg, and also the outputs of the following commands:
"lspci -nnvvv", "lspci -t" and "ls -l /sys/class/net"?

The issue was fixed for the first reporter via a FW update in the
ASMedia adapter; unfortunately this FW update comes from the vendor, so
the way of getting it varies according to the HW presenting the problem.

Cheers,


Guilherme

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2019-04-24 Thread Bryan Walsh
Hello,

I think I am seeing the same or related issue with the ASM1142
controller on my Razer Core Chroma EGPU enclosure.  I'm running Ubuntu
19.04, kernel version 5.0.0-13-generic.  Ethernet on the enclosure stops
working while downloading large files.  Dmesg produces the following
error messages:

[  569.641475] xhci_hcd :0f:00.0: ERROR Transfer event TRB DMA ptr not part 
of current TD ep_index 4 comp_code 13
[  569.641487] xhci_hcd :0f:00.0: Looking for event-dma 00048d9c5770 
trb-start 00048d9c5750 trb-end 00048d9c5750 seg-start 00048d9c5000 
seg-end 00048d9c5ff0

lspci output:

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor 
Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 
v5/6th Gen Core Processor Thermal Subsystem (rev 08)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 
6th/7th Gen Core Processor Gaussian Mixture Model
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI 
Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP 
Thermal subsystem (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI 
#1 (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 
(rev f1)
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 
(rev f1)
00:1d.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #9 
(rev f1)
00:1f.0 ISA bridge: Intel Corporation Intel(R) 100 Series Chipset Family LPC 
Controller/eSPI Controller - 9D4E (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (4) I219-V 
(rev 21)
02:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)
04:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD 
Controller SM981/PM981
05:00.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) 
[Alpine Ridge 4C 2016] (rev 02)
06:00.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) 
[Alpine Ridge 4C 2016] (rev 02)
06:01.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) 
[Alpine Ridge 4C 2016] (rev 02)
06:02.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) 
[Alpine Ridge 4C 2016] (rev 02)
06:04.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) 
[Alpine Ridge 4C 2016] (rev 02)
07:00.0 System peripheral: Intel Corporation JHL6540 Thunderbolt 3 NHI (C step) 
[Alpine Ridge 4C 2016] (rev 02)
08:00.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) 
[Alpine Ridge 4C 2016] (rev 02)
09:01.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) 
[Alpine Ridge 4C 2016] (rev 02)
09:04.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) 
[Alpine Ridge 4C 2016] (rev 02)
0a:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 
6GB] (rev a1)
0a:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller 
(rev a1)
0b:00.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) 
[Alpine Ridge 4C 2016] (rev 02)
0c:00.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) 
[Alpine Ridge 4C 2016] (rev 02)
0c:01.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) 
[Alpine Ridge 4C 2016] (rev 02)
0c:02.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) 
[Alpine Ridge 4C 2016] (rev 02)
0d:00.0 USB controller: ASMedia Technology Inc. ASM1142 USB 3.1 Host Controller
0e:00.0 USB controller: ASMedia Technology Inc. ASM1142 USB 3.1 Host Controller
0f:00.0 USB controller: ASMedia Technology Inc. ASM1142 USB 3.1 Host Controller

Thanks,

Bryan

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-10-05 Thread Guilherme G. Piccoli
Hi Roy, thanks for your quick response. First thing, I'd like to ask you
to attach the output of "lspci -vvv" and "dmidecode" in this LP so we
can validate the adapters and be sure they are exactly the same, and
also the motherboard type. Run both commands as root user.

After that, i'll ask you to reproduce the issue and attach the output of
"dmesg" command right after reproduction. If you can also elaborate more
about the test you're running, I'd really be glad.

I'll then provide you custom commands to use the kernel trace system to infer 
more about the issue. One final thing: are you willing to test with mainline 
kernel in order to check if there's some upstream fix for your instance of the 
issue?
If so, you can get it here: 
https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/unstable
This PPA provides a build from kernel 4.18.

Thanks in advance,


Guilherme

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-10-05 Thread Roy Thompson
Hi Guilherme,

Thanks for the response. I have several (3) quad port ASMedia 2142
PCIe/USB 3.1 cards installed in a Dell R740 rack server.  I am using the
standard Ubuntu 18.04 kernel (Linux dell-PowerEdge-R740
4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64
x86_64 x86_64 GNU/Linux).

For one of my applications, it runs a loop that opens and closes a high
speed connection to a USB device connected through the ASMedia board.
After this goes on for several minutes without any issues, I see this in
dmesg:

[Oct 5 10:12] xhci_hcd :be:00.0: WARN Set TR Deq Ptr cmd failed due to 
incorrect slot or ep state.
[  +3.418076] xhci_hcd :be:00.0: WARN Successful completion on short TX
[  +0.35] xhci_hcd :be:00.0: ERROR Transfer event TRB DMA ptr not part 
of current TD ep_index 12 comp_code 1
[  +0.03] xhci_hcd :be:00.0: Looking for event-dma 001fe9759610 
trb-start 001fe9759620 trb-end 001fe9759620 seg-start 001fe9759000 
seg-end 001fe9759ff0

This is then followed shortly after by several kernel dump messages, and
then the whole system starts behaving erratically, requiring a hard
reboot to recover.

The condition is easy for me to reproduce and I will happily provide any
logs that may be of use to help debug this.  Please just let me know
what you would like and how to get them (as I am not a kernel expert).

Thanks,
Roy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-10-05 Thread Guilherme G. Piccoli
Hi Roy, thanks for the report. What is your motherboard? What kernel are you 
running? And what tests are triggering this issue for you?
If you have logs, it'll be pretty useful.

Maybe it's a similar but different case..or the logs may help to confirm
it's exact the same issue.

ASMedia seems to have a FW fix but that depends on your motherboard
vendor to provide it. They don't provide the fix themselves...it needs
some cooking from the vendor, to match subsystem IDs and whatnot.

Cheers,


Guilherme

** Changed in: linux (Debian)
   Status: New => Confirmed

** Changed in: linux (Debian)
 Assignee: (unassigned) => Guilherme G. Piccoli (gpiccoli)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-10-04 Thread Roy Thompson
I am running into this same issue with an ASMedia 2142 USB board.  Was a
fix ever identified?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-08-27 Thread imperia via ubuntu-bugs
this is dmidecode output of my machine, in case the fix is FW related,
it may be useful in order to contact the motherboard vendor

** Attachment added: "dmidecode.out"
   
https://bugs.launchpad.net/ubuntu/artful/+source/linux/+bug/1749961/+attachment/5181405/+files/dmidecode.out

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-04-11 Thread imperia via ubuntu-bugs
Hello,

I am unable to test with the kernel you provided, because my tuner card
doesn't have driver in mainline kernel tree. So I have to compile it
myself and I need kernel headers for this.

So I compiled kernel 4.16 from debian linux-source-4.16 package and
applied the patch you provided:

>From dd0375ffba55172194999d40b35344e9dc2682df Mon Sep 17 00:00:00 2001
From: "Guilherme G. Piccoli" 
Date: Wed, 11 Apr 2018 11:04:13 +
Subject: [PATCH] xhci: Add quirk to ASMedia 0x1242 adapter to avoid BEI

Signed-off-by: Guilherme G. Piccoli 
---
 drivers/usb/host/xhci-pci.c | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
index d9f831b..0654461 100644
--- a/drivers/usb/host/xhci-pci.c
+++ b/drivers/usb/host/xhci-pci.c
@@ -213,6 +213,12 @@ static void xhci_pci_quirks(struct device *dev, struct 
xhci_hcd *xhci)
xhci->quirks |= XHCI_TRUST_TX_LENGTH;

if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
+   pdev->device == 0x1242) {
+   xhci->quirks |= XHCI_AVOID_BEI;
+   pr_warn("QUIRK: XHCI_AVOID_BEI");
+   }
+
+   if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI)
xhci->quirks |= XHCI_ASMEDIA_MODIFY_FLOWCONTROL;

--
2.7.4

Compiled my tuner card driver now and I am testing.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-04-10 Thread Guilherme G. Piccoli
Hi Imperia, I built a mainline kernel (version 4.16) with a different
quirk that I think might help here. Can you test it? Thanks in advance!


Instructions (run all as root):

1) wget people.canonical.com/~gpiccoli/imperia416.tgz
2) mv imperia416.tgz /
3) tar -zxf imperia416.tgz
4) update-initramfs -c -k 4.16.0-imperia+

Now that's important: if you have access to some serial console in the
machine (or if you have physical access), you can reboot into this new
kernel. In case _you only have ssh_, I'd suggest to remove the kernel
boot entry from grub, and boot through kexec for safety reasons:

a) Remove boot entries from grub.cfg (you can copy away vmlinuz-4.16-imperia+ 
to some place outside /boot and run "update-grub" for this)
b) apt-get install kexec-tools
c) kexec vmlinuz-4.16-imperia+ --initrd initrd.img-4.16-imperia+ 
--append="$(cat /proc/cmdline)"


After machine (hopefully!) boot to the new kernel, check in dmesg if the quirk 
is there:
#$ dmesg|grep QUIRK
[0.813486] QUIRK: XHCI_AVOID_BEI

If you can see that output ("QUIRK: XHCI_AVOID_BEI"), then the quirk was 
applied.
Now, just need to try to reproduce the issue again.

Thanks a lot,


Guilherme

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-04-02 Thread Guilherme G. Piccoli
Thanks again Imperia, the traces are fine. They're only 25MB, shouldn't
have caused any kind of disk issues, like out of space condition. Also,
I'd like to see the correlated kernel log to match the problematic TRBs
from the kernel log with trace information. Can you provide me the
relevant kern.log file?

I've already downloaded the traces from your server, in case you want to
remove the file.

About the SSH, thanks for the offering and let's talk on IRC in case I
need it. I'll try the logs first, not sure they're enough for me to
understand the issue completely.

Cheers,


Guilherme

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-04-02 Thread imperia via ubuntu-bugs
Hello,

I think I am ready with the trace log. Hopefully it is full, because machine 
run out of disk space :)
http://imperia.mine.nu/trace1.log.bz2
Interesting is that it took ~12 hours to crash it this time.

The problem with ssh access is that this is virtual machine under XEN
and when you reboot it, the USB controller is gone(not assigned to
virtual machine anymore). I have to re-assign the USB controller for
passthrough from xen host. (this is xen bug I think, it wasn't like this
before).

This is what I do when I have to restart vdr virtual machine:
xl pci-assignable-remove 03:00.0
xl pci-assignable-add 03:00.0
xl create /etc/xen/vdr.cfg

Anyway we can get in touch on irc and I can do restarts for you.

BTW, I shutdown the whole xen server. Then I turn off the power button
on PSU and pressed the power button on the case to discharge any
electricity left and put it in consistent state before getting the trace
logs.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-03-29 Thread Guilherme G. Piccoli
Wow Imperia, you're being really helpful here, thank you very much!

To enable traces, these are the instructions I've provided to other
people affected so far:

0) Reboot the machine in order to put it in a consistent state;
1) echo "module xhci_hcd +flpt" > /sys/kernel/debug/dynamic_debug/control
2) echo nop > /sys/kernel/debug/tracing/current_tracer
3) echo 81920 > /sys/kernel/debug/tracing/buffer_size_kb
4) echo 0 > /sys/kernel/debug/tracing/trace
5) echo 1 > /sys/kernel/debug/tracing/tracing_on
6) echo 1 > /sys/kernel/debug/tracing/events/xhci-hcd/enable

After reproduce the issue, you should collect
/sys/kernel/debug/tracing/trace. Problem is that the file might be huge,
much larger than the kernel log you provided for instance.

About the SSH access, I'm interested in getting it next week, if it
doesn't annoy you too much. It'll be really helpful, but I might need to
reboot the machine.

Oh, I've downloaded the logs from your website, so you can delete it now.
Cheers,


Guilherme

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-03-29 Thread imperia via ubuntu-bugs
** Also affects: linux (Debian)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-03-29 Thread imperia via ubuntu-bugs
echo xhci-hcd >> /sys/kernel/debug/tracing/set_event
(tail -F -n0 /var/log/kern.log &) | grep -q "TRB DMA"
cp /var/log/kern.log /home/imperia/log1.log

Is this correct command to get traces?
I will run it in advance. 

Somebody told me to run this before when I was looking for help.

BTW did you download the full logs so I can remove it from web page?

I will can provide ssh access to box affected if needed.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-03-29 Thread Guilherme G. Piccoli
Thanks a lot Imperia! It's indeed the same PCI adapter, and it's even
better you're running an upstream kernel like this.

I'll analyze your logs in order to match with the ones I have here.
I might need some xhci traces to understand the TRBs operations (like the 
enqueue and completion of TRBs). I'll comment here in case I need it.

Cheers,


Guilherme

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-03-29 Thread imperia via ubuntu-bugs
Mar 29 20:20:03 vdr kernel: [119370.230528]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: Removing canceled TD starting at 0x2ae36c590 (dma).
Mar 29 20:20:03 vdr kernel: [119370.230533]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: Finding endpoint context
Mar 29 20:20:03 vdr kernel: [119370.230537]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: Cycle state = 0x0
Mar 29 20:20:03 vdr kernel: [119370.230542]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: New dequeue segment = 573583cc (virtual)
Mar 29 20:20:03 vdr kernel: [119370.230547]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: New dequeue pointer = 0x2ae36c5a0 (DMA)
Mar 29 20:20:03 vdr kernel: [119370.230553]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: Set TR Deq Ptr cmd, new deq seg = 573583cc (0x2ae36c000 
dma), new deq ptr = 41e92668 (0x2ae36c5a0 dma), new cycle = 0
Mar 29 20:20:03 vdr kernel: [119370.230558]  xhci_ring_cmd_db:282: 
xhci_hcd :00:00.0: // Ding dong!
Mar 29 20:20:03 vdr kernel: [119370.230631] [27868] xhci_dbg_trace:31: xhci_hcd 
:00:00.0: Cancel URB 60641c50, dev 2, ep 0x82, starting at offset 
0x2ae36c5a0
Mar 29 20:20:03 vdr kernel: [119370.230638] [27868] xhci_ring_cmd_db:282: 
xhci_hcd :00:00.0: // Ding dong!
Mar 29 20:20:03 vdr kernel: [119370.230650]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: Successful Set TR Deq Ptr cmd, deq = @2ae36c5a0
Mar 29 20:20:03 vdr kernel: [119370.230700]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: Removing canceled TD starting at 0x2ae36c5a0 (dma).
Mar 29 20:20:03 vdr kernel: [119370.230705]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: Finding endpoint context
Mar 29 20:20:03 vdr kernel: [119370.230710]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: Cycle state = 0x0
Mar 29 20:20:03 vdr kernel: [119370.230715]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: New dequeue segment = 573583cc (virtual)
Mar 29 20:20:03 vdr kernel: [119370.230719]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: New dequeue pointer = 0x2ae36c5b0 (DMA)
Mar 29 20:20:03 vdr kernel: [119370.230725]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: Set TR Deq Ptr cmd, new deq seg = 573583cc (0x2ae36c000 
dma), new deq ptr = 50070757 (0x2ae36c5b0 dma), new cycle = 0
Mar 29 20:20:03 vdr kernel: [119370.230730]  xhci_ring_cmd_db:282: 
xhci_hcd :00:00.0: // Ding dong!
Mar 29 20:20:03 vdr kernel: [119370.230798] [27868] xhci_dbg_trace:31: xhci_hcd 
:00:00.0: Cancel URB 588cca08, dev 2, ep 0x82, starting at offset 
0x2ae36c5b0
Mar 29 20:20:03 vdr kernel: [119370.230805] [27868] xhci_ring_cmd_db:282: 
xhci_hcd :00:00.0: // Ding dong!
Mar 29 20:20:03 vdr kernel: [119370.230816]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: Successful Set TR Deq Ptr cmd, deq = @2ae36c5b0
Mar 29 20:20:03 vdr kernel: [119370.230865]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: Removing canceled TD starting at 0x2ae36c5b0 (dma).
Mar 29 20:20:03 vdr kernel: [119370.230870]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: Finding endpoint context
Mar 29 20:20:03 vdr kernel: [119370.230874]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: Cycle state = 0x0
Mar 29 20:20:03 vdr kernel: [119370.230879]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: New dequeue segment = 573583cc (virtual)
Mar 29 20:20:03 vdr kernel: [119370.230884]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: New dequeue pointer = 0x2ae36c5c0 (DMA)
Mar 29 20:20:03 vdr kernel: [119370.230910]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: Set TR Deq Ptr cmd, new deq seg = 573583cc (0x2ae36c000 
dma), new deq ptr = a598b646 (0x2ae36c5c0 dma), new cycle = 0
Mar 29 20:20:03 vdr kernel: [119370.230918]  xhci_ring_cmd_db:282: 
xhci_hcd :00:00.0: // Ding dong!
Mar 29 20:20:03 vdr kernel: [119370.231023]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: Successful Set TR Deq Ptr cmd, deq = @2ae36c5c0
Mar 29 20:20:03 vdr kernel: [119370.231041] [27868] xhci_dbg_trace:31: xhci_hcd 
:00:00.0: Cancel URB 6bc9f6cb, dev 2, ep 0x82, starting at offset 
0x2ae36c5c0
Mar 29 20:20:03 vdr kernel: [119370.231051] [27868] xhci_ring_cmd_db:282: 
xhci_hcd :00:00.0: // Ding dong!
Mar 29 20:20:03 vdr kernel: [119370.231121]  handle_tx_event:2385: 
xhci_hcd :00:00.0: Babble error for slot 1 ep 0 on endpoint
Mar 29 20:20:03 vdr kernel: [119370.231126] xhci_hcd :00:00.0: ERROR 
Transfer event TRB DMA ptr not part of current TD ep_index 0 comp_code 3
Mar 29 20:20:03 vdr kernel: [119370.231211] xhci_hcd :00:00.0: Looking for 
event-dma 0002afce2120 trb-start 0002afce2380 trb-end 0002afce23a0 
seg-start 0002afce2000 seg-end 0002afce2ff0
Mar 29 20:20:03 vdr kernel: [119370.231327]  handle_tx_event:2358: 
xhci_hcd :00:00.0: Stopped on Transfer TRB for slot 1 ep 4
Mar 29 20:20:03 vdr kernel: [119370.231340]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: Removing canceled TD starting at 0x2ae36c5c0 (dma).
Mar 29 20:20:03 vdr kernel: [119370.231356]  xhci_dbg_trace:31: xhci_hcd 
:00:00.0: Finding endpoint context
Mar 29 

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-03-29 Thread imperia via ubuntu-bugs
Hello,

00:00.0 USB controller [0c03]: ASMedia Technology Inc. ASM1142 USB 3.1
Host Controller [1b21:1242]

Actually I am on debian buster. I am running kernel 4.16-rc6 from
experimental repository.

I am running program for watching satellite channels called vdr.
When I am not watching TV, while idle, every few minutes vdr scans for channel 
list updates from satellites. It is safe to say that tuner is occupied every 
few minutes for a scan, but not occupied with bandwidth like when watching TV. 
While in this mode vdr is able to crash the driver in ~6-30 hours.

There is program that you use to initially create your channels list for
vdr. When I use it I am able to crash the driver in ~1-2 hours.

But when I just watch one channel and don't change it for hours, driver
is least likely to crash.

I think something in consecutive opening (initializing) of the usb port/driver 
forces this error.
Because the program that scans for channels crash it much faster.
This program work like this:

:go
open port
scan some frequency
write to file new channels
close port
goto go


I made this script that I will use to capture the log.

echo "module xhci_hcd +flpt" > /sys/kernel/debug/dynamic_debug/control
(tail -F -n0 /var/log/kern.log &) | grep -q "TRB DMA"
cp /var/log/kern.log /home/imperia/log1.log

And I will run initial channels list scan to force it faster.

I will be back later with the logs.
Thanks for your help.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-03-28 Thread Guilherme G. Piccoli
Nice imperia, thanks for the report here. First we need to be sure it's exactly 
the same adapter.
Can you provide the the output of "lspci -nn" ?

Then, if it's the same adapter:

0) Which Ubuntu version are you running? Which kernel version are you using? 
Can you try in the latest 4.13 for Xenial? (or even better, the hwe-edge 4.15)
Instructions to run the latest 4.15 version: 
https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/unstable?field.series_filter=xenial

1) You said "after some hours" - can you provide some details? You've
been using the USB tuner for like 2 hours? 12 hours? The tuner is in
constant use and suddenly the issue happens?

2) If possible, enable xhci dynamic debug and provide logs after the issue; in 
order to do this, run the following command as root:
echo "module xhci_hcd +flpt" > /sys/kernel/debug/dynamic_debug/control

After issue reproduces, collect the /var/log/kern.log file.

Thanks,


Guilherme

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-03-28 Thread imperia via ubuntu-bugs
Hello,
Looks like I am having the same problem.

After some hours(random time) my USB 3.1 asmedia controller crashes the driver 
with following error:
[  873.661534] xhci_hcd :00:00.0: ERROR Transfer event TRB DMA ptr not part 
of current TD ep_index 0 comp_code 3
[  873.661629] xhci_hcd :00:00.0: Looking for event-dma 0002722ed630 
trb-start 0002722ed9b0 trb-end 0002722ed9d0 seg-start 0002722ed000 
seg-end 0002722edff0
[  875.673409] xhci_hcd :00:00.0: WARN Set TR Deq Ptr cmd failed due to 
incorrect slot or ep state.
I am struggling with this error for more than year. Its very annoying to have 
to restart the PC every few hours. USB tuner card is connected to the port.
I would like to provide whatever information and support is necessary to fix 
this damn bug. Logs, ssh access to the affected box and everything else what is 
needed.

Please ask me here or write to my e mail imperia777_yahoo.com
Thanks.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-02-20 Thread Joseph Salisbury
** Tags added: kernel-da-key

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-02-20 Thread Guilherme G. Piccoli
Patch was modified (by adding the PCI_ID of device 1142A, which
confusingly is 1242!) and still the problem reproduces.

New approaches to be tried soon.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-02-16 Thread Guilherme G. Piccoli
** Changed in: linux (Ubuntu Trusty)
   Importance: Undecided => Medium

** Changed in: linux (Ubuntu Trusty)
   Status: New => In Progress

** Changed in: linux (Ubuntu Trusty)
 Assignee: (unassigned) => Guilherme G. Piccoli (gpiccoli)

** Changed in: linux (Ubuntu Xenial)
   Importance: Undecided => Medium

** Changed in: linux (Ubuntu Xenial)
   Status: New => In Progress

** Changed in: linux (Ubuntu Xenial)
 Assignee: (unassigned) => Guilherme G. Piccoli (gpiccoli)

** Changed in: linux (Ubuntu Artful)
   Importance: Undecided => Medium

** Changed in: linux (Ubuntu Artful)
   Status: New => In Progress

** Changed in: linux (Ubuntu Artful)
 Assignee: (unassigned) => Guilherme G. Piccoli (gpiccoli)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-02-16 Thread Dan Streetman
** Also affects: linux (Ubuntu Artful)
   Importance: Undecided
   Status: New

** Also affects: linux (Ubuntu Bionic)
   Importance: Medium
 Assignee: Guilherme G. Piccoli (gpiccoli)
   Status: In Progress

** Also affects: linux (Ubuntu Trusty)
   Importance: Undecided
   Status: New

** Also affects: linux (Ubuntu Xenial)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1749961] Re: xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1 Controller

2018-02-16 Thread Rafael David Tinoco
** Changed in: linux (Ubuntu)
   Status: Incomplete => In Progress

** Changed in: linux (Ubuntu)
   Importance: Undecided => Medium

** Changed in: linux (Ubuntu)
 Assignee: (unassigned) => Guilherme G. Piccoli (gpiccoli)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1749961

Title:
  xhci_hcd: TRB DMA errors reported with ASMedia ASM1142 USB 3.1
  Controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1749961/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs