v4l2ctl --all --device /dev/video0 crashed

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

v4l2ctl --all --device /dev/video0 crashed

2,251 次查看
yibhan
Contributor III

Dear nxp,

 

I have a problem when i check "v4l2-ctl --all --device /dev/video0", kernel always occures crashed like below:

command : v4l2-ctl --all --device /dev/video0

kernel version : 5.4.70-2.3.0

Could please check it ?

===============

Driver Info:[ 1329.561313] Unable to handle kernel NULL pointer dereference at virtual address 000000000000000c

Driver name : mxc-isi-m2m
Card type : mxc-isi-m2[ 1329.570984] Mem abort info:
m
Bus info : platform:58100000.isi:m2m_devic
Driver v[ 1329.579443] ESR = 0x96000004
ersion : 5.4.70
Capabilities : 0x84204000
Video Memory[ 1329.588166] EC = 0x25: DABT (current EL), IL = 32 bits
-to-Memory Multiplanar
Streaming
Extended Pix Format
Dev[ 1329.599126] SET = 0, FnV = 0
ice Capabilities
Device Caps : 0x04204000
Video Memory-[ 1329.607859] EA = 0, S1PTW = 0
to-Memory Multiplanar
Streaming
Extended Pix Format
Priori[ 1329.616669] Data abort info:
ty: 2
[ 1329.625173] ISV = 0, ISS = 0x00000004
[ 1329.629619] CM = 0, WnR = 0
[ 1329.632620] user pgtable: 4k pages, 48-bit VAs, pgdp=00000008bb9e2000
[ 1329.639088] [000000000000000c] pgd=0000000000000000
[ 1329.644001] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[ 1329.649582] Modules linked in: crct10dif_ce flexcan can_dev mxc_jpeg_encdec imx8_media_dev(C)
[ 1329.658125] CPU: 0 PID: 747 Comm: v4l2-ctl Tainted: G C 5.4.70-2.3.0+g4f2631b #1
[ 1329.666822] Hardware name: Freescale i.MX8QXP MEK (DT)
[ 1329.672047] pstate: 60000005 (nZCv daif -PAN -UAO)
[ 1329.676852] pc : mxc_isi_m2m_g_fmt_vid_cap+0x44/0xa8
[ 1329.681818] lr : mxc_isi_m2m_g_fmt_vid_cap+0x14/0xa8
[ 1329.686787] sp : ffff800011e8bb30
[ 1329.690097] x29: ffff800011e8bb30 x28: 00000000c0d05604
[ 1329.695412] x27: 0000000000000000 x26: ffffffffffffffed
[ 1329.700728] x25: ffff00083b01d088 x24: ffff80001125cd90
[ 1329.706045] x23: ffff000834501d08 x22: ffff0008340ada00
[ 1329.711362] x21: ffff000834501c00 x20: ffff000834501c08
[ 1329.716678] x19: ffff000834501c00 x18: 0000000000000000
[ 1329.721995] x17: 0000000000000000 x16: 0000000000000000
[ 1329.727312] x15: 0000000000000000 x14: 0000000000000000
[ 1329.732628] x13: 0000000000000000 x12: 0000000000000000
[ 1329.737945] x11: 0000000000000000 x10: 0000000000000000
[ 1329.743262] x9 : 0000000000000000 x8 : 0000000000000000
[ 1329.748579] x7 : 0000000000000000 x6 : 0000000000000000
[ 1329.753895] x5 : 0000000000000000 x4 : 0000000000000000
[ 1329.759212] x3 : 0000000000000007 x2 : ffff000834501c00
[ 1329.764529] x1 : 0000000000000009 x0 : ffff00083b01d080
[ 1329.769848] Call trace:
[ 1329.772293] mxc_isi_m2m_g_fmt_vid_cap+0x44/0xa8
[ 1329.776917] v4l_g_fmt+0xc8/0x2e0
[ 1329.780234] __video_do_ioctl+0x17c/0x3e0
[ 1329.784245] video_usercopy+0x184/0x5c0
[ 1329.788085] video_ioctl2+0x14/0x20
[ 1329.791578] v4l2_ioctl+0x3c/0x58
[ 1329.794897] do_vfs_ioctl+0x964/0xb48
[ 1329.798560] ksys_ioctl+0x78/0xa8
[ 1329.801881] __arm64_sys_ioctl+0x1c/0xb8
[ 1329.805812] el0_svc_common.constprop.0+0x68/0x160
[ 1329.810602] el0_svc_handler+0x20/0x80
[ 1329.814357] el0_svc+0x8/0x208
[ 1329.817421] Code: b9487c05 b9000e65 b9001664 f9445804 (b9400c84)
[ 1329.823523] ---[ end trace 24727c781193332b ]---

Message from syslogd@imx8qxpc0mek at Mon Apr 12 10:24:22 2021 ...
imx8qxpc0mek kernel: [ 1329.644001] Internal error: Oops: 96000004 [#1] PREEMPT SMP

Message from syslogd@imx8qxpc0mek at Mon Apr 12 10:24:22 2021 ...
imx8qxpc0mek kernel: [ 1329.817421] Code: b9487c05 b9000e65 b9001664 f9445804 (b9400c84)
Segmentation fault

===============

0 项奖励
回复
5 回复数

2,240 次查看
joanxie
NXP TechSupport
NXP TechSupport

did you use demo images or your own built image ? which port and camera did you connect your board?

0 项奖励
回复

2,231 次查看
joanxie
NXP TechSupport
NXP TechSupport

refer to your log, /dev/video0 is for mxc-isi-m2m , not for camera, try to use "v4l2ctl --all --device /dev /video1"

0 项奖励
回复

2,224 次查看
yibhan
Contributor III

Dear nxp,

Do you think it is no issue if above crash issue?

When I tried same command with other video number, it was no crashed but not in video0.

I think it can result to other problem during operation time.

Could you please tell me why this crash happen

0 项奖励
回复

2,218 次查看
joanxie
NXP TechSupport
NXP TechSupport

this is no issue, you can use v4l2-ctl --list-device, you can find /dev/video0 is for m2m-isi, which isn't for camera, /dev/video1 is for camera, that's why you get crash

 

0 项奖励
回复

2,236 次查看
yibhan
Contributor III

Dear nxp,

I am using imx8qxp mek board and /dev/video1 as camera.

0 项奖励
回复