Add a call to drm_aperture_remove_framebuffers() to drop the possible
early fb (simplefb).
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
---
drivers/gpu/drm/tidss/tidss_drv.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/gpu/drm/tidss/tidss_drv.c b/drivers/gpu/drm/tidss/tidss_drv.c
index 21f2358790b4..17df0583710c 100644
--- a/drivers/gpu/drm/tidss/tidss_drv.c
+++ b/drivers/gpu/drm/tidss/tidss_drv.c
@@ -8,6 +8,7 @@
#include <linux/of.h>
#include <linux/module.h>
#include <linux/pm_runtime.h>
+#include <linux/aperture.h>
#include <drm/clients/drm_client_setup.h>
#include <drm/drm_atomic.h>
@@ -207,12 +208,20 @@ static int tidss_probe(struct platform_device *pdev)
goto err_irq_uninstall;
}
+ /* Remove possible early fb before setting up the fbdev */
+ ret = aperture_remove_all_conflicting_devices(tidss_driver.name);
+ if (ret)
+ goto err_drm_dev_unreg;
+
drm_client_setup(ddev, NULL);
dev_dbg(dev, "%s done\n", __func__);
return 0;
+err_drm_dev_unreg:
+ drm_dev_unregister(ddev);
+
err_irq_uninstall:
tidss_irq_uninstall(ddev);
--
2.43.0
Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> writes: Hello Tomi, > Add a call to drm_aperture_remove_framebuffers() to drop the possible > early fb (simplefb). > > Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> > --- This patch can be picked and is independant of how the other one. Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> -- Best regards, Javier Martinez Canillas Core Platforms Red Hat
Hi, On 10/07/2025 14:59, Javier Martinez Canillas wrote: > Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> writes: > > Hello Tomi, > >> Add a call to drm_aperture_remove_framebuffers() to drop the possible >> early fb (simplefb). >> >> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> >> --- > > This patch can be picked and is independant of how the other one. > > Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Indeed, I'll apply this one. Thanks! Tomi
© 2016 - 2025 Red Hat, Inc.