Hi Freesacle
In android 6.0.1, I try to open camera app and test camera function.
Cpu is MX6Q.Our camera is ov5640. That is the same with demo board.
We are not used front end camera. So I disable front camera in "init.i.MX6Q.rc".
[Question 1]
step1
Our uboot setting:
--------------------------------------------------------------------------------------------------------------------------------------------------------
setenv bootargs console=ttymxc0,115200 init=/init video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off vmalloc=256M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=384M
--------------------------------------------------------------------------------------------------------------------------------------------------------
When I open camera, system always show IPU Warning in debug port.
The system can not preview from camera.
-------------------------------------------------------------------------------------------
imx-ipuv3 2800000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x00800000
imx-ipuv3 2800000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00100000
imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00080000
imx-ipuv3 2800000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x00800000
imx-ipuv3 2800000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00100000
imx-ipuv3 2800000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x00800000
imx-ipuv3 2800000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00100000
imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00080000
imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x00800000
-----------------------------------------------------------------------------------------------
And HDMI port is on / off.
step 2
If I change frame buffer output to LVDS, system show IPU Warning in debug port.
--------------------------------------------------------------------------------------------------------------------------------------------------------
setenv bootargs console=ttymxc0,115200 init=/init video=mxcfb0:dev=ldb,800x480M@60,bpp=32,if=RGB24 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off vmalloc=256M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=384M
--------------------------------------------------------------------------------------------------------------------------------------------------------
The system can preview from camera.
After 30 sec, system can not preview from camera.
system always show IPU Warning in debug port.
-------------------------------------------------------------------------------------------
imx-ipuv3 2800000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x00800000
imx-ipuv3 2800000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00100000
imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00080000
imx-ipuv3 2800000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x00800000
imx-ipuv3 2800000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00100000
imx-ipuv3 2800000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x00800000
imx-ipuv3 2800000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00100000
imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00080000
imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x00800000
-----------------------------------------------------------------------------------------------
Do you have any advice?
Clayder
Hi NXP
Please find and check attached files.
(1) imx_v7_adv_android_defconfig is our device android default config in kernel_imx.
(2) imx6qdl-advantech.dtsi and imx6q-rsb4411-a1.dts is our dts file in kernel_imx.
(3) init.i.MX6Q.rc and init.rc is init file in device/fsl/rsb_4411_a1.
(4) test_camera.log is our device boot up log message.
Do you have any advice?
Clayder
Hi Charles,
IPU_INT_STAT_10 = 0x00100000 means synchronous display error interrupt, as a result of an error during access to a synchronous display.
IPU_INT_STAT_5 = 0x00800000 means, that new frame starts before the previous end-of-frame event.
From section Interrupt Generator of the i.Mx6 Reference Manual :
The table below describes the error interrupts. The panic column indicates if this signal is part of the logic generating the ipu_panic signal. The ipu_panic signal can be used for indicating about errors that are result of data rate problems. Such problems may be a result of the IPU running in slower clock then required by the use case. This signal can be used in order to indicate the system that the IPU can't handle the desired data rate. In that case the system may need to increase the clock to the IPU or simplify the use case.
So, we have here performance problem. Please try to decrease screen resolution and / or frame rate. Also, other system resource consuming processes, such as Sensor camera / USB / SD / SATA transfer, may affect. As result a general performance issue may take place in the case. Perhaps it makes sense to try system prioritization (such as provided by Linux nice command).
Hope it helps
Hi Bio_TICFSL
I try to decrease screen resolution and frame rate.
In uboot setting :
(1) 480P
setenv bootargs console=ttymxc0,115200 androidboot.console=ttymxc0 vmalloc=256M init=/init video=mxcfb0:dev=hdmi,720X480M@60,bpp=32,video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off androidboot.hardware=freescale cma=384M androidboot.selinux=disabled androidboot.dm_verity=disabled
(2) 480P 20 frames
setenv bootargs console=ttymxc0,115200 androidboot.console=ttymxc0 vmalloc=256M init=/init video=mxcfb0:dev=hdmi,720X480M@20,bpp=32,video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off androidboot.hardware=freescale cma=384M androidboot.selinux=disabled androidboot.dm_verity=disabled
The result : "Camera can work. After 5sec, system still show IPU Warning in debug port."
Do you have any advice about the issue?
Thanks
Clayder
Hi NXP
** Our Android BSP version is Android 6.0.1_1.0.0. ****
(A) We are not used front end camera. So I disable front camera in "init.i.MX6Q.rc".
In init.i.MX6Q.rc
--------------------------------------------------------------------------------------------------------------
on boot
# Set OpenGLES version
setprop ro.opengles.version 131072
# Set GPU 3D minimum clock to 3/64
write /sys/bus/platform/drivers/galcore/gpu3DMinClock 3
# set back camera.
setprop back_camera_name ov5640_mipi
# disable front camera support.
setprop front_camera_name 0
--------------------------------------------------------------------------------------------------------------
(B)
When I open camera, system always show IPU Warning in debug port.
The system can not preview from camera.
-------------------------------------------------------------------------------------------
imx-ipuv3 2800000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x00800000
imx-ipuv3 2800000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00100000
imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00080000
imx-ipuv3 2800000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x00800000
imx-ipuv3 2800000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00100000
imx-ipuv3 2800000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x00800000
imx-ipuv3 2800000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00100000
imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00080000
imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x00800000
-----------------------------------------------------------------------------------------------
And HDMI port is on / off. <-- The mean : There are no pictures on HDMI display monitor.
Time interval from "hdmi on" to "hdmi off" is 5 seconds.
Entering Power Save Mode
Then System always show mxc_sdc_fb fb.23: timeout when waiting for flip irq
Hi Charles huang,
I'm working on imx6q processor and 3.14.28 kernel.
Facing the same Warning and continuous continuous timeout on running video using gplay-1.0,
imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x08000000
mxc_sdc_fb fb.20: timeout when waiting for flip irq
Have you found reason for the issue??
Thanks & Regards,
Ambika