修改r x 0配置文件如下,会有 [S0] hw drop frame的错误打印。
[12027.041842] vps mipi_dev0 stl: fifo full check done
[12027.041864] vps mipi_dev0 stl: start done
[12027.146643] [S0]hw drop frame
[12027.146651] [P0]pym_handle_interrupt: lost frame end!!!
[12027.146671] [S0]dma reset done
[12027.213307] [S0]hw drop frame
[12027.213313] [P0]pym_handle_interrupt: lost frame end!!!
[12027.213331] [S0]dma reset done
[12027.279967] [S0]hw drop frame
[12027.279973] [P0]pym_handle_interrupt: lost frame end!!!
[12027.279990] [S0]dma reset done
[12027.313304] [S0] sw frame timeout
具体配置文件的修改: cim_config.json 通过pym0_en输出,
cim_config.json 文件:
{
"pipeline0":{
"cim": {
"input": {
"mipi": {
"enable": 1,
"width": 1921,
"height": 1080,
"format": 30,
"vc_index": 0,
"rx_index": 0,
"channels": 1,
"raw16_splict": 0,
"dbg_clear": 0,
"y_uv_swap": 0,
"tag_enable": 0,
"function": {
"enable_frame_id": 1,
"pack_mode": 0,
"enable_bypass": 0,
"enable_id_decoder": 0,
"enable_pattern": 0,
"hdr_mode": 0,
"set_init_frame_id": 1,
"set_bypass_channels": 1
}
}
},
"output": {
"pym": {
"pym0_en": 1,
"pym1_en": 0
},
"isp0": {
"isp_ch0": 0,
"isp_ch1": 0,
"isp_ch2": 0,
"isp_ch3": 0
},
"isp1":{
"isp_ch0": 0,
"isp_ch1": 0,
"isp_ch2": 0,
"isp_ch3": 0
}
}
}
}
}
vpm_config.json
{
"pipeline0": {
"pym": {
"pym_config": {
"pym_hw_id":0,
"pym_mode": 4,
"output_buf_num": 6,
"time_out": 6000,
"y_hor_coeff4": 0,
"y_hor_coeff3": 1,
"y_hor_coeff2": 1,
"y_hor_coeff1": 0,
"y_hor_coeff0": 0,
"y_ver_coeff4": 0,
"y_ver_coeff3": 1,
"y_ver_coeff2": 1,
"y_ver_coeff1": 0,
"y_ver_coeff0": 0,
"c_hor_coeff4": 0,
"c_hor_coeff3": 1,
"c_hor_coeff2": 1,
"c_hor_coeff1": 0,
"c_hor_coeff0": 0,
"c_ver_coeff4": 0,
"c_ver_coeff3": 1,
"c_ver_coeff2": 1,
"c_ver_coeff1": 0,
"c_ver_coeff0": 0,
"y_right_shift": 2,
"c_right_shift": 2
},
"pym_ctrl": {
"source_en": 1,
"src_uv_bypass": 0,
"src_in_width": 1921,
"src_in_height": 1080,
"src_in_stride_y": 1920,
"src_in_stride_uv": 1920,
"src_start_top": 0,
"src_start_left": 0,
"src_region_width": 1920,
"src_region_height": 1080,
"src_out_stride_y": 1920,
"src_out_stride_uv": 1920,
"suffix_hb_val": 68,
"prefix_hb_val": 2,
"suffix_vb_val": 20,
"prefix_vb_val": 2,
"pixel_num_before_sol": 16,
"gs_max_layer_en": 5,
"gs_en": 0,
"gs_uv_bypass": 0,
"gauss_info": [
{
"gs_start_top": 0,
"gs_start_left": 0,
"gs_region_width": 960,
"gs_region_height": 512,
"gs_stride_y": 960,
"gs_stride_uv": 960
},