root@dra7xx-evm:~#yavta /dev/video0 -c10 -fUYVY -Fvout_test.yuv -s720x576 Device /dev/video0 opened. Device `vip' on `platform:vip' is a video output (without mplanes) device.[ 50.089373] ------------[ cut here ]------------ Video format set: UYVY (59565955) 128x128 (stride 256) field none buffer size 32768 Video format: UYVY (59565955) 128x128 (stride 256) field none buffer size 32768 8 buffers requested. length: 32768 offset: 0 timestamp type/source: mono/EoF Buffer 0/0 mapped at address 0xb6fdf000. length: 32768 offset: 32768 timestamp type/source: mono/EoF Buffer 1/0 mapped at address 0xb6ea1000. length: 32768 offset: 65536 timestamp type/source: mono/EoF Buffer 2/0 mapped at address 0xb6e99000. length: 32768 offset: 98304 timestamp type/source: mono/EoF Buffer 3/0 mapped at address 0xb6e91000. length: 32768 offset: 131072 timestamp type/source: mono/EoF Buffer 4/0 mapped at address 0xb6e89000. length: 32768 offset: 163840 timestamp type/source: mono/EoF Buffer 5/0 mapped at address 0xb6e81000. length: 32768 offset: 196608 timestamp type/source: mono/EoF Buffer 6/0 mapped at address 0xb6e79000. length: 32768 offset: 229376 timestamp type/source: mono/EoF Buffer 7/0 mapped at address 0xb6e71000. 0.101242] WARNING: CPU: 1 PID: 956 at drivers/media/v4l2-core/videobuf2-core.c:1315 vb2_start_streaming+0xe0/0x15c() [ 50.199675] Modules linked in: adv7180 bc_example(O) rpmsg_proto xfrm_user xfrm4_tunnel ipcomp xfrm_ipcomp esp4 virtio_rpmsg_bus ah4 af_key xfrm_algo bluetooth ahci_p latform libahci_platform pvrsrvkm(O) libahci libata c_can_platform extcon_usb_gpio c_can omap_aes_driver scsi_mod can_dev omap_sham dwc3_omap extcon rtc_omap omap_rng om ap_des rng_core omap_remoteproc remoteproc virtio virtio_ring sch_fq_codel [ 50.236221] CPU: 1 PID: 956 Comm: yavta Tainted: G W O 4.4.84-00031-g9bee036-dirty #190 [ 50.245217] Hardware name: Generic DRA74X (Flattened Device Tree) [ 50.251334] Backtrace: [ 50.253808] [] (dump_backtrace) from [] (show_stack+0x18/0x1c) [ 50.261407] r7:c04ac55c r6:600f0013 r5:00000000 r4:c09b5590 [ 50.267130] [] (show_stack) from [] (dump_stack+0x8c/0xa0) [ 50.274387] [] (dump_stack) from [] (warn_slowpath_common+0x88/0xb8) [ 50.282510] r7:c04ac55c r6:00000523 r5:00000009 r4:00000000 [ 50.288228] [] (warn_slowpath_common) from [] (warn_slowpath_null+0x24/0x2c) [ 50.297047] r8:c09d0964 r7:fffffdfd r6:edf5f87c r5:edf5fad0 r4:edf5f9d8 [ 50.303821] [] (warn_slowpath_null) from [] (vb2_start_streaming+0xe0/0x15c) [ 50.312648] [] (vb2_start_streaming) from [] (vb2_core_streamon+0x114/0x160) [ 50.321469] r7:c0498b80 r6:ee6d1000 r5:edc82300 r4:edf5f87c [ 50.327189] [] (vb2_core_streamon) from [] (vb2_streamon+0x38/0x58) [ 50.335223] r5:edc82300 r4:00000001 [ 50.338830] [] (vb2_streamon) from [] (vb2_ioctl_streamon+0x44/0x48) [ 50.346962] [] (vb2_ioctl_streamon) from [] (v4l_streamon+0x24/0x28) [ 50.355084] r5:40045612 r4:c04affd8 [ 50.358696] [] (v4l_streamon) from [] (__video_do_ioctl+0x2c0/0x334) [ 50.366818] r5:40045612 r4:00000001 [ 50.370427] [] (__video_do_ioctl) from [] (video_usercopy+0x1d0/0x4fc) [ 50.378723] r10:edcf1e30 r9:bec0270c r8:00000001 r7:00000000 r6:00000004 r5:00000004 [ 50.386624] r4:40045612 [ 50.389178] [] (video_usercopy) from [] (video_ioctl2+0x18/0x1c) [ 50.396952] r10:00000000 r9:edcf0000 r8:eeac10cc r7:bec0270c r6:40045612 r5:edc82300 [ 50.404854] r4:ee6d1000 [ 50.407407] [] (video_ioctl2) from [] (v4l2_ioctl+0xa8/0xe0) [ 50.414839] [] (v4l2_ioctl) from [] (do_vfs_ioctl+0x460/0x6dc) [ 50.422439] r9:edcf0000 r8:bec0270c r7:00000003 r6:edc82300 r5:d8c2c4c0 r4:bec0270c [ 50.430262] [] (do_vfs_ioctl) from [] (SyS_ioctl+0x3c/0x64) [ 50.437600] r10:00000000 r9:edcf0000 r8:bec0270c r7:40045612 r6:edc82300 r5:00000003 [ 50.445499] r4:edc82300 [ 50.448053] [] (SyS_ioctl) from [] (ret_fast_syscall+0x0/0x3c) [ 50.455653] r9:edcf0000 r8:c000fe24 r7:00000036 r6:0002736c r5:00000000 r4:00000008 [ 50.463535] ---[ end trace 8fa707bf247eebb8 ]--- Unable to start streaming: Inappropriate ioctl for device (25). 8 buffers released. root@dra7xx-evm:~# dmesg | grep vip [ 0.000000] Kernel command line: console=ttyO0,115200n8 vram=16M root=PARTUUID=ac319478-02 rw rootwait ip=none mem=1024M ti_vip.debug=8 [ 2.096169] vip1-s0: vip_set_slice_path: [ 2.096181] vip1-s0: vip_set_slice_path: DATA_PATH_SELECT(0000010C): 80008000 [ 2.096198] vip 48970000.vip: sc_create_inst [ 2.096213] vip 48970000.vip: csc_create [ 2.096578] vip1-s1: vip_set_slice_path: [ 2.096589] vip1-s1: vip_set_slice_path: DATA_PATH_SELECT(00000110): 80008000 [ 2.096605] vip 48970000.vip: sc_create_inst [ 2.096620] vip 48970000.vip: csc_create [ 2.096633] vip 48970000.vip: vpdma_create [ 2.096651] vip 48970000.vip: loading firmware vpdma-1b8.bin [ 2.102342] vip 48970000.vip: firmware callback [ 2.115035] vip 48970000.vip: VPDMA firmware loaded [ 2.119999] vip1-s0: can't get next endpoint: loop: 1 [ 2.120007] vip1-s0: register async notifier for 1 subdevs [ 2.120073] vip1-s1: can't get next endpoint: loop: 1 [ 2.120080] vip1-s1: register async notifier for 1 subdevs [ 47.365057] vip1-s1: vip_async_bound [ 47.365068] vip1-s1: Port B: Using subdev adv7180 0-0021 for capture [ 47.371453] vip1-s1: subdev adv7180 0-0021: code: 2006 idx: 0 [ 47.371462] vip1-s1: matched fourcc: NV12: code: 2006 idx: 0 [ 47.371470] vip1-s1: matched fourcc: UYVY: code: 2006 idx: 1 [ 47.371478] vip1-s1: matched fourcc: YUYV: code: 2006 idx: 2 [ 47.371485] vip1-s1: matched fourcc: VYUY: code: 2006 idx: 3 [ 47.371492] vip1-s1: matched fourcc: YVYU: code: 2006 idx: 4 [ 47.371499] vip1-s1: matched fourcc: RGB3: code: 2006 idx: 5 [ 47.371506] vip1-s1: matched fourcc: RGB4: code: 2006 idx: 6 [ 47.371512] vip1-s1: matched fourcc: BGR3: code: 2006 idx: 7 [ 47.371519] vip1-s1: matched fourcc: BGR4: code: 2006 idx: 8 [ 47.372741] vip1-s1: device registered as video0 [ 47.377896] vip1-s1: vip_async_complete [ 47.387612] vip1-s1: vip_open [ 47.387635] vip1-s1: vip_init_port: g_mbus_fmt subdev mbus_code: 2006 fourcc:NV12 size: 720x576 [ 47.387650] vip1-s1: calc_format_size: fourcc:NV12 size: 720x576 bpl:720 img_size:622080 [ 47.387660] vip1-s1: init_stream fourcc:NV12 size: 720x576 bpl:720 img_size:622080 [ 47.387668] vip1-s1: init_stream vpdma data type: 0x02 [ 47.387678] vip1-s1: vip_init_stream: stream instance 0xedf5f000 [ 47.387685] vip1-s1: vip_open sucess [ 47.387766] vip1-s1: vip_release [ 47.387780] vip1-s1: vip_release_stream: stream instance 0xedf5f000 [ 47.387789] vip1-s1: vip_release_port: port instance 0xeead1c10 [ 50.086399] vip1-s1: vip_open [ 50.086422] vip1-s1: vip_init_port: g_mbus_fmt subdev mbus_code: 2006 fourcc:NV12 size: 720x576 [ 50.086438] vip1-s1: calc_format_size: fourcc:NV12 size: 720x576 bpl:720 img_size:622080 [ 50.086447] vip1-s1: init_stream fourcc:NV12 size: 720x576 bpl:720 img_size:622080 [ 50.086455] vip1-s1: init_stream vpdma data type: 0x02 [ 50.086464] vip1-s1: vip_init_stream: stream instance 0xedf5f000 [ 50.086470] vip1-s1: vip_open sucess [ 50.086621] vip1-s1: s_fmt input fourcc:UYVY size: 720x576 [ 50.086630] vip1-s1: try_fmt fourcc:UYVY size: 720x576 [ 50.086639] vip1-s1: try_fmt best subdev size: 0x0 [ 50.086647] vip1-s1: calc_format_size: fourcc:UYVY size: 128x128 bpl:256 img_size:32768 [ 50.086654] vip1-s1: s_fmt try_fmt fourcc:UYVY size: 128x128 [ 50.086662] vip1-s1: s_fmt fourcc:UYVY size: 128x128 bpl:256 img_size:32768 [ 50.086670] vip1-s1: s_fmt pix_to_mbus mbus_code: 2006 size: 0x0 [ 50.086678] vip1-s1: s_fmt subdev fmt mbus_code: 2006 size: 720x576 [ 50.086684] vip1-s1: s_fmt vpdma data type: 0x27 [ 50.086716] vip1-s1: g_fmt fourcc:UYVY code: 2006 size: 128x128 bpl:256 img_size:32768 [ 50.086723] vip1-s1: g_fmt vpdma data type: 0x27 [ 50.086754] vip1-s1: get 8 buffer(s) of size 32768 each. [ 50.087757] vip 48970000.vip: hs config: src_w = 720, dst_w = 128, decimation = 4x, lin_acc_inc = 0168d1a3 [ 50.087772] vip 48970000.vip: vs config(RAV): src_h = 576, dst_h = 128, factor = 227, acc_init = 00000155, acc_init_b = 00000000 [ 50.087804] vip1-s1: Added mmr_adb config desc [ 50.087841] vip1-s1: Added sc_coeff_h config desc [ 50.087878] vip1-s1: Added sc_coeff_v config desc [ 50.087884] vip1-s1: CFD_SC_CLIENT 8 slice_id: 1 [ 50.087890] vip1-s1: Submitting desc on list# 0 [ 50.089026] vip1-s1: vip_set_slice_path: [ 50.089036] vip1-s1: vip_set_slice_path: DATA_PATH_SELECT(00000110): 20000018 [ 50.089043] vip1-s1: vip_set_slice_path: [ 50.089050] vip1-s1: vip_set_slice_path: DATA_PATH_SELECT(00000110): 70001018 [ 50.089056] vip1-s1: vip_set_slice_path: [ 50.089064] vip1-s1: vip_set_slice_path: DATA_PATH_SELECT(00000110): 90011018 [ 50.089070] vip1-s1: vip_set_slice_path: [ 50.089077] vip1-s1: vip_set_slice_path: DATA_PATH_SELECT(00000110): A0031018 [ 50.089083] vip1-s1: vip_set_slice_path: [ 50.089091] vip1-s1: vip_set_slice_path: DATA_PATH_SELECT(00000110): 50031018 [ 50.089366] vip1-s1: stream on failed in subdev [ 50.468531] vip1-s1: vip_release [ 50.468545] vip1-s1: vip_release_stream: stream instance 0xedf5f000 [ 50.468554] vip1-s1: vip_release_port: port instance 0xeead1c10