All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/fbdev-client: Don't restore while fbcon isn't bound
@ 2026-11-25 12:38 ` Kylie C via B4 Relay
  0 siblings, 0 replies; 3+ messages in thread
From: Kylie C @ 2026-11-25 12:38 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter
  Cc: dri-devel, linux-kernel, Kylie C

With deferred console takeover, fbcon hasn't bound to
that framebuffer yet, so there is no console to bring back. Restoring
it only replaces what the last DRM client left on screen, with an empty
framebuffer breaking flicker-free boot.

Only restore on lastclose once fbcon has bound to the framebuffer.

Signed-off-by: Kylie C <kyliepc@proton.me>
---
 drivers/gpu/drm/clients/drm_fbdev_client.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/clients/drm_fbdev_client.c b/drivers/gpu/drm/clients/drm_fbdev_client.c
index eec463d19943..7981d613e652 100644
--- a/drivers/gpu/drm/clients/drm_fbdev_client.c
+++ b/drivers/gpu/drm/clients/drm_fbdev_client.c
@@ -50,6 +50,9 @@ static int drm_fbdev_client_restore(struct drm_client_dev *client, bool force)
 	if (!fb_helper->info || !fb_helper->fb)
 		return 0;
 
+	if (!force && !fb_helper->info->fbcon_par)
+		return 0;
+
 	drm_fb_helper_restore_fbdev_mode_unlocked(fb_helper, force);
 
 	return 0;

---
base-commit: a2853fd7f6217573dfb780809663683d5b9c5835
change-id: 20261125-fbdev-no-early-restore-d714545eeb96

Best regards,
--  
Kylie C <kyliepc@proton.me>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-25 12:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 12:38 [PATCH] drm/fbdev-client: Don't restore while fbcon isn't bound Kylie C
2026-11-25 12:38 ` Kylie C via B4 Relay
2026-11-25 12:54 ` sashiko-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.