This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

"TRB DMA ptr not part of current TD" when capturing images using a USB camera on Keystone2-evm

Other Parts Discussed in Thread: TCI6638K2K

Hello,

I posted this on the Keystone forum yesterday. Maybe this is a more appropriate forum for this issue, so posting it here (I will remove it from the other forum.)

I am trying to use a USB camera on the TCI6638K2K evaluation board.

I have built the Keystone kernel with v4l support and I am testing it using yavta: http://git.ideasonboard.org/yavta.git

It works OK if I use very low resolution raw format. But when I capture raw data at VGA resolution, the following kernel error occurs:

xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD

I suspect that it might be a bandwidth issue since it doesn't occur so easily when using compressed format (MJPEG) or when using small enough resolutions in raw format:

E.g. 

root@keystone-evm:~#./yavta -f UYVY -s 640x480 --capture=1 --file=raw-640x480-#.bin /dev/video1
Device /dev/video1 opened.
Device `UVC Camera (046d:081b)' on `usb-xhci-hcd-1' is a video capture device.
Video format set: YUYV (56595559) 640x480 (stride 1280) buffer size 614400
Video format: YUYV (56595559) 640x480 (stride 1280) buffer size 614400
8 buffers requested.
length: 614400 offset: 0 timestamp type: unknown
Buffer 0 mapped at a[22153.088039] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
[22153.096726] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
ddress 0xb6d7d000.
length: 614400 offset: 61440[22153.107537] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
[22153.116841] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
0 timestamp type: unknown
Buffer 1 mapped at ad[22153.127662] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
[22153.136949] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
dress 0xb6ce7000.
length: 614400 offset: 122880[22153.147786] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
[22153.157063] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
0 timestamp type: unknown
Buffer 2 mapped at ad[22153.167911] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
[22153.177172] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
dress 0xb6c51000.
length: 614400 offset: 184320[22153.187911] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
[22153.197282] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
0 timestamp type: unknown
Buffer 3 mapped at ad[22153.208036] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
[22153.217394] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
dress 0xb6bbb000.
length: 614400 offset: 245760[22153.228161] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
[22153.237504] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
0 timestamp type: unknown
Buffer 4 mapped at ad[22153.248285] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
[22153.257614] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
dress 0xb6b25000.
length: 614400 offset: 307200[22153.268411] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
[22153.277722] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
0 timestamp type: unknown
Buffer 5 mapped at ad[22153.288535] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
[22153.297831] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
dress 0xb6a8f000.
length: 614400 offset: 368640[22153.308661] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
[22153.317941] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
0 timestamp type: unknown
Buffer 6 mapped at ad[22153.328785] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
[22153.338052] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
dress 0xb69f9000.
length: 614400 offset: 430080[22153.348785] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
[22153.358162] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
0 timestamp type: unknown
Buffer 7 mapped at ad[22153.368910] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
[22153.378273] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD
dress 0xb6963000.
[22153.389035] xhci-hcd xhci-hcd: ERROR Transfer event TRB DMA ptr not part of current TD

Is this a know issue? I will see if I can find an easier way to reproduce it.

Any advice on how to debug this would be most welcome!

-Jose