OSDN Git Service

drm/rockchip: Add implicit fencing support for planes
authorHeiko Stuebner <heiko@sntech.de>
Fri, 30 Nov 2018 10:24:49 +0000 (11:24 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 12 Dec 2018 16:03:09 +0000 (17:03 +0100)
commit63d5e06aa38182da47bccde16fac058b0b2d53c7
tree8f6c8d80209d9fff28ca988eb4c0649d440d87a4
parentcad5290a2f79c7eaeda11bba02dd1cb6d096359a
drm/rockchip: Add implicit fencing support for planes

Render like lima will attach a fence to the framebuffer dma_buf,
so the display driver should wait for it to finish before showing
the framebufferto prevent tearing.

Generally tested on rk3188, rk3288, rk3328 and rk3399 and
together with an actual lima-based kmscube on rk3188 and rk3328.

Suggested-by: Qiang Yu <yuq825@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181130102449.6430-1-heiko@sntech.de
drivers/gpu/drm/rockchip/rockchip_drm_vop.c