]> 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)
commitfd91105d60ba6ddedb5e0f561d07c6ff196c1635
tree3ec33e85a983a3e06632aef2f7dfc6c6014847bd
parent821170c5487abce5addf97b8e84d5fb1238902b7
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