From 34cc5c83d797dd63e74a2301f3a5ad49569e888e Mon Sep 17 00:00:00 2001 From: Liu Ying Date: Tue, 27 Nov 2018 15:23:26 +0800 Subject: MLK-20470 drm/imx: dpu: plane: Do full modeset for tile to linear fb switch When pixel combiner is used, it turns out that on-the-fly switch from tile framebuffer to linear framebuffer would cause hardware malfunction - right half display would be missing and master&slave content shadow load done event won't come. Thus, go for a full modeset as a workaround. Note that we check if the original framebuffer is tile or not for both primary and overlay planes. So, this could be over-kill. The issue was found when we use 32bit GPU super tile as the original framebuffer on the primary plane(restart Weston frequently). However, since we usually don't do this kind of switch in real graphics, it should be fine. Signed-off-by: Liu Ying (cherry picked from commit 9245bbf650fdeb79ebf869d48b6bd1b43c2bcf3b) --- drivers/gpu/drm/imx/dpu/dpu-plane.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/imx/dpu/dpu-plane.c b/drivers/gpu/drm/imx/dpu/dpu-plane.c index 63309552857e..0a62b003d473 100644 --- a/drivers/gpu/drm/imx/dpu/dpu-plane.c +++ b/drivers/gpu/drm/imx/dpu/dpu-plane.c @@ -20,6 +20,7 @@ #include #include