|
【Linux】
csi bandwidth lack的问题
发表于 2022-3-22 12:07:05
浏览:5503
|
回复:0
打印
只看该作者
[复制链接]
楼主
我调试了一款新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[1361]: [ispserver][thread_func]:wait stream start event...
[ 286.020477] rkispp0: scale0:0x0 out of range:
[ 286.020477] [width max:3264 ratio max:8 min:1]
[ 286.020549] rkispp0: scale0:0x0 out of range:
[ 286.020549] [width max:2080 ratio max:8 min:1]
[ 286.020568] rkispp0: scale0:0x0 out of range:
[ 286.020568] [width max:3264 ratio max:8 min:1]
[ 286.020586] rkispp0: scale0:0x0 out of range:
[ 286.020586] [width max:3264 ratio max:8 min:1]
[ 286.020603] rkispp0: scale0:0x0 out of range:
[ 286.020603] [width max:3264 ratio max:8 min:1]
ispserver[1361]: [ispserver][thread_func]:wait stream start event success ...
ispserver[1361]: [ispserver][thread_func]:state=0
ispserver[1361]: [ispserver][thread_func]:start engine...
[ 286.050456] rkcif_mipi_lvds: stream[0] start streaming
[ 286.059650] rkcif_mipi_lvds: Allocate dummy buffer,fourcc RG10,height 3000,width 4000,size: 15360000
[ 286.059764] rockchip-mipi-csi2 ffb10000.mipi-csi2: stream on, src_sd: 78a2ba48, sd_name:rockchip-mipi-dphy-rx
[ 286.059777] rockchip-mipi-csi2 ffb10000.mipi-csi2: stream ON
[ 286.059807] rockchip-mipi-dphy-rx ff4b0000.csi-dphy: stream on:1
[ 286.059823] rockchip-mipi-dphy-rx: data_rate_mbps 1280
[ 286.060860] rockchip-mipi-dphy-rx ff4b0000.csi-dphy: stream on:1
[ 286.060870] zxx imx582 imx582_s_stream
[ 286.571442] rkcif_mipi_lvds: stream[1] start streaming
ispserver[1361]: [ispserver][start_engine]:rkisp_init engine succeed
ispserver[1361]: [ispserver][thread_func]:wait stream stop event...
[ 286.590471] rkcif_mipi_lvds: ERROR: csi bandwidth lack, intstat:0x80000!!
大神们请帮忙看一下,这个错误是什么原因引起的呢,我看1126的介绍文档,应该可以支持这个分辨率的mipi输出的
|
|