Commit 479cbc3e authored by Inki Dae's avatar Inki Dae
Browse files

drm/exynos: make sure that hardware overlay for fimd is disabled

Changelog v2:
wait for VSYNC instead of BACKPORCH.

Changelog v1:
the values set to registers will be updated into real registers
at vsync so dma operation could be malfunctioned when accessed
to memory after gem buffer was released. this patch makes sure
that hw overlay is disabled before the gem buffer is released.
Signed-off-by: default avatarInki Dae <>
Signed-off-by: default avatarKyungmin Park <>
parent b011941f
......@@ -570,10 +570,22 @@ static void fimd_win_disable(struct device *dev, int zpos)
win_data->enabled = false;
static void fimd_wait_for_vblank(struct device *dev)
struct fimd_context *ctx = get_fimd_context(dev);
int ret;
ret = wait_for((__raw_readl(ctx->regs + VIDCON1) &
if (ret < 0)
DRM_DEBUG_KMS("vblank wait timed out.\n");
static struct exynos_drm_overlay_ops fimd_overlay_ops = {
.mode_set = fimd_win_mode_set,
.commit = fimd_win_commit,
.disable = fimd_win_disable,
.wait_for_vblank = fimd_wait_for_vblank,
static struct exynos_drm_manager fimd_manager = {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment