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.

SK-AM62A-LP: Error reported when using webcam: ti-udma 4e230000.dma-controller: chan2 teardown timeout!

Part Number: SK-AM62A-LP

Tool/software:

Hi,

I get an error when I'm using DMA to transfer camera data: 

root@am62axx-evm:~# v4l2-ctl -d /dev/video3 --set-fmt-video=width=1920,height=1280,pixelformat=RG10 --stream-mmap --stream-loop
[  260.251991] [INFO]:[ti_csi2rx_start_streaming]:DMA get vc is 1
[  260.258468] analog,max96716 2-0028: Start streaming Success
[  260.265136] omnivision,ox05b 2-0010: ox05b_start_stream: Stream on Success
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 29.32 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.26 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.58 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.75 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.84 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.91 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.95 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 31.23 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 31.23 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 31.23 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 31.23 fps
^C[  271.315448] analog,max96716 2-0028: Stop streaming Success
[  271.321847] omnivision,ox05b 2-0010: ox05b_stop_stream: Stream off Success
[  272.403595] ti-udma 4e230000.dma-controller: chan1 teardown timeout!

I can't get the camera data after this error occurs, what should I do to fix this problem?

Thanks,

Yuwei

  • Hello Yuwei,

    What is the sensor format? Can you share the "media-ctl -p" output? Looks like you're using ox05b, right? 

    I can stream using ox05b with format BGGI 10-bit:

    root@am62axx-evm:/opt/edgeai-gst-apps# v4l2-ctl -d /dev/video3 --set-fmt-video=width=2592,height=1944,pixelformat=BGI0 --stream-mmap --stream-loop
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 29.83 fps
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 29.83 fps
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 29.83 fps
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 29.83 fps
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 29.83 fps
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 29.83 fps
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<< 29.83 fps
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 29.83 fps
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 29.83 fps
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 29.83 fps
    <<<<<^C
    root@am62axx-evm:/opt/edgeai-gst-apps#
    

    Thanks,

    Jianzhong

  • Hi Jianzhong,

    Looks like you're using ox05b, right? 

    Yes, the camera I am using is ox05b.

    The output of the command "media-ctl -p" is as follows:

    Media controller API version 5.10.168
    
    Media device information
    ------------------------
    driver          j721e-csi2rx
    model           TI-CSI2RX
    serial
    bus info        platform:30102000.ticsi2rx
    hw revision     0x1
    driver version  5.10.168
    
    Device topology
    - entity 1: 30102000.ticsi2rx (12 pads, 10 links, 4 routes)
                type V4L2 subdev subtype Unknown flags 0
                device node name /dev/v4l-subdev0
            routes:
                    0/0 -> 6/0 [ACTIVE]
                    1/0 -> 7/0 [ACTIVE]
                    2/0 -> 8/0 [ACTIVE]
                    3/0 -> 9/0 [ACTIVE]
            pad0: Sink
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "cdns_csi2rx.30101000.csi-bridge":4 [ENABLED,IMMUTABLE]
            pad1: Sink
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "cdns_csi2rx.30101000.csi-bridge":5 [ENABLED,IMMUTABLE]
            pad2: Sink
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "cdns_csi2rx.30101000.csi-bridge":6 [ENABLED,IMMUTABLE]
            pad3: Sink
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "cdns_csi2rx.30101000.csi-bridge":7 [ENABLED,IMMUTABLE]
            pad4: Sink
            pad5: Sink
            pad6: Source
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "30102000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE]
            pad7: Source
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "30102000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE]
            pad8: Source
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "30102000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE]
            pad9: Source
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "30102000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE]
            pad10: Source
                    -> "30102000.ticsi2rx context 4":0 [ENABLED,IMMUTABLE]
            pad11: Source
                    -> "30102000.ticsi2rx context 5":0 [ENABLED,IMMUTABLE]
    
    - entity 14: cdns_csi2rx.30101000.csi-bridge (8 pads, 7 links, 0 route)
                 type V4L2 subdev subtype Unknown flags 0
                 device node name /dev/v4l-subdev1
            pad0: Sink
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "analog,max96716 2-0028":3 [ENABLED,IMMUTABLE]
            pad1: Sink
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "analog,max96716 2-0028":4 [ENABLED,IMMUTABLE]
            pad2: Sink
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "analog,max96716 2-0028":5 [ENABLED,IMMUTABLE]
            pad3: Sink
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
            pad4: Source
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE]
            pad5: Source
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "30102000.ticsi2rx":1 [ENABLED,IMMUTABLE]
            pad6: Source
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "30102000.ticsi2rx":2 [ENABLED,IMMUTABLE]
            pad7: Source
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "30102000.ticsi2rx":3 [ENABLED,IMMUTABLE]
    
    - entity 23: analog,max96716 2-0028 (6 pads, 6 links, 3 routes)
                 type V4L2 subdev subtype Unknown flags 0
                 device node name /dev/v4l-subdev2
            routes:
                    0/0 -> 3/0 [ACTIVE]
                    1/0 -> 4/0 [ACTIVE]
                    2/0 -> 5/0 [ACTIVE]
            pad0: Sink
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "omnivision,ox03c 2-0036":0 [ENABLED,IMMUTABLE]
            pad1: Sink
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "omnivision,ox05b 2-0010":0 [ENABLED,IMMUTABLE]
            pad2: Sink
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "omnivision,ox05b 2-0010":1 [ENABLED,IMMUTABLE]
            pad3: Source
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE]
            pad4: Source
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "cdns_csi2rx.30101000.csi-bridge":1 [ENABLED,IMMUTABLE]
            pad5: Source
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "cdns_csi2rx.30101000.csi-bridge":2 [ENABLED,IMMUTABLE]
    
    - entity 36: omnivision,ox03c 2-0036 (1 pad, 1 link, 0 route)
                 type V4L2 subdev subtype Sensor flags 0
                 device node name /dev/v4l-subdev3
            pad0: Source
                    [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "analog,max96716 2-0028":0 [ENABLED,IMMUTABLE]
    
    - entity 40: omnivision,ox05b 2-0010 (2 pads, 2 links, 2 routes)
                 type V4L2 subdev subtype Sensor flags 0
                 device node name /dev/v4l-subdev4
            routes:
                    0/0 -> 0/0 [ACTIVE, IMMUTABLE, SOURCE]
                    0/0 -> 1/0 [ACTIVE, IMMUTABLE, SOURCE]
            pad0: Source
                    [stream:0 fmt:SBGGI10_1X10/2592x1944 field:none]
                    -> "analog,max96716 2-0028":1 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:SBGGI10_1X10/2592x1944 field:none]
                    -> "analog,max96716 2-0028":2 [ENABLED,IMMUTABLE]
    
    - entity 55: 30102000.ticsi2rx context 0 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video2
            pad0: Sink
                    <- "30102000.ticsi2rx":6 [ENABLED,IMMUTABLE]
    
    - entity 61: 30102000.ticsi2rx context 1 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video3
            pad0: Sink
                    <- "30102000.ticsi2rx":7 [ENABLED,IMMUTABLE]
    
    - entity 67: 30102000.ticsi2rx context 2 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video4
            pad0: Sink
                    <- "30102000.ticsi2rx":8 [ENABLED,IMMUTABLE]
    
    - entity 73: 30102000.ticsi2rx context 3 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video5
            pad0: Sink
                    <- "30102000.ticsi2rx":9 [ENABLED,IMMUTABLE]
    
    - entity 79: 30102000.ticsi2rx context 4 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video6
            pad0: Sink
                    <- "30102000.ticsi2rx":10 [ENABLED,IMMUTABLE]
    
    - entity 85: 30102000.ticsi2rx context 5 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video7
            pad0: Sink
                    <- "30102000.ticsi2rx":11 [ENABLED,IMMUTABLE]
    
    

    The SDK version I'm using is 0806.

    I fixed the virtual channels of the ox05b camera to VC1 and VC2.

    Sometimes I turn on the camera and I get the above problem.

    I think the most important error logs are as follows:

    [  272.403595] ti-udma 4e230000.dma-controller: chan1 teardown timeout!

    How should I fix this?

    Thanks,

    Yuwei

  • Hi Yuwei,

    Looks like you are connecting two cameras through max96716. I noticed the ox05b format (SBGGI10_1X10) is not supported in max96716's sink pads, cdns_csi2rx's pads, and 30102000.ticsi2rx's pads. That might be the reason.

    Regards,

    Jianzhong

  • Hi Jianzhong,

    I noticed the ox05b format (SBGGI10_1X10) is not supported in max96716's sink pads, cdns_csi2rx's pads, and 30102000.ticsi2rx's pads

    I think the pad format is defined by me in the driver.

    The format of the data to be transferred by DMA is specified by the v4l2-ctl command.

    v4l2-ctl -d /dev/video3 --set-fmt-video=width=1920,height=1280,pixelformat=RG10

    The correct data format should not affect the handling and exit of the DMA.

    After I switched to the SBGGI10_1X10 format, the problem persisted.

    Is the cause of this issue because I am using SDK version 8.6?

    Thanks,

    Yuwei

  • Hello Yuwei,

    Can you try SDK 9.2 or 10.0?

    Regards,

    Jianzhong