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.

Linux/AM5728: GStreamer DMA allocation fails

Part Number: AM5728

Tool/software: Linux

Hello,

this is an update of

Just to start a new clean thread.

Conditions:

We are using PSDK 04.00.00.04 on AM572x EVM and try to stream 1920x1080p30 video via gstreamer. We wrote our own minimal vip subdevice driver which we tested with dmabuftest tool. When we use the following gstreamner pipeline

gst-launch-1.0 v4l2src device=/dev/video1 io-mode=4 ! 'video/x-raw,format=(string)YUY2,width=1920,height=1080,framerate=(fraction)30/1' ! vpe num-input-buffers=8 ! 'video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080' ! tee name=t ! queue ! ducatih264enc ! queue ! h264parse ! mpegtsmux ! udpsink host=192.168.3.147 port=5555 sync=false t. ! queue ! kmssink connector=36 -v -e

we get a dma alloc coherent failed error. It seems that this only happens when using high resolution. When lowering the resolution, the pipeline runs. So I guess that cma memory is getting fragmented. We can't get things running, so we need your help.

Here is export GST_DEBUG=*v4l2*:6 log

v4l2.txt

Here is dmesg log:

[ 2994.289199] vip2-s0: vip_open
[ 2994.289215] adv7842 4-0020: adv7842_get_format:
[ 2994.289224] vip2-s0: vip_init_port: g_mbus_fmt subdev mbus_code: 2006 fourcc:NV12 size: 1920x1080
[ 2994.289235] vip2-s0: calc_format_size: fourcc:NV12 size: 1920x1080 bpl:1920 img_size:3110400
[ 2994.289242] vip2-s0: init_stream fourcc:NV12 size: 1920x1080 bpl:1920 img_size:3110400
[ 2994.289246] vip2-s0: init_stream vpdma data type: 0x02
[ 2994.289254] vip2-s0: vip_init_stream: stream instance 0x60030013ee134000
[ 2994.289266] video1: VIDIOC_QUERYCAP: driver=vip, card=vip, bus=platform:vip, version=0x0004091c, capabilities=0x85200001, device_caps=0x05200001
[ 2994.289599] vip2-s0: vip_release
[ 2994.289610] vip2-s0: vip_release_stream: stream instance 0xed85dee0ee134000
[ 2994.289616] vip2-s0: vip_release_port: port instance 0xed834d80ed9e8410
[ 2994.364857] vip2-s0: vip_open
[ 2994.364873] adv7842 4-0020: adv7842_get_format:
[ 2994.364883] vip2-s0: vip_init_port: g_mbus_fmt subdev mbus_code: 2006 fourcc:NV12 size: 1920x1080
[ 2994.364911] vip2-s0: calc_format_size: fourcc:NV12 size: 1920x1080 bpl:1920 img_size:3110400
[ 2994.364918] vip2-s0: init_stream fourcc:NV12 size: 1920x1080 bpl:1920 img_size:3110400
[ 2994.364923] vip2-s0: init_stream vpdma data type: 0x02
[ 2994.364931] vip2-s0: vip_init_stream: stream instance 0x60000013ee134000
[ 2994.365008] video1: VIDIOC_QUERYCAP: driver=vip, card=vip, bus=platform:vip, version=0x0004091c, capabilities=0x85200001, device_caps=0x05200001
[ 2994.365498] video1: VIDIOC_ENUMINPUT: index=0, name=camera 1, type=2, audioset=0x0, tuner=0, std=0x00ffb0ff, status=0x0, capabilities=0x4
[ 2994.365964] video1: VIDIOC_ENUMINPUT: error -22: index=1, name=, type=0, audioset=0x0, tuner=0, std=0x00000000, status=0x0, capabilities=0x4
[ 2994.366104] video1: VIDIOC_ENUMSTD: index=0, id=0xb000, name=NTSC, fps=1001/30000, framelines=525
[ 2994.366291] video1: VIDIOC_ENUMSTD: index=1, id=0x1000, name=NTSC-M, fps=1001/30000, framelines=525
[ 2994.366494] video1: VIDIOC_ENUMSTD: index=2, id=0x2000, name=NTSC-M-JP, fps=1001/30000, framelines=525
[ 2994.366634] video1: VIDIOC_ENUMSTD: index=3, id=0x8000, name=NTSC-M-KR, fps=1001/30000, framelines=525
[ 2994.366831] video1: VIDIOC_ENUMSTD: index=4, id=0xff, name=PAL, fps=1/25, framelines=625
[ 2994.366983] video1: VIDIOC_ENUMSTD: index=5, id=0x7, name=PAL-BG, fps=1/25, framelines=625
[ 2994.367116] video1: VIDIOC_ENUMSTD: index=6, id=0x8, name=PAL-H, fps=1/25, framelines=625
[ 2994.367326] video1: VIDIOC_ENUMSTD: index=7, id=0x10, name=PAL-I, fps=1/25, framelines=625
[ 2994.367473] video1: VIDIOC_ENUMSTD: index=8, id=0xe0, name=PAL-DK, fps=1/25, framelines=625
[ 2994.367670] video1: VIDIOC_ENUMSTD: index=9, id=0xff0000, name=SECAM, fps=1/25, framelines=625
[ 2994.367869] video1: VIDIOC_ENUMSTD: index=10, id=0x10000, name=SECAM-B, fps=1/25, framelines=625
[ 2994.368014] video1: VIDIOC_ENUMSTD: index=11, id=0x40000, name=SECAM-G, fps=1/25, framelines=625
[ 2994.368210] video1: VIDIOC_ENUMSTD: index=12, id=0x80000, name=SECAM-H, fps=1/25, framelines=625
[ 2994.368345] video1: VIDIOC_ENUMSTD: index=13, id=0x320000, name=SECAM-DK, fps=1/25, framelines=625
[ 2994.368480] video1: VIDIOC_ENUMSTD: index=14, id=0x400000, name=SECAM-L, fps=1/25, framelines=625
[ 2994.368633] video1: VIDIOC_ENUMSTD: index=15, id=0x800000, name=SECAM-Lc, fps=1/25, framelines=625
[ 2994.368775] video1: VIDIOC_ENUMSTD: error -22: index=16, id=0x0, name=, fps=0/0, framelines=0
[ 2994.368968] video1: VIDIOC_QUERYCTRL: error -22: id=0x80000000, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
[ 2994.369098] video1: VIDIOC_QUERYCTRL: error -22: id=0x980900, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
[ 2994.369284] video1: VIDIOC_QUERYCTRL: error -22: id=0x8000000, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
[ 2994.369639] vip2-s0: g_std: 0xffb0ff
[ 2994.369643] video1: VIDIOC_G_STD: std=0x00ffb0ff
[ 2994.369709] video1: VIDIOC_G_INPUT: value=0
[ 2994.373743] omap-iommu 55082000.mmu: 55082000.mmu: version 2.1
[ 2994.414630] vip2-s0: enum_fmt index:0
[ 2994.414638] vip2-s0: enum_fmt fourcc:NV12
[ 2994.414643] video1: VIDIOC_ENUM_FMT: index=0, type=vid-cap, flags=0x0, pixelformat=NV12, description='Y/CbCr 4:2:0'
[ 2994.415238] vip2-s0: enum_fmt index:1
[ 2994.415243] vip2-s0: enum_fmt fourcc:UYVY
[ 2994.415248] video1: VIDIOC_ENUM_FMT: index=1, type=vid-cap, flags=0x0, pixelformat=UYVY, description='UYVY 4:2:2'
[ 2994.415798] vip2-s0: enum_fmt index:2
[ 2994.415803] vip2-s0: enum_fmt fourcc:YUYV
[ 2994.415807] video1: VIDIOC_ENUM_FMT: index=2, type=vid-cap, flags=0x0, pixelformat=YUYV, description='YUYV 4:2:2'
[ 2994.416343] vip2-s0: enum_fmt index:3
[ 2994.416348] vip2-s0: enum_fmt fourcc:VYUY
[ 2994.416352] video1: VIDIOC_ENUM_FMT: index=3, type=vid-cap, flags=0x0, pixelformat=VYUY, description='VYUY 4:2:2'
[ 2994.416993] vip2-s0: enum_fmt index:4
[ 2994.416999] vip2-s0: enum_fmt fourcc:YVYU
[ 2994.417003] video1: VIDIOC_ENUM_FMT: index=4, type=vid-cap, flags=0x0, pixelformat=YVYU, description='YVYU 4:2:2'
[ 2994.417548] vip2-s0: enum_fmt index:5
[ 2994.417552] vip2-s0: enum_fmt fourcc:RGB3
[ 2994.417556] video1: VIDIOC_ENUM_FMT: index=5, type=vid-cap, flags=0x0, pixelformat=RGB3, description='24-bit RGB 8-8-8'
[ 2994.418250] vip2-s0: enum_fmt index:6
[ 2994.418255] vip2-s0: enum_fmt fourcc:RGB4
[ 2994.418258] video1: VIDIOC_ENUM_FMT: index=6, type=vid-cap, flags=0x0, pixelformat=RGB4, description='32-bit A/XRGB 8-8-8-8'
[ 2994.418817] vip2-s0: enum_fmt index:7
[ 2994.418823] vip2-s0: enum_fmt fourcc:BGR3
[ 2994.418827] video1: VIDIOC_ENUM_FMT: index=7, type=vid-cap, flags=0x0, pixelformat=BGR3, description='24-bit BGR 8-8-8'
[ 2994.419362] vip2-s0: enum_fmt index:8
[ 2994.419367] vip2-s0: enum_fmt fourcc:BGR4
[ 2994.419370] video1: VIDIOC_ENUM_FMT: index=8, type=vid-cap, flags=0x0, pixelformat=BGR4, description='32-bit BGRA/X 8-8-8-8'
[ 2994.420060] vip2-s0: enum_fmt index:9
[ 2994.420065] video1: VIDIOC_ENUM_FMT: error -22: index=9, type=vid-cap, flags=0x0, pixelformat=
[ 2994.421324] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.421334] vip2-s0: vip_enum_framesizes: index: 0 code: 2006 W:[1920,1920] H:[1080,1080]
[ 2994.421338] video1: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=YUYV, type=1, wxh=1920x1080
[ 2994.421573] video1: VIDIOC_ENUM_FRAMEINTERVALS: error -515: index=0, pixelformat=YUYV, wxh=1920x1080, type=0
[ 2994.421744] video1: VIDIOC_CROPCAP: type=vid-cap, bounds wxh=1920x1080, x,y=0,0, defrect wxh=1920x1080, x,y=0,0, pixelaspect 1/1
[ 2994.421775] vip2-s0: try_fmt fourcc:YUYV size: 1920x1080
[ 2994.421780] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.421786] vip2-s0: try_fmt loop:0 fourcc:YUYV size: 1920x1080
[ 2994.421790] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.421795] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.421802] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.421806] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.421813] vip2-s0: calc_format_size: fourcc:YUYV size: 1920x1080 bpl:3840 img_size:4147200
[ 2994.421816] video1: VIDIOC_TRY_FMT: type=vid-cap, width=1920, height=1080, pixelformat=YUYV, field=none, bytesperline=3840, sizeimage=4147200, colorspace=1, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.421846] vip2-s0: try_fmt fourcc:YUYV size: 1920x1080
[ 2994.421850] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.421855] vip2-s0: try_fmt loop:0 fourcc:YUYV size: 1920x1080
[ 2994.421859] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.421864] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.421869] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.421873] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.421879] video1: VIDIOC_TRY_FMT: error -22: type=vid-cap, width=1920, height=1080, pixelformat=YUYV, field=interlaced, bytesperline=0, sizeimage=0, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.421914] vip2-s0: try_fmt fourcc:YUYV size: 1920x1080
[ 2994.421918] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.421922] vip2-s0: try_fmt loop:0 fourcc:YUYV size: 1920x1080
[ 2994.421927] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.421931] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.421935] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.421940] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.421945] vip2-s0: calc_format_size: fourcc:YUYV size: 1920x1080 bpl:3840 img_size:4147200
[ 2994.421951] video1: VIDIOC_TRY_FMT: type=vid-cap, width=1920, height=1080, pixelformat=YUYV, field=none, bytesperline=3840, sizeimage=4147200, colorspace=1, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.422020] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.422023] video1: VIDIOC_ENUM_FRAMESIZES: error -22: index=1, pixelformat=YUYV, type=0
[ 2994.422279] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.422287] vip2-s0: vip_enum_framesizes: index: 0 code: 2006 W:[1920,1920] H:[1080,1080]
[ 2994.422292] video1: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=UYVY, type=1, wxh=1920x1080
[ 2994.422529] video1: VIDIOC_ENUM_FRAMEINTERVALS: error -515: index=0, pixelformat=UYVY, wxh=1920x1080, type=0
[ 2994.422676] video1: VIDIOC_CROPCAP: type=vid-cap, bounds wxh=1920x1080, x,y=0,0, defrect wxh=1920x1080, x,y=0,0, pixelaspect 1/1
[ 2994.422704] vip2-s0: try_fmt fourcc:UYVY size: 1920x1080
[ 2994.422709] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.422714] vip2-s0: try_fmt loop:0 fourcc:UYVY size: 1920x1080
[ 2994.422718] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.422723] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.422727] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.422731] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.422737] vip2-s0: calc_format_size: fourcc:UYVY size: 1920x1080 bpl:3840 img_size:4147200
[ 2994.422740] video1: VIDIOC_TRY_FMT: type=vid-cap, width=1920, height=1080, pixelformat=UYVY, field=none, bytesperline=3840, sizeimage=4147200, colorspace=1, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.422768] vip2-s0: try_fmt fourcc:UYVY size: 1920x1080
[ 2994.422772] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.422777] vip2-s0: try_fmt loop:0 fourcc:UYVY size: 1920x1080
[ 2994.422781] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.422785] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.422789] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.422794] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.422797] video1: VIDIOC_TRY_FMT: error -22: type=vid-cap, width=1920, height=1080, pixelformat=UYVY, field=interlaced, bytesperline=0, sizeimage=0, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.422831] vip2-s0: try_fmt fourcc:UYVY size: 1920x1080
[ 2994.422835] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.422840] vip2-s0: try_fmt loop:0 fourcc:UYVY size: 1920x1080
[ 2994.422844] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.422849] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.422853] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.422857] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.422862] vip2-s0: calc_format_size: fourcc:UYVY size: 1920x1080 bpl:3840 img_size:4147200
[ 2994.422866] video1: VIDIOC_TRY_FMT: type=vid-cap, width=1920, height=1080, pixelformat=UYVY, field=none, bytesperline=3840, sizeimage=4147200, colorspace=1, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.422896] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.422899] video1: VIDIOC_ENUM_FRAMESIZES: error -22: index=1, pixelformat=UYVY, type=0
[ 2994.423163] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.423170] vip2-s0: vip_enum_framesizes: index: 0 code: 2006 W:[1920,1920] H:[1080,1080]
[ 2994.423174] video1: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=BGR4, type=1, wxh=1920x1080
[ 2994.423408] video1: VIDIOC_ENUM_FRAMEINTERVALS: error -515: index=0, pixelformat=BGR4, wxh=1920x1080, type=0
[ 2994.423552] video1: VIDIOC_CROPCAP: type=vid-cap, bounds wxh=1920x1080, x,y=0,0, defrect wxh=1920x1080, x,y=0,0, pixelaspect 1/1
[ 2994.423577] vip2-s0: try_fmt fourcc:BGR4 size: 1920x1080
[ 2994.423582] vip2-s0: CSC active on Port A: going Y2R
[ 2994.423586] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.423591] vip2-s0: try_fmt loop:0 fourcc:BGR4 size: 1920x1080
[ 2994.423595] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.423599] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.423606] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.423611] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.423616] vip2-s0: calc_format_size: fourcc:BGR4 size: 1920x1080 bpl:7680 img_size:8294400
[ 2994.423619] video1: VIDIOC_TRY_FMT: type=vid-cap, width=1920, height=1080, pixelformat=BGR4, field=none, bytesperline=7680, sizeimage=8294400, colorspace=8, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.423645] vip2-s0: try_fmt fourcc:BGR4 size: 1920x1080
[ 2994.423650] vip2-s0: CSC active on Port A: going Y2R
[ 2994.423653] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.423658] vip2-s0: try_fmt loop:0 fourcc:BGR4 size: 1920x1080
[ 2994.423662] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.423669] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.423673] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.423677] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.423680] video1: VIDIOC_TRY_FMT: error -22: type=vid-cap, width=1920, height=1080, pixelformat=BGR4, field=interlaced, bytesperline=0, sizeimage=0, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.423711] vip2-s0: try_fmt fourcc:BGR4 size: 1920x1080
[ 2994.423715] vip2-s0: CSC active on Port A: going Y2R
[ 2994.423719] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.423724] vip2-s0: try_fmt loop:0 fourcc:BGR4 size: 1920x1080
[ 2994.423728] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.423735] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.423739] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.423743] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.423748] vip2-s0: calc_format_size: fourcc:BGR4 size: 1920x1080 bpl:7680 img_size:8294400
[ 2994.423752] video1: VIDIOC_TRY_FMT: type=vid-cap, width=1920, height=1080, pixelformat=BGR4, field=none, bytesperline=7680, sizeimage=8294400, colorspace=8, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.423781] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.423784] video1: VIDIOC_ENUM_FRAMESIZES: error -22: index=1, pixelformat=BGR4, type=0
[ 2994.424068] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.424076] vip2-s0: vip_enum_framesizes: index: 0 code: 2006 W:[1920,1920] H:[1080,1080]
[ 2994.424079] video1: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=RGB4, type=1, wxh=1920x1080
[ 2994.424315] video1: VIDIOC_ENUM_FRAMEINTERVALS: error -515: index=0, pixelformat=RGB4, wxh=1920x1080, type=0
[ 2994.424457] video1: VIDIOC_CROPCAP: type=vid-cap, bounds wxh=1920x1080, x,y=0,0, defrect wxh=1920x1080, x,y=0,0, pixelaspect 1/1
[ 2994.424482] vip2-s0: try_fmt fourcc:RGB4 size: 1920x1080
[ 2994.424487] vip2-s0: CSC active on Port A: going Y2R
[ 2994.424494] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.424499] vip2-s0: try_fmt loop:0 fourcc:RGB4 size: 1920x1080
[ 2994.424503] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.424507] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.424512] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.424516] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.424521] vip2-s0: calc_format_size: fourcc:RGB4 size: 1920x1080 bpl:7680 img_size:8294400
[ 2994.424524] video1: VIDIOC_TRY_FMT: type=vid-cap, width=1920, height=1080, pixelformat=RGB4, field=none, bytesperline=7680, sizeimage=8294400, colorspace=8, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.424550] vip2-s0: try_fmt fourcc:RGB4 size: 1920x1080
[ 2994.424554] vip2-s0: CSC active on Port A: going Y2R
[ 2994.424560] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.424565] vip2-s0: try_fmt loop:0 fourcc:RGB4 size: 1920x1080
[ 2994.424569] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.424573] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.424577] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.424581] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.424585] video1: VIDIOC_TRY_FMT: error -22: type=vid-cap, width=1920, height=1080, pixelformat=RGB4, field=interlaced, bytesperline=0, sizeimage=0, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.424616] vip2-s0: try_fmt fourcc:RGB4 size: 1920x1080
[ 2994.424621] vip2-s0: CSC active on Port A: going Y2R
[ 2994.424626] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.424631] vip2-s0: try_fmt loop:0 fourcc:RGB4 size: 1920x1080
[ 2994.424635] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.424640] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.424644] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.424648] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.424653] vip2-s0: calc_format_size: fourcc:RGB4 size: 1920x1080 bpl:7680 img_size:8294400
[ 2994.424656] video1: VIDIOC_TRY_FMT: type=vid-cap, width=1920, height=1080, pixelformat=RGB4, field=none, bytesperline=7680, sizeimage=8294400, colorspace=8, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.424686] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.424689] video1: VIDIOC_ENUM_FRAMESIZES: error -22: index=1, pixelformat=RGB4, type=0
[ 2994.424950] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.424957] vip2-s0: vip_enum_framesizes: index: 0 code: 2006 W:[1920,1920] H:[1080,1080]
[ 2994.424960] video1: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=BGR3, type=1, wxh=1920x1080
[ 2994.425200] video1: VIDIOC_ENUM_FRAMEINTERVALS: error -515: index=0, pixelformat=BGR3, wxh=1920x1080, type=0
[ 2994.425344] video1: VIDIOC_CROPCAP: type=vid-cap, bounds wxh=1920x1080, x,y=0,0, defrect wxh=1920x1080, x,y=0,0, pixelaspect 1/1
[ 2994.425369] vip2-s0: try_fmt fourcc:BGR3 size: 1920x1080
[ 2994.425374] vip2-s0: CSC active on Port A: going Y2R
[ 2994.425378] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.425383] vip2-s0: try_fmt loop:0 fourcc:BGR3 size: 1920x1080
[ 2994.425389] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.425394] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.425398] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.425402] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.425407] vip2-s0: calc_format_size: fourcc:BGR3 size: 1920x1080 bpl:5760 img_size:6220800
[ 2994.425410] video1: VIDIOC_TRY_FMT: type=vid-cap, width=1920, height=1080, pixelformat=BGR3, field=none, bytesperline=5760, sizeimage=6220800, colorspace=8, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.425437] vip2-s0: try_fmt fourcc:BGR3 size: 1920x1080
[ 2994.425442] vip2-s0: CSC active on Port A: going Y2R
[ 2994.425446] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.425453] vip2-s0: try_fmt loop:0 fourcc:BGR3 size: 1920x1080
[ 2994.425458] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.425462] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.425466] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.425471] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.425474] video1: VIDIOC_TRY_FMT: error -22: type=vid-cap, width=1920, height=1080, pixelformat=BGR3, field=interlaced, bytesperline=0, sizeimage=0, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.425506] vip2-s0: try_fmt fourcc:BGR3 size: 1920x1080
[ 2994.425511] vip2-s0: CSC active on Port A: going Y2R
[ 2994.425515] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.425522] vip2-s0: try_fmt loop:0 fourcc:BGR3 size: 1920x1080
[ 2994.425526] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.425530] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.425534] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.425538] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.425544] vip2-s0: calc_format_size: fourcc:BGR3 size: 1920x1080 bpl:5760 img_size:6220800
[ 2994.425547] video1: VIDIOC_TRY_FMT: type=vid-cap, width=1920, height=1080, pixelformat=BGR3, field=none, bytesperline=5760, sizeimage=6220800, colorspace=8, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.425576] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.425582] video1: VIDIOC_ENUM_FRAMESIZES: error -22: index=1, pixelformat=BGR3, type=0
[ 2994.425827] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.425834] vip2-s0: vip_enum_framesizes: index: 0 code: 2006 W:[1920,1920] H:[1080,1080]
[ 2994.425837] video1: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=RGB3, type=1, wxh=1920x1080
[ 2994.426093] video1: VIDIOC_ENUM_FRAMEINTERVALS: error -515: index=0, pixelformat=RGB3, wxh=1920x1080, type=0
[ 2994.426238] video1: VIDIOC_CROPCAP: type=vid-cap, bounds wxh=1920x1080, x,y=0,0, defrect wxh=1920x1080, x,y=0,0, pixelaspect 1/1
[ 2994.426263] vip2-s0: try_fmt fourcc:RGB3 size: 1920x1080
[ 2994.426267] vip2-s0: CSC active on Port A: going Y2R
[ 2994.426271] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.426276] vip2-s0: try_fmt loop:0 fourcc:RGB3 size: 1920x1080
[ 2994.426283] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.426287] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.426291] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.426295] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.426301] vip2-s0: calc_format_size: fourcc:RGB3 size: 1920x1080 bpl:5760 img_size:6220800
[ 2994.426304] video1: VIDIOC_TRY_FMT: type=vid-cap, width=1920, height=1080, pixelformat=RGB3, field=none, bytesperline=5760, sizeimage=6220800, colorspace=8, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.426330] vip2-s0: try_fmt fourcc:RGB3 size: 1920x1080
[ 2994.426335] vip2-s0: CSC active on Port A: going Y2R
[ 2994.426338] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.426345] vip2-s0: try_fmt loop:0 fourcc:RGB3 size: 1920x1080
[ 2994.426350] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.426354] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.426358] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.426362] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.426365] video1: VIDIOC_TRY_FMT: error -22: type=vid-cap, width=1920, height=1080, pixelformat=RGB3, field=interlaced, bytesperline=0, sizeimage=0, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.426397] vip2-s0: try_fmt fourcc:RGB3 size: 1920x1080
[ 2994.426401] vip2-s0: CSC active on Port A: going Y2R
[ 2994.426407] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.426412] vip2-s0: try_fmt loop:0 fourcc:RGB3 size: 1920x1080
[ 2994.426416] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.426420] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.426424] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.426429] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.426434] vip2-s0: calc_format_size: fourcc:RGB3 size: 1920x1080 bpl:5760 img_size:6220800
[ 2994.426437] video1: VIDIOC_TRY_FMT: type=vid-cap, width=1920, height=1080, pixelformat=RGB3, field=none, bytesperline=5760, sizeimage=6220800, colorspace=8, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.426469] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.426472] video1: VIDIOC_ENUM_FRAMESIZES: error -22: index=1, pixelformat=RGB3, type=0
[ 2994.426715] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.426723] vip2-s0: vip_enum_framesizes: index: 0 code: 2006 W:[1920,1920] H:[1080,1080]
[ 2994.426726] video1: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=NV12, type=1, wxh=1920x1080
[ 2994.426980] video1: VIDIOC_ENUM_FRAMEINTERVALS: error -515: index=0, pixelformat=NV12, wxh=1920x1080, type=0
[ 2994.427129] video1: VIDIOC_CROPCAP: type=vid-cap, bounds wxh=1920x1080, x,y=0,0, defrect wxh=1920x1080, x,y=0,0, pixelaspect 1/1
[ 2994.427155] vip2-s0: try_fmt fourcc:NV12 size: 1920x1080
[ 2994.427159] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.427164] vip2-s0: try_fmt loop:0 fourcc:NV12 size: 1920x1080
[ 2994.427169] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.427173] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.427177] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.427182] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.427187] vip2-s0: calc_format_size: fourcc:NV12 size: 1920x1080 bpl:1920 img_size:3110400
[ 2994.427192] video1: VIDIOC_TRY_FMT: type=vid-cap, width=1920, height=1080, pixelformat=NV12, field=none, bytesperline=1920, sizeimage=3110400, colorspace=1, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.427219] vip2-s0: try_fmt fourcc:NV12 size: 1920x1080
[ 2994.427223] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.427227] vip2-s0: try_fmt loop:0 fourcc:NV12 size: 1920x1080
[ 2994.427232] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.427236] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.427240] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.427244] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.427247] video1: VIDIOC_TRY_FMT: error -22: type=vid-cap, width=1920, height=1080, pixelformat=NV12, field=interlaced, bytesperline=0, sizeimage=0, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.427281] vip2-s0: try_fmt fourcc:NV12 size: 1920x1080
[ 2994.427285] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.427290] vip2-s0: try_fmt loop:0 fourcc:NV12 size: 1920x1080
[ 2994.427294] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.427298] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.427302] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.427306] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.427311] vip2-s0: calc_format_size: fourcc:NV12 size: 1920x1080 bpl:1920 img_size:3110400
[ 2994.427314] video1: VIDIOC_TRY_FMT: type=vid-cap, width=1920, height=1080, pixelformat=NV12, field=none, bytesperline=1920, sizeimage=3110400, colorspace=1, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.427345] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.427348] video1: VIDIOC_ENUM_FRAMESIZES: error -22: index=1, pixelformat=NV12, type=0
[ 2994.427590] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.427597] vip2-s0: vip_enum_framesizes: index: 0 code: 2006 W:[1920,1920] H:[1080,1080]
[ 2994.427601] video1: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=YVYU, type=1, wxh=1920x1080
[ 2994.427832] video1: VIDIOC_ENUM_FRAMEINTERVALS: error -515: index=0, pixelformat=YVYU, wxh=1920x1080, type=0
[ 2994.427995] video1: VIDIOC_CROPCAP: type=vid-cap, bounds wxh=1920x1080, x,y=0,0, defrect wxh=1920x1080, x,y=0,0, pixelaspect 1/1
[ 2994.428022] vip2-s0: try_fmt fourcc:YVYU size: 1920x1080
[ 2994.428026] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.428031] vip2-s0: try_fmt loop:0 fourcc:YVYU size: 1920x1080
[ 2994.428035] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.428040] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.428044] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.428048] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.428053] vip2-s0: calc_format_size: fourcc:YVYU size: 1920x1080 bpl:3840 img_size:4147200
[ 2994.428056] video1: VIDIOC_TRY_FMT: type=vid-cap, width=1920, height=1080, pixelformat=YVYU, field=none, bytesperline=3840, sizeimage=4147200, colorspace=1, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.428085] vip2-s0: try_fmt fourcc:YVYU size: 1920x1080
[ 2994.428089] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.428094] vip2-s0: try_fmt loop:0 fourcc:YVYU size: 1920x1080
[ 2994.428098] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.428102] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.428106] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.428111] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.428114] video1: VIDIOC_TRY_FMT: error -22: type=vid-cap, width=1920, height=1080, pixelformat=YVYU, field=interlaced, bytesperline=0, sizeimage=0, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.428145] vip2-s0: try_fmt fourcc:YVYU size: 1920x1080
[ 2994.428149] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.428154] vip2-s0: try_fmt loop:0 fourcc:YVYU size: 1920x1080
[ 2994.428158] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.428162] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.428166] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.428170] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.428175] vip2-s0: calc_format_size: fourcc:YVYU size: 1920x1080 bpl:3840 img_size:4147200
[ 2994.428178] video1: VIDIOC_TRY_FMT: type=vid-cap, width=1920, height=1080, pixelformat=YVYU, field=none, bytesperline=3840, sizeimage=4147200, colorspace=1, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.428207] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.428210] video1: VIDIOC_ENUM_FRAMESIZES: error -22: index=1, pixelformat=YVYU, type=0
[ 2994.432427] vip2-s0: s_fmt input fourcc:YUYV size: 1920x1080 bpl:3840 img_size:0
[ 2994.432433] vip2-s0: try_fmt fourcc:YUYV size: 1920x1080
[ 2994.432439] adv7842 4-0020: adv7842_enum_frame_sizes:
[ 2994.432445] vip2-s0: try_fmt loop:0 fourcc:YUYV size: 1920x1080
[ 2994.432450] vip2-s0: try_fmt loop:0 found new larger: 1920x1080
[ 2994.432455] vip2-s0: try_fmt loop:0 found at least larger: 1920x1080
[ 2994.432460] vip2-s0: try_fmt loop:0 found new best: 1920x1080
[ 2994.432464] vip2-s0: try_fmt loop:0 found direct match: 1920x1080
[ 2994.432470] vip2-s0: calc_format_size: fourcc:YUYV size: 1920x1080 bpl:3840 img_size:4147200
[ 2994.432476] vip2-s0: s_fmt try_fmt fourcc:YUYV size: 1920x1080 bpl:3840 img_size:4147200
[ 2994.432481] vip2-s0: s_fmt fourcc:YUYV size: 1920x1080 bpl:3840 img_size:4147200
[ 2994.432486] vip2-s0: s_fmt pix_to_mbus mbus_code: 2006 size: 1920x1080
[ 2994.432490] adv7842 4-0020: adv7842_set_format start
[ 2994.437505] adv7842 4-0020: adv7842_get_format:
[ 2994.437511] vip2-s0: s_fmt subdev fmt mbus_code: 2006 size: 1920x1080
[ 2994.437515] vip2-s0: s_fmt vpdma data type: 0x07
[ 2994.437518] video1: VIDIOC_S_FMT: type=vid-cap, width=1920, height=1080, pixelformat=YUYV, field=none, bytesperline=3840, sizeimage=4147200, colorspace=1, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.437878] video1: VIDIOC_G_PARM: type=vid-cap, capability=0x1000, capturemode=0x0, timeperframe=1/30, extendedmode=0, readbuffers=4
[ 2994.438131] video1: VIDIOC_S_PARM: type=vid-cap, capability=0x1000, capturemode=0x0, timeperframe=1/30, extendedmode=0, readbuffers=4
[ 2994.438680] video1: VIDIOC_G_CTRL: error -22: id=0x980927, value=0
[ 2994.439064] video1: VIDIOC_REQBUFS: count=0, type=vid-cap, memory=mmap
[ 2994.439083] video1: VIDIOC_CREATE_BUFS: index=0, count=0, memory=mmap, type=vid-cap, width=1920, height=1080, pixelformat=YUYV, field=none, bytesperline=3840, sizeimage=4147200, colorspace=1, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.439109] video1: VIDIOC_REQBUFS: error -22: count=0, type=vid-cap, memory=userptr
[ 2994.439128] video1: VIDIOC_REQBUFS: count=0, type=vid-cap, memory=dmabuf
[ 2994.439144] video1: VIDIOC_CREATE_BUFS: index=0, count=0, memory=mmap, type=vid-cap, width=1920, height=1080, pixelformat=YUYV, field=none, bytesperline=3840, sizeimage=4147200, colorspace=1, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.445138] video1: VIDIOC_G_CTRL: error -22: id=0x980927, value=0
[ 2994.446761] vip2-s0: get 3 buffer(s) of size 4147200 each.
[ 2994.446768] dma_alloc_attrs: start
[ 2994.450070] cma: cma_alloc(cma c10804d8, count 1013, align 8)
[ 2994.450506] cma: cma_alloc(pfn 1041920
[ 2994.450512] cma: cma_alloc(): returned eff67800
[ 2994.452289] dma_alloc_attrs: end
[ 2994.455357] dma_alloc_attrs: start
[ 2994.458777] cma: cma_alloc(cma c10804d8, count 1013, align 8)
[ 2994.459128] cma: cma_alloc(pfn 1042944
[ 2994.459133] cma: cma_alloc(): returned eff70800
[ 2994.460948] dma_alloc_attrs: end
[ 2994.464015] dma_alloc_attrs: start
[ 2994.467433] cma: cma_alloc(cma c10804d8, count 1013, align 8)
[ 2994.467830] cma: cma_alloc(pfn 1043968
[ 2994.467835] cma: cma_alloc(): returned eff79800
[ 2994.469596] dma_alloc_attrs: end
[ 2994.472713] video1: 
[ 2994.472719] VIDIOC_REQBUFS: count=3, type=vid-cap, memory=mmap
[ 2994.477451] video1: VIDIOC_QUERYBUF: 00:00:00.00000000 index=0, type=vid-cap, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0x0, length=4147200
[ 2994.477477] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 2994.478462] video1: VIDIOC_QUERYBUF: 00:00:00.00000000 index=1, type=vid-cap, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0x3f5000, length=4147200
[ 2994.478486] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 2994.479452] video1: VIDIOC_QUERYBUF: 00:00:00.00000000 index=2, type=vid-cap, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0x7ea000, length=4147200
[ 2994.479476] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 2994.480586] video1: VIDIOC_EXPBUF: fd=41, type=vid-cap, index=0, plane=0, flags=0x00080002
[ 2994.481113] video1: VIDIOC_EXPBUF: fd=43, type=vid-cap, index=1, plane=0, flags=0x00080002
[ 2994.481584] video1: VIDIOC_EXPBUF: fd=45, type=vid-cap, index=2, plane=0, flags=0x00080002
[ 2994.482170] vip2-s0: vip_set_slice_path:
[ 2994.482178] vip2-s0: vip_set_slice_path: DATA_PATH_SELECT(0000010C): 80008000
[ 2994.482181] vip2-s0: vip_set_slice_path:
[ 2994.482187] vip2-s0: vip_set_slice_path: DATA_PATH_SELECT(0000010C): 40008000
[ 2994.482465] adv7842 4-0020: adv7842_s_stream:
[ 2994.482476] vip2-s0: vip_load_vpdma_list_fifo: start_dma vb2 buf idx:0
[ 2994.482481] vip2-s0: start_dma: vb2 buf idx:0, dma_addr:0xfe600000
[ 2994.483601] vip2-s0: vip_load_vpdma_list_fifo: start_dma vb2 buf idx:1
[ 2994.483607] vip2-s0: start_dma: vb2 buf idx:1, dma_addr:0xfea00000
[ 2994.484729] vip2-s0: added next buffer
[ 2994.484735] vip2-s0: start_dma: vb2 buf idx:2, dma_addr:0xfee00000
[ 2994.484742] video1: VIDIOC_STREAMON: type=vid-cap
[ 2994.541363] vip2-s0: IRQ 366 VIP_INT0_STATUS0 0x1
[ 2994.541370] vip2-s0: IRQ 0: handling LIST0_COMPLETE
[ 2994.541375] vip2-s0: vip buffer complete 0xed854600, 0x0
[ 2994.541384] vip2-s0: Dropping frame
[ 2994.541390] vip2-s0: start_dma: dropped
[ 2994.574693] vip2-s0: IRQ 366 VIP_INT0_STATUS0 0x1
[ 2994.574700] vip2-s0: IRQ 0: handling LIST0_COMPLETE
[ 2994.574705] vip2-s0: vip buffer complete 0xed855800, 0x0
[ 2994.574714] vip2-s0: Dropping frame
[ 2994.574719] vip2-s0: start_dma: dropped
[ 2994.575581] vip2-s0: get 1 buffer(s) of size 4147200 each.
[ 2994.575589] dma_alloc_attrs: start
[ 2994.578881] cma: cma_alloc(cma c10804d8, count 1013, align 8)
[ 2994.580722] cma: cma_alloc(pfn 1044992
[ 2994.580728] cma: cma_alloc(): returned eff82800
[ 2994.586941] dma_alloc_attrs: end
[ 2994.590043] video1: 
[ 2994.590054] VIDIOC_CREATE_BUFS: index=3, count=1, memory=mmap, type=vid-cap, width=1920, height=1080, pixelformat=YUYV, field=none, bytesperline=3840, sizeimage=4147200, colorspace=1, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2994.608021] vip2-s0: IRQ 366 VIP_INT0_STATUS0 0x1
[ 2994.608025] vip2-s0: IRQ 0: handling LIST0_COMPLETE
[ 2994.608029] vip2-s0: vip buffer complete 0xed855c00, 0x0
[ 2994.608035] vip2-s0: Dropping frame
[ 2994.608038] vip2-s0: start_dma: dropped
[ 2994.610282] video1: VIDIOC_QUERYBUF: 00:00:00.00000000 index=3, type=vid-cap, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0xbdf000, length=4147200
[ 2994.610313] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 2994.611322] video1: VIDIOC_EXPBUF: fd=63, type=vid-cap, index=3, plane=0, flags=0x00080002
[ 2994.641350] vip2-s0: IRQ 366 VIP_INT0_STATUS0 0x1
[ 2994.641356] vip2-s0: IRQ 0: handling LIST0_COMPLETE
[ 2994.641362] vip2-s0: vip buffer complete 0xeda03a00, 0x1
[ 2994.641367] vip2-s0: added next buffer
[ 2994.641372] vip2-s0: start_dma: vb2 buf idx:0, dma_addr:0xfe600000
[ 2994.674678] vip2-s0: IRQ 366 VIP_INT0_STATUS0 0x1
[ 2994.674684] vip2-s0: IRQ 0: handling LIST0_COMPLETE
[ 2994.674689] vip2-s0: vip buffer complete 0xeda03c00, 0x1
[ 2994.674694] vip2-s0: added next buffer
[ 2994.674700] vip2-s0: start_dma: vb2 buf idx:3, dma_addr:0xff200000
[ 2994.708007] vip2-s0: IRQ 366 VIP_INT0_STATUS0 0x1
[ 2994.708013] vip2-s0: IRQ 0: handling LIST0_COMPLETE
[ 2994.708018] vip2-s0: vip buffer complete 0xedf37600, 0x1
[ 2994.708022] vip2-s0: added next buffer
[ 2994.708027] vip2-s0: start_dma: vb2 buf idx:1, dma_addr:0xfea00000
[ 2994.741336] vip2-s0: IRQ 366 VIP_INT0_STATUS0 0x1
[ 2994.741342] vip2-s0: IRQ 0: handling LIST0_COMPLETE
[ 2994.741347] vip2-s0: vip buffer complete 0xed854600, 0x0
[ 2994.741355] vip2-s0: added next buffer
[ 2994.741361] vip2-s0: start_dma: vb2 buf idx:2, dma_addr:0xfee00000
[ 2994.774667] vip2-s0: IRQ 366 VIP_INT0_STATUS0 0x1
[ 2994.774673] vip2-s0: IRQ 0: handling LIST0_COMPLETE
[ 2994.774679] vip2-s0: vip buffer complete 0xedf79800, 0x0
[ 2994.774687] vip2-s0: added next buffer
[ 2994.774693] vip2-s0: start_dma: vb2 buf idx:0, dma_addr:0xfe600000
[ 2994.807997] vip2-s0: IRQ 366 VIP_INT0_STATUS0 0x1
[ 2994.808004] vip2-s0: IRQ 0: handling LIST0_COMPLETE
[ 2994.808010] vip2-s0: vip buffer complete 0xed855800, 0x0
[ 2994.808019] vip2-s0: added next buffer
[ 2994.808026] vip2-s0: start_dma: vb2 buf idx:3, dma_addr:0xff200000
[ 2994.841328] vip2-s0: IRQ 366 VIP_INT0_STATUS0 0x1
[ 2994.841336] vip2-s0: IRQ 0: handling LIST0_COMPLETE
[ 2994.841341] vip2-s0: vip buffer complete 0xed855c00, 0x0
[ 2994.841351] vip2-s0: added next buffer
[ 2994.841357] vip2-s0: start_dma: vb2 buf idx:1, dma_addr:0xfea00000
[ 2994.874654] vip2-s0: IRQ 366 VIP_INT0_STATUS0 0x1
[ 2994.874661] vip2-s0: IRQ 0: handling LIST0_COMPLETE
[ 2994.874666] vip2-s0: vip buffer complete 0xed854600, 0x0
[ 2994.874675] vip2-s0: added next buffer
[ 2994.874681] vip2-s0: start_dma: vb2 buf idx:2, dma_addr:0xfee00000
[ 2994.907983] vip2-s0: IRQ 366 VIP_INT0_STATUS0 0x1
[ 2994.907989] vip2-s0: IRQ 0: handling LIST0_COMPLETE
[ 2994.907994] vip2-s0: vip buffer complete 0xedf79800, 0x0
[ 2994.908002] vip2-s0: added next buffer
[ 2994.908008] vip2-s0: start_dma: vb2 buf idx:0, dma_addr:0xfe600000
[ 2994.941312] vip2-s0: IRQ 366 VIP_INT0_STATUS0 0x1
[ 2994.941318] vip2-s0: IRQ 0: handling LIST0_COMPLETE
[ 2994.941323] vip2-s0: vip buffer complete 0xed855800, 0x0
[ 2994.941331] vip2-s0: Dropping frame
[ 2994.941336] vip2-s0: start_dma: dropped
[ 2994.974639] vip2-s0: IRQ 366 VIP_INT0_STATUS0 0x1
[ 2994.974645] vip2-s0: IRQ 0: handling LIST0_COMPLETE
[ 2994.974650] vip2-s0: vip buffer complete 0xed855c00, 0x0
[ 2994.974658] vip2-s0: Dropping frame
[ 2994.974662] vip2-s0: start_dma: dropped
[ 2994.975495] vip2-s0: get 1 buffer(s) of size 4147200 each.
[ 2994.975501] dma_alloc_attrs: start
[ 2994.978768] cma: cma_alloc(cma c10804d8, count 1013, align 8)
[ 2994.983188] cma: cma_alloc(pfn 1046016
[ 2994.983195] cma: cma_alloc(): returned eff8b800
[ 2994.987003] dma_alloc_attrs: end
[ 2994.991146] video1: 
[ 2994.991153] VIDIOC_CREATE_BUFS: index=4, count=1, memory=mmap, type=vid-cap, width=1920, height=1080, pixelformat=YUYV, field=none, bytesperline=3840, sizeimage=4147200, colorspace=1, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2995.010848] vip2-s0: IRQ 366 VIP_INT0_STATUS0 0x1
[ 2995.010851] vip2-s0: IRQ 0: handling LIST0_COMPLETE
[ 2995.010854] vip2-s0: vip buffer complete 0xed854600, 0x0
[ 2995.010859] vip2-s0: Dropping frame
[ 2995.010864] vip2-s0: start_dma: dropped
[ 2995.011048] video1: VIDIOC_QUERYBUF: 00:00:00.00000000 index=4, type=vid-cap, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0xfd4000, length=4147200
[ 2995.011074] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 2995.011470] video1: VIDIOC_EXPBUF: fd=65, type=vid-cap, index=4, plane=0, flags=0x00080002
[ 2995.013122] vip2-s0: get 1 buffer(s) of size 4147200 each.
[ 2995.013128] dma_alloc_attrs: start
[ 2995.016559] cma: cma_alloc(cma c10804d8, count 1013, align 8)
[ 2995.016572] cma: cma_alloc(bitmap_maxno 6144, bitmap_no 6645)
[ 2995.016577] cma: cma_alloc(): returned   (null)
[ 2995.016582] dma_alloc_attrs: end
[ 2995.019706] vip 48990000.vip: dma_alloc_coherent of size 4149248 failed
[ 2995.026555] video1: VIDIOC_CREATE_BUFS: error -12: index=5, count=1, memory=mmap, type=vid-cap, width=1920, height=1080, pixelformat=YUYV, field=none, bytesperline=3840, sizeimage=4147200, colorspace=1, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 2995.041298] vip2-s0: IRQ 366 VIP_INT0_STATUS0 0x1
[ 2995.041304] vip2-s0: IRQ 0: handling LIST0_COMPLETE
[ 2995.041310] vip2-s0: vip buffer complete 0xeda03a00, 0x1
[ 2995.041315] vip2-s0: added next buffer
[ 2995.041321] vip2-s0: start_dma: vb2 buf idx:4, dma_addr:0xff600000
[ 2995.074627] vip2-s0: IRQ 366 VIP_INT0_STATUS0 0x1
[ 2995.074632] vip2-s0: IRQ 0: handling LIST0_COMPLETE
[ 2995.074637] vip2-s0: vip buffer complete 0xeda03c00, 0x1
[ 2995.074642] vip2-s0: Dropping frame
[ 2995.074647] vip2-s0: start_dma: dropped
[ 2995.107956] vip2-s0: IRQ 366 VIP_INT0_STATUS0 0x1
[ 2995.107963] vip2-s0: IRQ 0: handling LIST0_COMPLETE
[ 2995.107968] vip2-s0: vip buffer complete 0xedf37600, 0x1
[ 2995.107973] vip2-s0: added next buffer
[ 2995.107979] vip2-s0: start_dma: vb2 buf idx:0, dma_addr:0xfe600000
[ 2995.141287] vip2-s0: IRQ 366 VIP_INT0_STATUS0 0x1
[ 2995.141293] vip2-s0: IRQ 0: handling LIST0_COMPLETE
[ 2995.141298] vip2-s0: vip buffer complete 0xedf78600, 0x0
[ 2995.141304] vip2-s0: added next buffer
[ 2995.141310] vip2-s0: start_dma: vb2 buf idx:3, dma_addr:0xff200000
[ 2995.174615] vip2-s0: IRQ 366 VIP_INT0_STATUS0 0x1
[ 2995.174622] vip2-s0: IRQ 0: handling LIST0_COMPLETE
[ 2995.174627] vip2-s0: vip buffer complete 0xeda03a00, 0x1
[ 2995.174632] vip2-s0: added next buffer
[ 2995.174637] vip2-s0: start_dma: vb2 buf idx:1, dma_addr:0xfea00000
[ 2995.197181] vip2-s0: vip_stop_streaming:
[ 2995.197190] vip2-s0: vip_disable_sc_path:
[ 2995.197199] adv7842 4-0020: adv7842_s_stream:
[ 2995.197206] vip2-s0: Clear channel no: 38
[ 2995.197224] video1: VIDIOC_STREAMOFF: type=vid-cap
[ 2995.199212] cma: cma_release(page eff67800)
[ 2995.199710] cma: cma_release(page eff70800)
[ 2995.204001] cma: cma_release(page eff79800)
[ 2995.204491] cma: cma_release(page eff82800)
[ 2995.204976] cma: cma_release(page eff8b800)
[ 2995.205441] video1: VIDIOC_REQBUFS: count=0, type=vid-cap, memory=mmap
[ 2995.243130] vip2-s0: vip_release
[ 2995.243142] vip2-s0: vip_release_stream: stream instance 0xc058041cee134000
[ 2995.243149] vip2-s0: vip_release_port: port instance 0xed96a0c0ed9e8410
root@am57xx-evm:~# 

