]> asedeno.scripts.mit.edu Git - linux.git/commit
drm: omapdrm: Let the DRM core skip plane commit on inactive CRTCs
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 6 Jun 2016 01:25:04 +0000 (04:25 +0300)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 19 Dec 2016 09:24:58 +0000 (11:24 +0200)
commitdadf4659d0608e034b6633f30300c2eff2dafb4c
tree3ec33e85a983a3e06632aef2f7dfc6c6014847bd
parentf933a3a93b2d74a255643b326316eee392fa1b80
drm: omapdrm: Let the DRM core skip plane commit on inactive CRTCs

The DRM core supports skipping plane update for inactive CRTCs for
hardware that don't need it or can't cope with it. That's our case, and
the driver already skips flushing planes on inactice CRTCs.

We can't remove the check from the driver, as active CRTCs are disabled
at the hardware level when an atomic flush is performed if a mode set is
pending. There's however no need to forward the plane commit calls to
the driver, so use the DRM core infrastructure to skip them with a
detailed comment to explain why the check must still be kept in the
driver.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_crtc.c
drivers/gpu/drm/omapdrm/omap_drv.c