Sdma iapi start loading sdma script by write HSTART register as
memory. When instruction reorder and IRQ delay may let the next
synchronize operation wait forever.
We change it by using writel() to access sdma registers,
and introduce timeout to show this error.
HSTART and STOP_STAT contain bits that are reset by hardware.
So if we read-modify-write, we are in danger of setting a bit
after SDMA has cleared it.
The spec calls these registers "write-ones" register. So the
ARM can write a 1 to any bit, but does not need to worry about
clearing any bits that were previously set. SDMA hardware
keeps track of all bits that were set.
Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
Signed-off-by: Alan Tull <alan.tull@freescale.com>
fix flash issue by first setting FG position.
Signed-off-by: Jason Chen <b02280@freescale.com>
(cherry picked from commit d6e7fa4bc91fcff2e6f4aff02998b22f8b482358)
During FG position set, we used to update SRM by FSU all the time,
if FG is disabled, then after you set position then enable FG,
it will come out NFB4ENF error for FG channel.
Signed-off-by: Jason Chen <b02280@freescale.com>
(cherry picked from commit 6651726077719c68714887202d309ec1b2971047)
CPU working point needs to be initialized based on the current CPU
frequency in start_dvfs() and should correspond with the correct entry
in the cpu_wp_auto table.
If its not initialized correctly, DVFS-CORE will fail when PLL-relock
results in a frequency that is not the same as set in the cpu_wp_auto table.
So fix it by finding the entry that closely matches the CPU frequency.
Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
We used to force the framebuffer bpp to be default bpp
set by the user in the kernel boot up command line.
This patch fixes this issue. This patch also
gets TVE framebuffer bpp value from IPUv3 framebuffer.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Change ipu_check_buffer_busy to ipu_check_buffer_ready.
Signed-off-by: Jason Chen <b02280@freescale.com>
(cherry picked from commit 3e60177e176d78e41351c9d51bc4889762c44627)
Change ipu_check_buffer_busy to ipu_check_buffer_ready.
Signed-off-by: Jason Chen <b02280@freescale.com>
(cherry picked from commit 6a0f0935318eac8733f79964854d2c18fe012099)
When bus is busy, for example vpu is working too, the timestamp is
possiblly not yet refreshed to memory by yamato when we get
GSL_INTR_YDX_CP_RING_BUFFER. For most cases, it will hit on first
loop cycle. So it don't effect performance.
Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
(cherry picked from commit e97cab9b93d3e3f125684577f2522404da77872e)
fb cmdline option bpp= should pass the default bpp to fb driver, for tve etc
case, it will set_var by itself, which var->bits_per_pixel = 0,
the mxcfb_check_var will then fix it to 16. It's not correct
when we need set bpp to other value.
Signed-off-by: Jason Chen <b02280@freescale.com>
(cherry picked from commit f8a69aa6bf401b5a682e88040cf7abbf53406e38)
This patch supports VIDIOC_ENUM_FMT, VIDIOC_ENUM_FRAMESIZES
and VIDIOC_DBG_G_CHIP_IDENT ioctrls.
Signed-off-by: Liu Ying <b17645@freescale.com>
(cherry picked from commit 90fdf1cded2ce26ac6e8c81944a78a3f998ddaf2)
This patch fills black data to overlay fb before preview to get rid
of dirty data splashing the screen.
Signed-off-by: Liu Ying <b17645@freescale.com>
(cherry picked from commit 3dd91a35a55263252ab5d4bb63762713c138b567)
We used to enable mclk in resume function of mxc v4l2 capture
driver even if overlay or catpture is off when entering suspend
mode. This patch disables mclk after resume in this case.
Signed-off-by: Liu Ying <b17645@freescale.com>
1) Remove skip frame support.
2) Add dummy buffer support for CSI_PRP_ENC_MEM and
MEM_ROT_ENC_MEM channel to get rid of lost frame
error.
3) Clear buffer ready bit for one time whenever we fail
to update buffer address.
4) Fix potential tearing issue by sync the working buf
with EOF interrupt.
Signed-off-by: Liu Ying <b17645@freescale.com>
(cherry picked from commit f35a2d44710fe0f73516d52f67f7d063eef87097)
The FG window will go to the left-top corner of the display panel
after preview. So, remove the code to clear FG position when we
stop preview.
Signed-off-by: Liu Ying <b17645@freescale.com>
(cherry picked from commit 29a459e692e4dde9f3dee64aba176a357dfd0062)
Just change v_sync_start, v_sync_width and v_sync_end to fit ipu restricitions.
Signed-off-by: Jason Chen <b02280@freescale.com>
(cherry picked from commit 6e0251471e24a483d774a552b947653c73cbbcf9)
Conflicts:
drivers/mxc/ipu3/ipu_disp.c
* Turn it on
* Enable searching for all 3 1080p modes we can display (24, 25, 30Hz) in descending order of refresh rate
* Default video mode is now taken from the awesome CEA modes database
* Move EDID->ModeDB to before CEA extension parsing so we can do it ourselves, better
* Add SVD parsing to the CEA EDID helper
If your monitor supports a low field-rate 1080p mode, it'll work now :)