AnsweredAssumed Answered

imx6DL+TC358743  IPU_INT_STAT_5 問題

Question asked by Frank Weng on May 3, 2018
Latest reply on May 21, 2018 by Joan Xie

imx6DL+TC358743 使用mxc-v4l2-tvin -ol 0 -ot 0 -ow 1024 -oh 768 開起/dev/video0

會出現imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x00000001  錯誤

有IPU_INT_STAT_5 = 0x00000001  錯誤那裡沒有設定,才會有此問題,請協助我

問題已卡很久。

 

HDMI input 1024*768@60

mipi_clk:261Mhz

依然"MIPI–CSI2 Peripheral on i.MX6 MPUs.pdf"文件填MIPI_CSI2_PHY_TST_CTRL1 為0x0e

畫面如下(ow 1024 -oh 768 or ow 1920 -oh 1080  畫面都是下面的狀態)

mxc_V4l2_tvin_結果

 

  • 以下為mxc_v4l2_tvin LOG

4l2-tvin -ol 0 -ot 0 -ow 1024 -oh 768 -di /dev/video0 -do /dev/video16 <
cmd:di path:/dev/video0
In MVC: mxc_v4l_open

Set input dev path:/dev/video0 device name is Mxc Camera

cmd:do path:/dev/video16
Set mxc_v4l_open(1796) : dev_name =[Mxc Camera] ipu_id[0]/csi[0] ,cam->sensor=[c1287810]
output dev path:/dev/video16
mxc_v4l_open(1830): frank 6DL mask =[0x7]
mxc_v4l_open(1850): IPU_PRP!
ioctl_g_ifparm(2860) : clock_curr=mclk=27000000
End of mxc_v4l_open(1912): v2f pix widthxheight 288 x 352
End of mxc_v4l_open(1915): crop_bounds widthxheight 640 x 480
End of mxc_v4l_open(1918): crop_defrect widthxheight 640 x 480
End of mxc_v4l_open(1921): crop_current widthxheight 640 x 480
On Open: Input to ipu size is 640 x 480
ipu_csi_set_window_size(475): frank CSI0_ACT_FRM_SIZE=[0x1df027f]
ipu_csi_set_window_pos(502): frank CSI0_OUT_FRM_CTRL=[0x0]
ipu_csi_set_window_pos(503): frank CSI1_OUT_FRM_CTRL=[0x0]
ipu_csi_init_interface(192): frank FMT_YUYV
ipu_csi_init_interface(244) frank: 640x480 CSI_SENS_FRM_SIZE=[0x1df027f]!
_ipu_csi_ccir_err_detection_disable(650): frank CSI0_CCIR_CODE_1=[0x40030]
ipu_csi_init_interface(375): frank CSI0_ACT_FRM_SIZE=[0x1df027f]
ipu_csi_init_interface(376): frank CSI0_SENS_CONF=[0x900]
ioctl_s_power(2882) on=[1] td->mode=[0]:
ioctl_s_power(2885) :
tc358743_reset(2826) :
power_control(2414) : on=[0] sensor->on=[0]
power_control(2414) : on=[1] sensor->on=[0]
tc358743_minit(2805) :
tc358743_minit(2815) :capture mode: 0 fps: 60
tc358743_init_mode(2734) :rate: 60 mode: 0
tc358743_init_mode(2749) : rate: 60 mode: 0, info d421d000
tc358743_init_mode(2771) : get mipi_csi2_info:
mipi_en: 1
datatype: 30(0x1e)
dphy_clk: d421c100
pixel_clk: d421c180
mipi_csi2_base:ef88a000
pdev: d41a9000
lanes: 2
ipu_id: 0
csi_id: 0
mipi_reset(2633) tc358743 tc358743_mode_info_data lanes=[2]
mipi_reset(2658) : mipi_csi2_info:
mipi_en: 1
datatype: 30(0x1e)
dphy_clk: d421c100
pixel_clk: d421c180
mipi_csi2_base:ef88a000
pdev: d41a9000
lanes: 2
ipu_id: 0
csi_id: 0
mipi_csi2_get_status(135) : status=[0x1]
mipi_csi2_disable(116) : status=[0x0]
mipi_csi2_enable(88) : status=[0x1]
mipi_csi2_get_status(135) : status=[0x1]
mipi_csi2_set_lanes(155) : set MIPI_CSI_N_LANES(21D_C004h)=[ 2 Data Lanes]
mipi_reset(2672) tc358743 :Now Using 1 lanes
mipi_reset(2676):tc358743 frank DataType[0][0]=MIPI_DT_YUV422(0x1e):(30)
mipi_csi2_set_datatype(176) : dtype=[0x1e]
tc358743_init_mode(2784):tc358743 frank frame_rate=[60] ,mode=[0]
set_frame_rate_mode(2557) tc358743
get_format_index(2514) : name=[cb640x480-108MHz@60]
get_pixelformat(2530) tc358743 :
set_frame_rate_mode(2574) tc358743 : Set 44 regs from c0b82ad0 for frs 60 mode 0 with width 640 height 480
mipi_wait(2688) :
mipi_csi2_dphy_status(214) : status=[0x330]
mipi_wait(2703) tc358743 : 0 mipi csi2 dphy status 330
mipi_csi2_get_error1(233) : err1=[0x0]
mipi_wait(2722) tc358743 : 0 mipi csi2 err1 0
ioctl_init(3310) :
ioctl_dev_init(3466) :td->det_changed=[0]
mxc_v4l_do_ioctl(2153): frank case VIDIOC_QUERYCAP
mxc_v4l_do_ioctl(2651) VIDIOC_DBG_G_CHIP_IDENT
ioctl_g_chip_ident(3299) :
TV decoder chip is tc358743_mipimxc_v4l_do_ioctl(2576) VIDIOC_S_INPUT