Thanks in advance

Marc

  • The software team have been notified. They will respond here.
  • Hello,
    is there any update on this? We paused evaluation of the AM572x EVM due to this error. Which cma pools are used for the v4l2 dma alloc? And how can those pools be increased? As already mentioned we are using gstreamer pipelines. In the log files above, the error can be inspected.

    Thanks

    Marc
  • Sorry for the delay. The person who can help on this is currently travelling and will be back in office on Monday.
  • You can specify the cma pool size in kernel bootargs as cma=64M. If that doesn't work, you can try cma=128M.

  • I tried below pipeline at my end and I do not need to increase the CMA pool size with it -
    gst-launch-1.0 -v v4l2src device=/dev/video1 num-buffers=1800 io-mode=4 ! 'video/x-raw,format=(string)YUY2,width=1920,height=1080' ! queue ! vpe num-input-buffers=8 ! 'video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080' ! tee name=t ! queue ! ducatih264enc profile=high level=51 ! queue ! filesink location=test.264 t. ! queue ! kmssink
  • We are recording to USB stick! You should start and stop (CTRL-C) the pipeline several times for the error to occur. Also when switching on debug output the error occurs more often.
  • Do you mean to say that dma alloc coherent failed error doesn't happen first time. You have to CTRLC multiple times to hit the buffer alloc failed error?? If so, CRTL-C with gst-launch may not be having clean exit. You may want to experiment that with actual gstreamer application and not gst-launch toll based pipeline.
  • Hi Manisha,

    I will use own gstreamer application and evaluate again. When the pipeline runs for a long time, the error also occurs. But it takes much longer (several hours). When hitting CTRL-C several times and restarting, the error occurs immediately. Perhaps you could add a third branch to your example pipeline (recording, streaming, live view) and let it run for a long time. That's exactly our application. Recording should be done on USB stick. Perhaps you can reproduce the error.

    I have some additional questions:

    1. From where does V4L2 get it's buffers from? There are several cma pools defined in the devicetree. What is the default size of the video buffer pool?
    2. Which pools are used by gstreamer ducati plugins for buffer exchange (arm-dsp-h264 encoder)?
    2. Is there a way to look inside the pools to see free space and fragmentation?

    Thanks for your help

    Marc
  • Hi Manisha,

    the error also happens at the first run of gst-launch after startup. When I use your pipeline above, it runs fine.

    gst-launch-1.0 -v v4l2src device=/dev/video1 num-buffers=1800 io-mode=4 ! 'video/x-raw,format=(string)YUY2,width=1920,height=1080' ! queue ! vpe num-input-buffers=8 ! 'video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080' ! tee name=t ! queue ! ducatih264enc profile=high level=51 ! queue ! filesink location=test.264 t. ! queue ! kmssink

    But when I use kmssink connector=36 for HDMI output, it aborts immediately. It is always the same cma alloc failed error (see error logs above). 5 buffers can be allocated and when trying to allocate the sixth buffer, NULL is returned. I did setenv cma 128M at the boot prompt, but that didn't help. I expected when increasing cma to 128M, more than 5 buffers can be allocated. But it is the same behaviour as before. From where does v4l2 allocate it's memory?

    I have enabled v4l2, vip, vpe debug messages and kernel features -> cma debug messages which generates additional load. This produces the error more often.

    Marc

  • Hi Marc,

    I am able to reproduce the issue. We will look into this and get back.

    Regards,
    Manisha
  • Hi Marc,

    Can you apply below VIP patch and rebuild the  VIP driver, as well in your gstreamer pipeline, use inter-interval=1 for encoder configuration. Let me know if this helps to solve the issue. 

    PLSDK-1426 am571x-idk, am572x-idk, am572x-evm Dual Camera test fails on AM571/2 IDK and AM572x GP EVM vip driver patch available at http://git.ti.com/processor-sdk/processor-sdk-linux/commit/a0af4124c35edb2713887f4d3ec14a30844b3f99
  • Hi Manisha,

    thanks for the quick response. Unfortunately I am out of office tomorrow and next week. When I return, I will immediately check your patch and give you information.

    By the way, the dmabuftest tool doesn't work for psdk 04.00. There is a v4l2 allocation ioctl error. Perhaps this is the same error?!

    Marc
  • yes, this is the same error.
  • Hello,

    This thread is also discussed here:
    e2e.ti.com/.../2293106

    Please, Marc do not open two e2e topics in  two different forums for the same issue in the future.

    BR
    Margarita

  • Hi Margarita,

    sorry for that. I just wanted to start a new clean thread here and also referenced the old thread. I will avoid this in the future.

    Greetings

    Marc
  • Hi Manisha,

    I applied your patch and did some tests with the following results:

    dmabuftest output on local display:

    dmabuftest -s 32:1920x1080 -c 1920x1080@YUYV -d /dev/video1

    -> video is shown on local display and no error in dmesg

    dmabuftest output on HDMI monitor:

    dmabuftest -s 36:1920x1080 -c 1920x1080@YUYV -d /dev/video1

    -> video is NOT  shown on HDMI monitor and no error in dmesg

    gstreamer output on local display:

    gst-launch-1.0 v4l2src device=/dev/video1 io-mode=4 num-buffers=300 ! 'video/x-raw,format=(string)YUY2,width=1920,height=1080,framerate=(fraction)30/1' ! vpe num-input-buffers=8 ! 'video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080' ! tee name=t ! queue ! ducatih264enc inter-interval=1 ! queue ! h264parse ! mpegtsmux ! udpsink host=192.168.3.147 port=5555 sync=false t. ! queue ! kmssink connector=32 -v -e

    -> Video is shown on local dispay and no errors in dmesg, can be restarted many times

    gstreamer output on HDMI monitor:

    gst-launch-1.0 v4l2src device=/dev/video1 io-mode=4 num-buffers=300 ! 'video/x-raw,format=(string)YUY2,width=1920,height=1080,framerate=(fraction)30/1' ! vpe num-input-buffers=8 ! 'video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080' ! tee name=t ! queue ! ducatih264enc inter-interval=1 ! queue ! h264parse ! mpegtsmux ! udpsink host=192.168.3.147 port=5555 sync=false t. ! queue ! kmssink connector=36 -v -e

    -> sometimes it runs and sometimes it aborts immediately:

    gst-launch-1.0 v4l2src device=/dev/video1 io-mode=4 num-buffers=300 ! 'video/x-raw,format=(string)YUY2,width=1920,height=1080,framerate=(fraction)30/1' ! vpe num-input-buffers=8 ! 'video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080' ! tee name=t ! queue ! ducatih264enc inter-interval=1 ! queue ! h264parse ! mpegtsmux ! udpsink host=192.168.3.147 port=5555 sync=false t. ! queue ! kmssink connector=36 -v -e
    Setting pipeline to PAUSED ...
    Pipeline is live and does not need PREROLL ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)YUY2\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ colorimetry\=\(string\)bt601\,\ framerate\=\(fraction\)30/1"
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)YUY2\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ colorimetry\=\(string\)bt601\,\ framerate\=\(fraction\)30/1"
    /GstPipeline:pipeline0/GstVpe:vpe0.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"
    /GstPipeline:pipeline0/GstTee:t.GstTeePad:src_0: caps = "video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"
    /GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"
    /GstPipeline:pipeline0/GstDucatiH264Enc:ducatih264enc0.GstPad:src: caps = "video/x-h264\,\ alignment\=\(string\)au\,\ stream-format\=\(string\)byte-stream\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"
    /GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = "video/x-h264\,\ alignment\=\(string\)au\,\ stream-format\=\(string\)byte-stream\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"
    /GstPipeline:pipeline0/GstQueue:queue1.GstPad:src: caps = "video/x-h264\,\ alignment\=\(string\)au\,\ stream-format\=\(string\)byte-stream\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"
    /GstPipeline:pipeline0/GstQueue:queue1.GstPad:src: caps = "video/x-h264\,\ alignment\=\(string\)au\,\ stream-format\=\(string\)byte-stream\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"
    /GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = "video/x-h264\,\ alignment\=\(string\)au\,\ stream-format\=\(string\)byte-stream\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1\,\ parsed\=\(boolean\)true"
    /GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = "video/x-h264\,\ alignment\=\(string\)au\,\ stream-format\=\(string\)byte-stream\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1\,\ parsed\=\(boolean\)true"
    /GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = "video/x-h264\,\ alignment\=\(string\)au\,\ stream-format\=\(string\)byte-stream\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1\,\ parsed\=\(boolean\)true"
    /GstPipeline:pipeline0/MpegTsMux:mpegtsmux0.GstPad:sink_65: caps = "video/x-h264\,\ alignment\=\(string\)au\,\ stream-format\=\(string\)byte-stream\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1\,\ parsed\=\(boolean\)true"
    /GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:sink: caps = "video/x-h264\,\ alignment\=\(string\)au\,\ stream-format\=\(string\)byte-stream\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"
    /GstPipeline:pipeline0/GstDucatiH264Enc:ducatih264enc0.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"
    /GstPipeline:pipeline0/GstVpe:vpe0.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"
    /GstPipeline:pipeline0/GstDucatiH264Enc:ducatih264enc0.GstPad:src: caps = "video/x-h264\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ stream-format\=\(string\)byte-stream\,\ align\=\(string\)au\,\ num-reorder-frames\=\(int\)0\,\ profile\=\(string\)high\,\ level\=\(string\)4"
    /GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = "video/x-h264\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ stream-format\=\(string\)byte-stream\,\ align\=\(string\)au\,\ num-reorder-frames\=\(int\)0\,\ profile\=\(string\)high\,\ level\=\(string\)4"
    /GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = "video/x-h264\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ stream-format\=\(string\)byte-stream\,\ align\=\(string\)au\,\ num-reorder-frames\=\(int\)0\,\ profile\=\(string\)high\,\ level\=\(string\)4"
    /GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = "video/x-h264\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ stream-format\=\(string\)byte-stream\,\ align\=\(string\)au\,\ num-reorder-frames\=\(int\)0\,\ profile\=\(string\)high\,\ level\=\(string\)4"
    /GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = "video/x-h264\,\ width\=\(int\)1920\,\ height\=\(int\)1088\,\ framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ stream-format\=\(string\)byte-stream\,\ align\=\(string\)au\,\ num-reorder-frames\=\(int\)0\,\ profile\=\(string\)high\,\ level\=\(string\)4\,\ parsed\=\(boolean\)true\,\ alignment\=\(string\)au"
    /GstPipeline:pipeline0/MpegTsMux:mpegtsmux0.GstPad:sink_65: caps = "video/x-h264\,\ width\=\(int\)1920\,\ height\=\(int\)1088\,\ framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ stream-format\=\(string\)byte-stream\,\ align\=\(string\)au\,\ num-reorder-frames\=\(int\)0\,\ profile\=\(string\)high\,\ level\=\(string\)4\,\ parsed\=\(boolean\)true\,\ alignment\=\(string\)au"
    /GstPipeline:pipeline0/MpegTsMux:mpegtsmux0.GstPad:src: caps = "video/mpegts\,\ systemstream\=\(boolean\)true\,\ packetsize\=\(int\)188"
    /GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = "video/mpegts\,\ systemstream\=\(boolean\)true\,\ packetsize\=\(int\)188"
    /GstPipeline:pipeline0/MpegTsMux:mpegtsmux0.GstPad:src: caps = "video/mpegts\,\ systemstream\=\(boolean\)true\,\ packetsize\=\(int\)188\,\ streamheader\=\(buffer\)\<\ 47400030a600ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000b00d0001c100000001e020a2c32941\,\ 474020308b00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0002b0280001c10000e041f00c050448444d5688040ffffcfc1be041f00a050848444d56ff1b443f5a3175c0\ \>"
    /GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = "video/mpegts\,\ systemstream\=\(boolean\)true\,\ packetsize\=\(int\)188\,\ streamheader\=\(buffer\)\<\ 47400030a600ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000b00d0001c100000001e020a2c32941\,\ 474020308b00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0002b0280001c10000e041f00c050448444d5688040ffffcfc1be041f00a050848444d56ff1b443f5a3175c0\ \>"

    ** (gst-launch-1.0:1256): CRITICAL **: gst_fd_memory_get_fd: assertion 'GST_IS_FD_ALLOCATOR (mem->allocator)' failed

    ** (gst-launch-1.0:1256): CRITICAL **: gst_fd_memory_get_fd: assertion 'GST_IS_FD_ALLOCATOR (mem->allocator)' failed

    ** (gst-launch-1.0:1256): CRITICAL **: gst_fd_memory_get_fd: assertion 'GST_IS_FD_ALLOCATOR (mem->allocator)' failed

    ** (gst-launch-1.0:1256): CRITICAL **: gst_fd_memory_get_fd: assertion 'GST_IS_FD_ALLOCATOR (mem->allocator)' failed
    ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.
    Additional debug info:
    ../../../../gstreamer-1.8.3/libs/gst/base/gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
    streaming task paused, reason error (-5)
    EOS on shutdown enabled -- waiting for EOS after Error
    Waiting for EOS...
    Got EOS from element "pipeline0".
    EOS received - stopping pipeline...
    Execution ended after 0:00:00.532600108
    Setting pipeline to PAUSED ...
    Setting pipeline to READY ...
    Setting pipeline to NULL ...
    Freeing pipeline ...
    root@am57xx-evm:~# dmesg
    [ 362.448603] omap-iommu 55082000.mmu: 55082000.mmu: version 2.1
    [ 362.491321] adv7842 4-0020: adv7842_set_format start
    [ 362.929574] vip 48990000.vip: dma_alloc_coherent of size 4149248 failed
    root@am57xx-evm:~#