Hello Community:
I'm using a imx8QuadMax MEK to capture camera stream by MAX9296.
My Yocto is LF5.15.5_1.0.0.
Now I have done MAX9296 driver by imitating the driver of MAX9286 at drivers/staging/media/imx/gmsl-max9286.c as attch shown. I enable dev_dbg function for csi and isi drivers to get register value.
When I run ./mx8_v4l2_cap_drm.out -cam 1 -fmt YUYV -of, I get isi IRQ Panic OFLW Error. Below is kernel print I got:
[ 35.680384] mxc-mipi-csi2 58227000.csi: width=1280, height=960, fmt.code=0x2008
[ 35.687811] isi-capture 58100000.isi:cap_device: mxc_isi_cap_enum_fmt
[ 35.694303] isi-capture 58100000.isi:cap_device: mxc_isi_cap_enum_fmt
[ 35.701035] isi-capture 58100000.isi:cap_device: mxc_isi_cap_enum_fmt
[ 35.707516] isi-capture 58100000.isi:cap_device: mxc_isi_cap_enum_fmt
[ 35.714018] isi-capture 58100000.isi:cap_device: mxc_isi_cap_enum_fmt
[ 35.720487] isi-capture 58100000.isi:cap_device: mxc_isi_cap_enum_fmt
[ 35.727158] isi-capture 58100000.isi:cap_device: mxc_isi_cap_enum_fmt
[ 35.733684] isi-capture 58100000.isi:cap_device: mxc_isi_cap_enum_fmt
[ 35.740197] isi-capture 58100000.isi:cap_device: mxc_isi_cap_enum_fmt
[ 35.746676] isi-capture 58100000.isi:cap_device: mxc_isi_cap_enum_fmt
[ 35.753164] isi-capture 58100000.isi:cap_device: mxc_isi_cap_s_fmt_mplane, fmt=0x56595559
[ 35.761366] isi-capture 58100000.isi:cap_device: mxc_isi_cap_try_fmt_mplane
[ 35.768361] isi-capture 58100000.isi:cap_device: mxc_isi_cap_g_fmt_mplane
[ 35.775231] isi-capture 58100000.isi:cap_device: cap_vb2_queue_setup, buf_n=3, size=2457600
[ 35.790064] isi-capture 58100000.isi:cap_device: cap_vb2_buffer_prepare
[ 35.796726] isi-capture 58100000.isi:cap_device: cap_vb2_buffer_prepare
[ 35.803380] isi-capture 58100000.isi:cap_device: cap_vb2_buffer_prepare
[ 35.810037] isi-capture 58100000.isi:cap_device: mxc_isi_cap_streamon
[ 35.816514] mxc-mipi-csi2 58227000.csi: width=1280, height=960, fmt.code=0x2008
[ 35.828865] bypass csc
[ 35.831228] input fmt YUV4
[ 35.833955] output fmt YUYV
[ 35.836773] mxc-isi 58100000.isi: mxc_isi_channel_set_scaling: no scale
[ 35.843420] isi-capture 58100000.isi:cap_device: cap_vb2_start_streaming
[ 35.851896] isi-capture 58100000.isi:cap_device: cap_vb2_start_streaming: num_plane=0 discard_size=2457600 discard_buffer=00000000c5273650
[ 35.864383] mxc-isi 58100000.isi: ISI CHNLC register dump, isi0
[ 35.870334] mxc-isi 58100000.isi: CHNL_CTRL[0x00]: e0ff0002
[ 35.876887] mxc-isi 58100000.isi: CHNL_IMG_CTRL[0x04]: 20000001
[ 35.883441] mxc-isi 58100000.isi: CHNL_OUT_BUF_CTRL[0x08]: 0000c092
[ 35.889991] mxc-isi 58100000.isi: CHNL_IMG_CFG[0x0c]: 03c00500
[ 35.896541] mxc-isi 58100000.isi: CHNL_IER[0x10]: 3dff0000
[ 35.903092] mxc-isi 58100000.isi: CHNL_STS[0x14]: 00000200
[ 35.909643] mxc-isi 58100000.isi: CHNL_SCALE_FACTOR[0x18]: 10001000
[ 35.916196] mxc-isi 58100000.isi: CHNL_SCALE_OFFSET[0x1c]: 00000000
[ 35.922759] mxc-isi 58100000.isi: CHNL_CROP_ULC[0x20]: 00000000
[ 35.929309] mxc-isi 58100000.isi: CHNL_CROP_LRC[0x24]: 00000000
[ 35.935860] mxc-isi 58100000.isi: CHNL_CSC_COEFF0[0x28]: 00000000
[ 35.942411] mxc-isi 58100000.isi: CHNL_CSC_COEFF1[0x2c]: 00000000
[ 35.948960] mxc-isi 58100000.isi: CHNL_CSC_COEFF2[0x30]: 00000000
[ 35.955510] mxc-isi 58100000.isi: CHNL_CSC_COEFF3[0x34]: 00000000
[ 35.962063] mxc-isi 58100000.isi: CHNL_CSC_COEFF4[0x38]: 00000000
[ 35.968613] mxc-isi 58100000.isi: CHNL_CSC_COEFF5[0x3c]: 00000000
[ 35.975172] mxc-isi 58100000.isi: CHNL_ROI_0_ALPHA[0x40]: 00000000
[ 35.981723] mxc-isi 58100000.isi: CHNL_ROI_0_ULC[0x44]: 00000000
[ 35.988273] mxc-isi 58100000.isi: CHNL_ROI_0_LRC[0x48]: 00000000
[ 35.994824] mxc-isi 58100000.isi: CHNL_ROI_1_ALPHA[0x4c]: 00000000
[ 36.001372] mxc-isi 58100000.isi: CHNL_ROI_1_ULC[0x50]: 00000000
[ 36.007923] mxc-isi 58100000.isi: CHNL_ROI_1_LRC[0x54]: 00000000
[ 36.014476] mxc-isi 58100000.isi: CHNL_ROI_2_ALPHA[0x58]: 00000000
[ 36.021026] mxc-isi 58100000.isi: CHNL_ROI_2_ULC[0x5c]: 00000000
[ 36.027573] mxc-isi 58100000.isi: CHNL_ROI_2_LRC[0x60]: 00000000
[ 36.034126] mxc-isi 58100000.isi: CHNL_ROI_3_ALPHA[0x64]: 00000000
[ 36.040675] mxc-isi 58100000.isi: CHNL_ROI_3_ULC[0x68]: 00000000
[ 36.047230] mxc-isi 58100000.isi: CHNL_ROI_3_LRC[0x6c]: 00000000
[ 36.053786] mxc-isi 58100000.isi: CHNL_OUT_BUF1_ADDR_Y[0x70]: c0c00000
[ 36.060335] mxc-isi 58100000.isi: CHNL_OUT_BUF1_ADDR_U[0x74]: 00000000
[ 36.066894] mxc-isi 58100000.isi: CHNL_OUT_BUF1_ADDR_V[0x78]: 00000000
[ 36.073443] mxc-isi 58100000.isi: CHNL_OUT_BUF_PITCH[0x7c]: 00000a00
[ 36.079995] mxc-isi 58100000.isi: CHNL_IN_BUF_ADDR[0x80]: 00000000
[ 36.086546] mxc-isi 58100000.isi: CHNL_IN_BUF_PITCH[0x84]: 00000000
[ 36.093098] mxc-isi 58100000.isi: CHNL_MEM_RD_CTRL[0x88]: 00000000
[ 36.099646] mxc-isi 58100000.isi: CHNL_OUT_BUF2_ADDR_Y[0x8c]: c0300000
[ 36.106197] mxc-isi 58100000.isi: CHNL_OUT_BUF2_ADDR_U[0x90]: 00000000
[ 36.112746] mxc-isi 58100000.isi: CHNL_OUT_BUF2_ADDR_V[0x94]: 00000000
[ 36.119299] mxc-isi 58100000.isi: CHNL_SCL_IMG_CFG[0x98]: 03c00500
[ 36.448622] isi-capture 58100000.isi:cap_device: mxc_isi.1.capture is no v4l2 subdev
[ 36.456387] isi-capture 58100000.isi:cap_device: subdev mxc_isi.1 do s_stream
[ 36.463552] isi-capture 58100000.isi:cap_device: mxc_isi.2.capture is no v4l2 subdev
[ 36.471316] isi-capture 58100000.isi:cap_device: subdev mxc_isi.2 do s_stream
[ 36.478475] isi-capture 58100000.isi:cap_device: mxc_isi.3.capture is no v4l2 subdev
[ 36.486242] isi-capture 58100000.isi:cap_device: subdev mxc_isi.3 do s_stream
[ 36.493400] isi-capture 58100000.isi:cap_device: subdev max9296 2-0048 do s_stream
[ 36.534570] max9296 2-0048: max9296_s_stream,open
[ 36.539285] isi-capture 58100000.isi:cap_device: subdev mxc-mipi-csi2.0 do s_stream
[ 36.546968] mxc-mipi-csi2 58227000.csi: mipi_csi2_s_stream: 1, csi2dev: 0x0
[ 36.554059] mxc-mipi-csi2 58227000.csi: width=1280, height=960, fmt.code=0x2008
[ 36.561415] mxc-mipi-csi2 58227000.csi: MIPI CSI2 CSR and HC register dump, mipi csi0
[ 36.561451] mxc-isi 58100000.isi: mxc_isi_irq_handler, IRQ Panic OFLW Error stat=0x40200
[ 36.569274] mxc-mipi-csi2 58227000.csi: MIPI CSI2 HC num of lanes[0x100]: 0x00000003
[ 36.577353] mxc-isi 58100000.isi: mxc_isi_irq_handler, IRQ Panic OFLW Error stat=0x40040200
[ 36.577366] mxc-isi 58100000.isi: mxc_isi_irq_handler, IRQ Panic OFLW Error stat=0x40200
[ 36.585112] mxc-mipi-csi2 58227000.csi: MIPI CSI2 HC dis lanes[0x104]: 0x00000000
[ 36.593465] mxc-isi 58100000.isi: mxc_isi_irq_handler, IRQ Panic OFLW Error stat=0x40040200
[ 36.593479] mxc-isi 58100000.isi: mxc_isi_irq_handler, IRQ Panic OFLW Error stat=0x40040200
[ 36.601573] mxc-mipi-csi2 58227000.csi: MIPI CSI2 HC BIT ERR[0x108]: 0x00000000
[ 36.609063] mxc-isi 58100000.isi: mxc_isi_irq_handler, IRQ Panic OFLW Error stat=0x60040100
[ 36.617421] mxc-mipi-csi2 58227000.csi: MIPI CSI2 HC IRQ STATUS[0x10c]: 0x00000008
[ 36.649022] mxc-mipi-csi2 58227000.csi: MIPI CSI2 HC IRQ MASK[0x110]: 0x000001ff
[ 36.656445] mxc-mipi-csi2 58227000.csi: MIPI CSI2 HC ULPS STATUS[0x114]: 0x00000000
[ 36.664128] mxc-mipi-csi2 58227000.csi: MIPI CSI2 HC DPHY ErrSotHS[0x118]: 0x00000000
[ 36.671994] mxc-mipi-csi2 58227000.csi: MIPI CSI2 HC DPHY ErrSotSync[0x11c]: 0x00000000
[ 36.680036] mxc-mipi-csi2 58227000.csi: MIPI CSI2 HC DPHY ErrEsc[0x120]: 0x00000000
[ 36.687721] mxc-mipi-csi2 58227000.csi: MIPI CSI2 HC DPHY ErrSyncEsc[0x124]: 0x00000000
[ 36.695750] mxc-mipi-csi2 58227000.csi: MIPI CSI2 HC DPHY ErrControl[0x128]: 0x00000000
[ 36.703791] mxc-mipi-csi2 58227000.csi: MIPI CSI2 HC DISABLE_PAYLOAD[0x12c]: 0x00000000
[ 36.711825] mxc-mipi-csi2 58227000.csi: MIPI CSI2 HC DISABLE_PAYLOAD[0x130]: 0x00000000
[ 36.719855] mxc-mipi-csi2 58227000.csi: MIPI CSI2 HC IGNORE_VC[0x180]: 0x00000000
[ 36.727363] mxc-mipi-csi2 58227000.csi: MIPI CSI2 HC VID_VC[0x184]: 0x00000000
[ 36.734703] mxc-mipi-csi2 58227000.csi: MIPI CSI2 HC FIFO_SEND_LEVEL[0x188]: 0x00000000
[ 36.742729] mxc-mipi-csi2 58227000.csi: MIPI CSI2 HC VID_VSYNC[0x18c]: 0x00000000
[ 36.750237] mxc-mipi-csi2 58227000.csi: MIPI CSI2 HC VID_SYNC_FP[0x190]: 0x00000000
[ 36.757916] mxc-mipi-csi2 58227000.csi: MIPI CSI2 HC VID_HSYNC[0x194]: 0x00000000
[ 36.765427] mxc-mipi-csi2 58227000.csi: MIPI CSI2 HC VID_HSYNC_BP[0x198]: 0x00000000
[ 36.773200] mxc-mipi-csi2 58227000.csi: MIPI CSI2 CSR PLM_CTRL[0x000]: 0x00000801
[ 36.780714] mxc-mipi-csi2 58227000.csi: MIPI CSI2 CSR PHY_CTRL[0x004]: 0x002000cf
[ 36.788229] mxc-mipi-csi2 58227000.csi: MIPI CSI2 CSR PHY_Status[0x008]: 0x00000001
[ 36.795923] mxc-mipi-csi2 58227000.csi: MIPI CSI2 CSR PHY_Test_Status[0x010]: 0x00000000
[ 36.804053] mxc-mipi-csi2 58227000.csi: MIPI CSI2 CSR PHY_Test_Status[0x014]: 0x00000000
[ 36.812179] mxc-mipi-csi2 58227000.csi: MIPI CSI2 CSR PHY_Test_Status[0x018]: 0x00000000
[ 36.820297] mxc-mipi-csi2 58227000.csi: MIPI CSI2 CSR PHY_Test_Status[0x01c]: 0x00000000
[ 36.828422] mxc-mipi-csi2 58227000.csi: MIPI CSI2 CSR PHY_Test_Status[0x020]: 0x00000000
[ 36.836538] mxc-mipi-csi2 58227000.csi: MIPI CSI2 CSR VC Interlaced[0x030]: 0x00000000
[ 36.844479] mxc-mipi-csi2 58227000.csi: MIPI CSI2 CSR Data Type Dis[0x038]: 0x00000000
[ 36.852418] mxc-mipi-csi2 58227000.csi: MIPI CSI2 CSR 420 1st type[0x040]: 0x00000000
[ 36.860271] mxc-mipi-csi2 58227000.csi: MIPI CSI2 CSR Ctr_Ck_Rst_Ctr[0x044]: 0x00000001
[ 36.868300] mxc-mipi-csi2 58227000.csi: MIPI CSI2 CSR Stream Fencing[0x048]: 0x00000000
[ 36.876331] mxc-mipi-csi2 58227000.csi: MIPI CSI2 CSR Stream Fencing[0x04c]: 0x00000000
[ 36.884369] isi-capture 58100000.isi:cap_device: subdev mxc_isi.0 do s_stream
[ 36.891529] isi-capture 58100000.isi:cap_device: mxc_isi.0.capture is no v4l2 subdev
[ 36.899297] isi-capture 58100000.isi:cap_device: mxc_isi_pipeline_enable return -515
Then,mx8_v4l2_cap_drm.out just stuck here, like waitng data. Here is the log:
./mx8_v4l2_cap_drm.out -cam 1 -fmt YUYV -of
(init_video_channel:513): init channel[0] save_file_name=0.YUYV
(init_video_channel:517): init channel[0] v4l2_dev_name=/dev/video0 w/h=(1280,800)
(open_save_file:594): open 0.YUYV success
(open_v4l2_device:658): open /dev/video0 success
(v4l2_setup_dev:1201): planes=1 WxH@fps = 1280x960@30
(v4l2_device_streamon:1476): channel[0] v4l_dev=0x4 start capturing
Could someone please tell me what configures should I check?
Thanks.
Hi @YaosongHu,
I hope you are doing well. I appreciate your cooperation.
Could you please provide me with the output of the following command?
# v4l2-ctl -D -d /dev/video1
Thank you.
Best Regards,
Dhruvit.