drm/msm: Transition console to msm framebuffer
authorJeffrey Hugo <jeffrey.l.hugo@gmail.com>
Fri, 28 Jun 2019 16:28:31 +0000 (09:28 -0700)
committerRob Clark <robdclark@chromium.org>
Tue, 3 Sep 2019 23:16:58 +0000 (16:16 -0700)
If booting a device using EFI, efifb will likely come up and claim the
console.  When the msm display stack finally comes up, we want the
console to move over to the msm fb, so add support to kick out any
firmware based framebuffers to accomplish the console transition.

Suggested-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Tested-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_fbdev.c

index da4a4da725e7f7c6c178ca8cb05c7fc872ac04d7..cff198b2f47001453177184316b65d5f19f62c2c 100644 (file)
@@ -170,6 +170,9 @@ struct drm_fb_helper *msm_fbdev_init(struct drm_device *dev)
        if (ret)
                goto fini;
 
+       /* the fw fb could be anywhere in memory */
+       drm_fb_helper_remove_conflicting_framebuffers(NULL, "msm", false);
+
        ret = drm_fb_helper_initial_config(helper, 32);
        if (ret)
                goto fini;