]> git.baikalelectronics.ru Git - kernel.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)
commita9d62893fbbcdd78647042686e4bf94f3f657354
tree3ec33e85a983a3e06632aef2f7dfc6c6014847bd
parent6e44244c61777292781beee53157a73c28538fc8
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