]> git.baikalelectronics.ru Git - kernel.git/commit
drm: rcar-du: Consider plane to CRTC associations in the plane allocator
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 28 Apr 2015 21:51:01 +0000 (00:51 +0300)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 25 May 2015 12:34:12 +0000 (15:34 +0300)
commit64925cf1a155f693f9c5e2ecc3c20d8698906060
treef5623ebe8570267c49c3ec782adc0f2a3ad3e835
parent4fbbe9638b4db8eb25d72abb7fa615074b224ff5
drm: rcar-du: Consider plane to CRTC associations in the plane allocator

Hardware planes are driven by the timing generator of the CRTC they are
associated to. Changing the association requires restarting the CRTC
group that the plane belongs to, resulting in flicker on the other CRTC.

To avoid flicker as much as possible, try to allocate planes first from
the free planes already associated with the target CRTC. If allocation
fails then fall back to allocation from all free planes.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_kms.c