drm/rockchip: Add implicit fencing support for planes

A patch from »drm/rockchip: Add implicit fencing support for planes« in state Mainline for linux-kernel

From: Heiko Stuebner <heiko@...> Date: Fri, 30 Nov 2018 11:17:11 +0100


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@...> Signed-off-by: Heiko Stuebner <heiko@...>


drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 2 ++ 1 file changed, 2 insertions(+)


  • 2 lines added
  • 0 lines removed


----------------- drivers/gpu/drm/rockchip/rockchip_drm_vop.c ------------------
index fb70fb486fbf..db8358e6d230 100644
@@ -18,6 +18,7 @@
#include <drm/drm_crtc.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_flip_work.h>
+#include <drm/drm_gem_framebuffer_helper.h>
#include <drm/drm_plane_helper.h>
#include <drm/bridge/analogix_dp.h>
@@ -823,6 +824,7 @@ static const struct drm_plane_helper_funcs plane_helper_funcs = {
.atomic_check = vop_plane_atomic_check,
.atomic_update = vop_plane_atomic_update,
.atomic_disable = vop_plane_atomic_disable,
+ .prepare_fb = drm_gem_fb_prepare_fb,
static const struct drm_plane_funcs vop_plane_funcs = {

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.