mxc_streamoff(549): frank ipu0/csi0 capture_on=0 CSI IC MEM
mxc_v4l_do_ioctl(2596) csi_enc_select
mxc_v4l_do_ioctl(2515) VIDIOC_S_STD
mxc_v4l2_s_std(1631)
ERROR: unrecognized std! 0 (PAL=ff, NTSC=b000
mxc_v4l2_s_std(1657) crop_bounds.width =[720] height =[625]
mxc_v4l2_s_std(1658) crop_current.width =[720] height=[576]
mxc_v4l2_s_std(1659) crop_current.top =[0] left =[0]
mxc_v4l_do_ioctl(2350): frank case VIDIOC_CROPCAP
mxc_v4l_do_ioctl(2480) VIDIOC_S_PARM
mxc_v4l2_s_param(1495)
ioctl_g_parm(2948) : type: V4L2_BUF_TYPE_VIDEO_CAPTURE:1(0x1)
ioctl_g_parm(2981) : done 0
mxc_v4l2_s_param(1519)
Current capabilities are 1001
Current capturemode is 0 change to 0
Current framerate is 60 change to 0
mxc_v4l2_s_param(1527)
ioctl_s_parm(3003) :
power_control(2414) : on=[1] sensor->on=[1]
ioctl_s_parm(3010) : type: V4L2_BUF_TYPE_VIDEO_CAPTURE:1(0x1)
ioctl_s_parm(3012) : (u32)a->parm.capture.capturemode=[0]
ioctl_s_parm(3013) : td->mode=[0]
ioctl_s_parm(3014) : sensor->streamcap.capturemode=[0]
ioctl_s_parm(3018) : V4L2_BUF_TYPE_VIDEO_CAPTURE
ioctl_s_parm(3025):tc358743 frank timeperframe(numerator[1],denominator[60])
ioctl_s_parm(3029):tc358743 frank tgt_fps=[60]
ioctl_s_parm(3044):tc358743 frank tgt_fps=[60] timeperframe(denominator=[60] numerator=[1])
ioctl_s_parm(3051):tc358743 frank capturemode=[0]
ioctl_s_parm(3063):tc358743 frank tgt_fps=[60] sensor(denominator=[60] numerator=[1])
ioctl_s_parm(3065):tc358743 frank frame_rate=[60]hz
ioctl_s_parm(3067):tc358743 frank mode=[0]
ioctl_s_parm(3071):tc358743 frank mode=[13] capturemode=[13]
ioctl_s_parm(3093):tc358743 frank capture mode: 13
ioctl_s_parm(3094):tc358743 frank capture capturemode: 13
ioctl_s_parm(3095):tc358743 frank capture extendedmode: 13
tc358743_init_mode(2734) :rate: 60 mode: 13
tc358743_init_mode(2749) : rate: 60 mode: 13, info d421d000
tc358743_init_mode(2771) : get mipi_csi2_info:
mipi_en: 1
datatype: 30(0x1e)
dphy_clk: d421c100
pixel_clk: d421c180
mipi_csi2_base:ef88a000
pdev: d41a9000
lanes: 2
ipu_id: 0
csi_id: 0
mipi_reset(2633) tc358743 tc358743_mode_info_data lanes=[2]
mipi_reset(2658) : mipi_csi2_info:
mipi_en: 1
datatype: 30(0x1e)
dphy_clk: d421c100
pixel_clk: d421c180
mipi_csi2_base:ef88a000
pdev: d41a9000
lanes: 2
ipu_id: 0
csi_id: 0
mipi_csi2_get_status(135) : status=[0x1]
mipi_csi2_disable(116) : status=[0x0]
mipi_csi2_enable(88) : status=[0x1]
mipi_csi2_get_status(135) : status=[0x1]
mipi_csi2_set_lanes(155) : set MIPI_CSI_N_LANES(21D_C004h)=[ 2 Data Lanes]
mipi_reset(2672) tc358743 :Now Using 1 lanes
mipi_reset(2676):tc358743 frank DataType[0][13]=MIPI_DT_YUV422(0x1e):(30)
mipi_csi2_set_datatype(176) : dtype=[0x1e]
tc358743_init_mode(2784):tc358743 frank frame_rate=[60] ,mode=[13]
set_frame_rate_mode(2557) tc358743
get_format_index(2514) : name=[1024x768@60WF_in1905]
get_pixelformat(2530) tc358743 :
set_frame_rate_mode(2574) tc358743 : Set 67 regs from c0b85e9c for frs 60 mode 13 with width 1024 height 768
mipi_wait(2688) :
mipi_csi2_dphy_status(214) : status=[0x300]
mipi_wait(2703) tc358743 : 0 mipi csi2 dphy status 300
mipi_csi2_get_error1(233) : err1=[0x0]
mipi_wait(2722) tc358743 : 0 mipi csi2 err1 0
ioctl_g_ifparm(2860) : clock_curr=mclk=27000000
mxc_v4l2_s_param(1556) clock_curr=mclk=27000000
ipu_csi_set_window_size(475): frank CSI0_ACT_FRM_SIZE=[0x2ff03ff]
ipu_csi_set_window_pos(502): frank CSI0_OUT_FRM_CTRL=[0x0]
ipu_csi_set_window_pos(503): frank CSI1_OUT_FRM_CTRL=[0x0]
ipu_csi_init_interface(192): frank FMT_YUYV
ipu_csi_init_interface(244) frank: 1024x768 CSI_SENS_FRM_SIZE=[0x2ff03ff]!
_ipu_csi_ccir_err_detection_disable(650): frank CSI0_CCIR_CODE_1=[0x40030]
ipu_csi_init_interface(375): frank CSI0_ACT_FRM_SIZE=[0x2ff03ff]
ipu_csi_init_interface(376): frank CSI0_SENS_CONF=[0x900]
mxc_v4l_do_ioctl(2191): frank case VIDIOC_S_FMT
mxc_v4l2_s_fmt(985)
type=V4L2_BUF_TYPE_VIDEO_CAPTURE
valid_mode(434)
V4L2_PIX_FMT_UYVY:[0x59565955]
mxc_v4l2_s_fmt(1045)
V4L2_PIX_FMT_UYVY:[0x59565955]
mxc_v4l2_s_fmt(1110)
End of mxc_v4l2_s_fmt: v2f pix widthxheight 1024 x 768
End of mxc_v4l2_s_fmt: crop_bounds widthxheight 1024 x 768
End of mxc_v4l2_s_fmt: crop_defrect widthxheight 640 x 480
End of mxc_v4l2_s_fmt: crop_current widthxheight 1024 x 768
mxc_v4l2_s_fmt(1123)
mxc_v4l_do_ioctl(2170): frank case VIDIOC_G_FMT
mxc_v4l2_g_fmt(937) type=1
type is V4L2_BUF_TYPE_VIDEO_CAPTURE
mxc_v4l2_g_fmt(951)
End of mxc_v4l2_g_fmt: v2f pix widthxheight 1024 x 768
End of mxc_v4l2_g_fmt: crop_bounds widthxheight 1024 x 768
End of mxc_v4l2_g_fmt: crop_defrect widthxheight 640 x 480
End of mxc_v4l2_g_fmt: crop_current widthxheight 1024 x 768
mxc_v4l2_g_fmt(964)
mxc_v4l_do_ioctl(2201): frank case VIDIOC_REQBUFS
mxc_streamoff(549): frank ipu0/csi0 capture_on=0 CSI MEM
mxc_allocate_frame_buf(315) : In MVC:mxc_allocate_frame_buf - size=1572864
driver=mxc_vout, card=DISP3 BG, bus=, version=0x0004010f, capabilities=0x84200002
fmt RGB565: fourcc = 0x50424752
fmt BGR24: fourcc = 0x33524742
fmt RGB24: fourcc = 0x33424752
fmt RGB32: fourcc = 0x34424752
fmt BGR32: fourcc = 0x34524742
fmt NV12: fourcc = 0x3231564e
fmt UYVY: fourcc = 0x59565955
fmt YUYV: fourcc = 0x56595559
fmt YUV422 planar: fourcc = 0x50323234
fmt YUV444: fourcc = 0x34343459
fmt YUV420: fourcc = 0x32315559
fmt YVU420: fourcc = 0x32315659
mxc_v4l_do_ioctl(2230): frank case VIDIOC_QUERYBUF

mxc_v4l2_buffer_status(376)
fmt TILED NV12F: fourcc = 0x46564e54
fmt YUV444 planar: fourcc = 0x50343434
mxc_mmap(2711) pgoff=0x30a00, start=0xb64c0000, end=0xb6640000

mxc_v4l_do_ioctl(2230): frank case VIDIOC_QUERYBUF
mxc_v4l2_buffer_status(376)
mxc_mmap(2711) pgoff=0x30c00, start=0xb6340000, end=0xb64c0000
mxc_v4l_do_ioctl(2230): frank case VIDIOC_QUERYBUF
mxc_v4l2_buffer_status(376)
mxc_mmap(2711) pgoff=0x30e00, start=0xb61c0000, end=0xb6340000
mxc_v4l_do_ioctl(2313): frank case VIDIOC_STREAMON
mxc_streamon(463): frank ipu0/csi0 capture_on=0 CSI MEM
ipu_csi_get_sensor_protocol(400): frank CSI0_SENS_CONF=[0x900]
mipi_csi2_get_status(135) : status=[0x1]
mipi_csi2_get_bind_ipu(341) : ipu_id=[0]
mipi_csi2_get_bind_csi(359) : csi_id=[0]
mipi_csi2_get_virtual_channel(377) : v_channel=[0]
mipi_csi2_get_datatype(195) : dtype=[0x1e]
ipu_init_channel(958): frank ch type :CSI_MEM0:268435392
_ipu_smfc_init(810): frank SMFC_MAP=[0x0]
_ipu_csi_set_mipi_di(700): frank IPU_CSI1_DI_Req263_8020h CSI0_MIPI_DI=[0xffffff1e]
imx-ipuv3 2400000.ipu: _ipu_csi_init(979): frank:CSI_SENS_CONF: ipu=c133246c,csi=0,data=4000900, channel=fffffc0
_ipu_csi_init(992): frank ch type :CSI_MEM0:268435392
_ipu_smfc_set_burst_size(909): frank SMFC_BS=[0x7]
imx-ipuv3 2400000.ipu: ch 0 word 0 - 00000000 00000000 00000000 E0001800 000BFC7F
imx-ipuv3 2400000.ipu: ch 0 word 1 - 06340000 00C68000 0147C000 0001FFC0 00000000
imx-ipuv3 2400000.ipu: PFS 0xa,
imx-ipuv3 2400000.ipu: BPP 0x3,
imx-ipuv3 2400000.ipu: NPB 0x1f
imx-ipuv3 2400000.ipu: FW 1023,
imx-ipuv3 2400000.ipu: FH 767,
imx-ipuv3 2400000.ipu: EBA0 0x31a00000
imx-ipuv3 2400000.ipu: EBA1 0x31a00000
imx-ipuv3 2400000.ipu: Stride 2047
imx-ipuv3 2400000.ipu: scan_order 0
imx-ipuv3 2400000.ipu: uv_stride 0
imx-ipuv3 2400000.ipu: u_offset 0x0
imx-ipuv3 2400000.ipu: v_offset 0x0
imx-ipuv3 2400000.ipu: Width0 0+1,
imx-ipuv3 2400000.ipu: Width1 0+1,
imx-ipuv3 2400000.ipu: Width2 0+1,
imx-ipuv3 2400000.ipu: Width3 0+1,
imx-ipuv3 2400000.ipu: Offset0 0,
imx-ipuv3 2400000.ipu: Offset1 0,
imx-ipuv3 2400000.ipu: Offset2 0,
imx-ipuv3 2400000.ipu: Offset3 0
ipu_enable_csi(2954): frank set ipu conf csi0 enable
frank IPU_CONF = 0x10000761
frank IDMAC_CONF = 0x0000002F
frank IDMAC_CHA_EN1 = 0x00800001
frank IDMAC_CHA_EN2 = 0x00000000
frank IDMAC_CHA_PRI1 = 0x18800003
frank IDMAC_CHA_PRI2 = 0x00000000
frank IDMAC_BAND_EN1 = 0x00000000
frank IDMAC_BAND_EN2 = 0x00000000
frank IPU_CHA_DB_MODE_SEL0 = 0x00000001
frank IPU_CHA_DB_MODE_SEL1 = 0x00000000
frank IPU_CHA_TRB_MODE_SEL0 = 0x00800000
frank IPU_CHA_TRB_MODE_SEL1 = 0x00000000
frank DMFC_WR_CHAN = 0x00000090
frank DMFC_WR_CHAN_DEF = 0x202020F6
frank DMFC_DP_CHAN = 0x000096CA
frank DMFC_DP_CHAN_DEF = 0x2020F6F6
frank DMFC_IC_CTRL = 0x00000002
frank IPU_FS_PROC_FLOW1 = 0x00000000
frank IPU_FS_PROC_FLOW2 = 0x00000000
frank IPU_FS_PROC_FLOW3 = 0x00000000
frank IPU_FS_DISP_FLOW1 = 0x00000000
frank IPU_VDIC_VDI_FSIZE = 0x00000000
frank IPU_VDIC_VDI_C = 0x00000000
frank IPU_IC_CONF = 0x00000000
start time = 949363281 s, 83242 us
imx-ipuv3 2400000.ipu: ch 23 word 0 - 00000000 00000000 00000000 E0001800 0010DCEF
imx-ipuv3 2400000.ipu: ch 23 word 1 - 05E40000 00BC8000 0147C000 0003BFC0 00000000
imx-ipuv3 2400000.ipu: PFS 0xa,
imx-ipuv3 2400000.ipu: BPP 0x3,
imx-ipuv3 2400000.ipu: NPB 0x1f
imx-ipuv3 2400000.ipu: FW 1919,
imx-ipuv3 2400000.ipu: FH 1079,
imx-ipuv3 2400000.ipu: EBA0 0x2f200000
imx-ipuv3 2400000.ipu: EBA1 0x2f200000
imx-ipuv3 2400000.ipu: Stride 3839
imx-ipuv3 2400000.ipu: scan_order 0
imx-ipuv3 2400000.ipu: uv_stride 0
imx-ipuv3 2400000.ipu: u_offset 0x0
imx-ipuv3 2400000.ipu: v_offset 0x0
imx-ipuv3 2400000.ipu: Width0 0+1,
imx-ipuv3 2400000.ipu: Width1 0+1,
imx-ipuv3 2400000.ipu: Width2 0+1,
imx-ipuv3 2400000.ipu: Width3 0+1,
imx-ipuv3 2400000.ipu: Offset0 0,
imx-ipuv3 2400000.ipu: Offset1 0,
imx-ipuv3 2400000.ipu: Offset2 0,
imx-ipuv3 2400000.ipu: Offset3 0
victor duty_cycle = 800000
imx-ipuv3 2400000.ipu: ch 12 word 0 - 00000000 00000000 00000000 E0001800 000BFC7F
imx-ipuv3 2400000.ipu: ch 12 word 1 - 06200000 00000000 2143C000 0001FFC0 00000000
imx-ipuv3 2400000.ipu: PFS 0xa,
imx-ipuv3 2400000.ipu: BPP 0x3,
imx-ipuv3 2400000.ipu: NPB 0xf
imx-ipuv3 2400000.ipu: FW 1023,
imx-ipuv3 2400000.ipu: FH 767,
imx-ipuv3 2400000.ipu: EBA0 0x31000000
imx-ipuv3 2400000.ipu: EBA1 0x0
imx-ipuv3 2400000.ipu: Stride 2047
imx-ipuv3 2400000.ipu: scan_order 0
imx-ipuv3 2400000.ipu: uv_stride 0
imx-ipuv3 2400000.ipu: u_offset 0x0
imx-ipuv3 2400000.ipu: v_offset 0x0
imx-ipuv3 2400000.ipu: Width0 0+1,
imx-ipuv3 2400000.ipu: Width1 0+1,
imx-ipuv3 2400000.ipu: Width2 0+1,
imx-ipuv3 2400000.ipu: Width3 0+1,
imx-ipuv3 2400000.ipu: Offset0 0,
imx-ipuv3 2400000.ipu: Offset1 0,
imx-ipuv3 2400000.ipu: Offset2 0,
imx-ipuv3 2400000.ipu: Offset3 0
imx-ipuv3 2400000.ipu: ch 21 word 0 - 00000000 00000000 00000000 E0001800 000BFC7F
imx-ipuv3 2400000.ipu: ch 21 word 1 - 05E40000 00000000 2143C000 0003BFC0 00000000
imx-ipuv3 2400000.ipu: PFS 0xa,
imx-ipuv3 2400000.ipu: BPP 0x3,
imx-ipuv3 2400000.ipu: NPB 0xf
imx-ipuv3 2400000.ipu: FW 1023,
imx-ipuv3 2400000.ipu: FH 767,
imx-ipuv3 2400000.ipu: EBA0 0x2f200000
imx-ipuv3 2400000.ipu: EBA1 0x0
imx-ipuv3 2400000.ipu: Stride 3839
imx-ipuv3 2400000.ipu: scan_order 0
imx-ipuv3 2400000.ipu: uv_stride 0
imx-ipuv3 2400000.ipu: u_offset 0x0
imx-ipuv3 2400000.ipu: v_offset 0x0
imx-ipuv3 2400000.ipu: Width0 0+1,
imx-ipuv3 2400000.ipu: Width1 0+1,
imx-ipuv3 2400000.ipu: Width2 0+1,
imx-ipuv3 2400000.ipu: Width3 0+1,
imx-ipuv3 2400000.ipu: Offset0 0,
imx-ipuv3 2400000.ipu: Offset1 0,
imx-ipuv3 2400000.ipu: Offset2 0,
imx-ipuv3 2400000.ipu: Offset3 0

Outcomes