Skip to contentSkip to conversation

drm/msm: Transition console to msm framebuffer

PATCH In review Jeffrey Hugo 2 participants 3 messages Jun 28, 2019 – Jun 29, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/msm: Transition console to msm framebuffer

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.

---
 drivers/gpu/drm/msm/msm_fbdev.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/msm/msm_fbdev.c +3 -0
index 2429d5e6ce9f..e3836c7725a6 100644
@@ -169,6 +169,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;
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Jeffrey Hugo

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.

lgtm,

Quoted 19 lines
---
 drivers/gpu/drm/msm/msm_fbdev.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/msm/msm_fbdev.c +3 -1
index 2429d5e6ce9f..e3836c7725a6 100644
@@ -169,6 +169,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;
--
Quoted 2 lines

2.17.1

_______________________________________________
Freedreno mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/freedreno

Tested-by
#2 lore raw
Quoted 8 lines · Rob Clark
Quoted 6 lines · Jeffrey Hugo

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.

Quoted 6 lines
Quoted 2 lines

lgtm,

and I'll also add, on yoga c630,

Quoted 14 lines
Quoted 14 lines

---
 drivers/gpu/drm/msm/msm_fbdev.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/msm/msm_fbdev.c +0 -0
index 2429d5e6ce9f..e3836c7725a6 100644
@@ -169,6 +169,9 @@ struct drm_fb_helper *msm_fbdev_init(struct drm_device *dev)
        if (ret)
                goto fini;
 
Quoted 9 lines
Quoted 9 lines
drivers/gpu/drm/msm/msm_fbdev.c +3 -1
+       /* 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;
--

2.17.1

_______________________________________________
Freedreno mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/freedreno