csi bandwidth lack的问题
我调试了一款新Sensor,IMX582,设定sensor输出4000x3000,用测试程序rkisp_demo_lite可以抓到图像,用bypass节点可以抓4000x3000,用scal0节点也可以抓取缩小尺寸的图像,但是用ISPServer取图像的时候,在文件captuer.c中函数rkcif_irq_pingpong里读中断状态寄存器,会发生bandwidth lack错误,发生错误的代码片段如下:intstat = rkcif_read_register(cif_dev, CIF_REG_MIPI_LVDS_INTSTAT);
lastline = rkcif_read_register(cif_dev, CIF_REG_MIPI_LVDS_LINE_LINE_CNT_ID0_1);
/* clear all interrupts that has been triggered */
rkcif_write_register(cif_dev, CIF_REG_MIPI_LVDS_INTSTAT, intstat);
if (intstat & CSI_FIFO_OVERFLOW) {
cif_dev->irq_stats.csi_overflow_cnt++;
v4l2_err(&cif_dev->v4l2_dev,
"ERROR: csi fifo overflow, intstat:0x%x, lastline:%d!!\n",
intstat, lastline);
return;
}
if (intstat & CSI_BANDWIDTH_LACK) {
cif_dev->irq_stats.csi_bwidth_lack_cnt++;
v4l2_err(&cif_dev->v4l2_dev,
"ERROR: csi bandwidth lack, intstat:0x%x!!\n",
intstat);
return;
}
报错log:
ispserver: :wait stream start event...
rkispp0: scale0:0x0 out of range:
rkispp0: scale0:0x0 out of range:
rkispp0: scale0:0x0 out of range:
rkispp0: scale0:0x0 out of range:
rkispp0: scale0:0x0 out of range:
ispserver: :wait stream start event success ...
ispserver: :state=0
ispserver: :start engine...
rkcif_mipi_lvds: stream start streaming
rkcif_mipi_lvds: Allocate dummy buffer,fourcc RG10,height 3000,width 4000,size: 15360000
rockchip-mipi-csi2 ffb10000.mipi-csi2: stream on, src_sd: 78a2ba48, sd_name:rockchip-mipi-dphy-rx
rockchip-mipi-csi2 ffb10000.mipi-csi2: stream ON
rockchip-mipi-dphy-rx ff4b0000.csi-dphy: stream on:1
rockchip-mipi-dphy-rx: data_rate_mbps 1280
rockchip-mipi-dphy-rx ff4b0000.csi-dphy: stream on:1
zxx imx582 imx582_s_stream
rkcif_mipi_lvds: stream start streaming
ispserver: :rkisp_init engine succeed
ispserver: :wait stream stop event...
rkcif_mipi_lvds: ERROR: csi bandwidth lack, intstat:0x80000!!
大神们请帮忙看一下,这个错误是什么原因引起的呢,我看1126的介绍文档,应该可以支持这个分辨率的mipi输出的
页:
[1]