重现步骤
Sometime, when i run process A use /dev/video1 (or 2). I CTRL+C to quit. After, i tryagain run process A -> I get log with error: vvcam-isp-subdev vvcam-isp-subdev.0: post event 4 return error
v4l2_drm_start error
期待结果和实际结果
What is issue? solution for this issue?
软硬件版本信息
HW: 01Studio CanMV
FW: k230_linux_sdk
错误日志
Log:
[ 3265.684254] vvcam-mipi 9000a800.mipi.0: vvcam_mipi_open
[ 3265.689812] vvcam-mipi 9000a800.mipi.0: csi reset
[ 3265.694566] vvcam-mipi 9000a800.mipi.0: sensor reset
[ 3265.700105] vvcam-mipi 9000a800.mipi.0: csi reset
[ 3265.704853] vvcam-mipi 9000a800.mipi.0: sensor reset
[ 3265.710175] vvcam-mipi 9000a800.mipi.0: set dev attr
[ 3265.715179] vvcam-mipi 9000a800.mipi.0: lanes: 2
[ 3265.719809] vvcam-mipi 9000a800.mipi.0: format: 43
[ 3265.724613] vvcam-mipi 9000a800.mipi.0: PHY freq: 1200M
[ 3265.729847] kd_vi_bind_source source(4), port(0)
[ 3265.735903] vvcam_cma_alloc *paddr is 40180000 size is 8192
[ 3265.743268] vvcam-mipi 9000a800.mipi.0: vvcam_mipi_release
[ 3265.749273] vvcam-isp-subdev vvcam-isp-subdev.0: post event 4 return error
v4l2_drm_start error
[ 3265.756223] ------------[ cut here ]------------
[ 3265.756226] WARNING: CPU: 0 PID: 1404 at drivers/media/common/videobuf2/videobuf2-core.c:1613 vb2_start_streaming+0xb2/0x10c
[ 3265.756243] Modules linked in: vvcam_video(O) vvcam_isp_subdev(O) vvcam_vb(O) vvcam_mipi(O) vvcam_isp(O) bluetooth ecdh_generic ecc 8189fs(O)
[ 3265.756265] CPU: 0 PID: 1404 Comm: person_detect.e Tainted: G O 6.6.36 #4
[ 3265.756272] Hardware name: Canaan CanMV-K230 (DT)
[ 3265.756274] epc : vb2_start_streaming+0xb2/0x10c
[ 3265.756279] ra : vb2_start_streaming+0x6a/0x10c
[ 3265.756284] epc : ffffffff807b2124 ra : ffffffff807b20dc sp : ffffffc8006e3bf0
[ 3265.756288] gp : ffffffff8118ef10 tp : ffffffd8044dd400 t0 : 73692d6d61637676
[ 3265.756292] t1 : 0000000000000076 t2 : 7073692d6d616376 s0 : ffffffc8006e3c30
[ 3265.756295] s1 : ffffffffffffffea a0 : ffffffffffffffea a1 : ffffffd83ef88688
[ 3265.756298] a2 : ffffffd83ef8b9a0 a3 : 0000000000000000 a4 : 0d4f64d6baea0f00
[ 3265.756301] a5 : 0000000000000003 a6 : 0000000000000008 a7 : 0000000000000038
[ 3265.756304] s2 : ffffffd803c7d898 s3 : ffffffd803c7da90 s4 : 0000000000000001
[ 3265.756307] s5 : 0000000000000004 s6 : ffffffc8006e3d68 s7 : ffffffff811900a0
[ 3265.756310] s8 : 0000000000000000 s9 : ffffffd803c7db30 s10: 0000000000000000
[ 3265.756313] s11: ffffffd801849900 t3 : ffffffff811a2897 t4 : ffffffff811a2897
[ 3265.756316] t5 : ffffffff811a2898 t6 : ffffffc8006e36d8
[ 3265.756319] status: 0000000200000120 badaddr: 0000000000000000 cause: 0000000000000003
[ 3265.756323] [] vb2_start_streaming+0xb2/0x10c
[ 3265.756329] [] vb2_core_streamon+0x9a/0x14e
[ 3265.756334] [] vb2_ioctl_streamon+0x40/0x7c
[ 3265.756341] [] v4l_streamon+0x16/0x1e
[ 3265.756347] [] __video_do_ioctl+0x154/0x3c4
[ 3265.756353] [] video_usercopy+0x128/0x446
[ 3265.756360] [] video_ioctl2+0x14/0x1c
[ 3265.756365] [] v4l2_ioctl+0x2e/0x42
[ 3265.756370] [] __riscv_sys_ioctl+0x82/0x98
[ 3265.756378] [] do_trap_ecall_u+0x118/0x12c
[ 3265.756387] [] ret_from_exception+0x0/0x64
[ 3265.756394] ---[ end trace 0000000000000000 ]---
尝试解决过程
I must restart board, it run ok again.
补充材料