aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/imx/imx-drm-core.c
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2017-03-08 06:13:21 -0500
committerPhilipp Zabel <p.zabel@pengutronix.de>2017-03-16 05:14:51 -0400
commit00514e8593350498790d19c7e21b720fee899cf7 (patch)
treebc725d9c69a4158c7f0b4fca54b0d878b411d4d6 /drivers/gpu/drm/imx/imx-drm-core.c
parente0fb7dd2f00440b5449f625dee7b442219d8a56e (diff)
drm/imx: use PRG/PRE when possible
Allow the planes to use the PRG/PRE units as linear prefetchers when possible. This improves DRAM efficiency a bit and reduces the chance for display underflow when the memory subsystem is under load. This does not yet support scanning out tiled buffers directly, as this needs more work, but it already wires up the basic interaction between imx-drm, the IPUv3 driver and the PRG and PRE drivers. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/imx/imx-drm-core.c')
-rw-r--r--drivers/gpu/drm/imx/imx-drm-core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c
index cd3c2013ea70..f42cf9ea911b 100644
--- a/drivers/gpu/drm/imx/imx-drm-core.c
+++ b/drivers/gpu/drm/imx/imx-drm-core.c
@@ -110,6 +110,11 @@ static int imx_drm_atomic_check(struct drm_device *dev,
110 if (ret) 110 if (ret)
111 return ret; 111 return ret;
112 112
113 /* Assign PRG/PRE channels and check if all constrains are satisfied. */
114 ret = ipu_planes_assign_pre(dev, state);
115 if (ret)
116 return ret;
117
113 return ret; 118 return ret;
114} 119}
115 120