All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/panic: depends on !VT_CONSOLE
@ 2024-06-13 15:40 Jocelyn Falempe
  2024-06-16 12:43 ` Javier Martinez Canillas
  2024-07-16  2:38 ` nerdopolis
  0 siblings, 2 replies; 9+ messages in thread
From: Jocelyn Falempe @ 2024-06-13 15:40 UTC (permalink / raw)
  To: dri-devel, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	David Airlie, Daniel Vetter, Javier Martinez Canillas,
	Geert Uytterhoeven
  Cc: Jocelyn Falempe, Daniel Vetter

The race condition between fbcon and drm_panic can only occurs if
VT_CONSOLE is set. So update drm_panic dependency accordingly.
This will make it easier for Linux distributions to enable drm_panic
by disabling VT_CONSOLE, and keeping fbcon terminal.
The only drawback is that fbcon won't display the boot kmsg, so it
should rely on userspace to do that.
At least plymouth already handle this case with
https://gitlab.freedesktop.org/plymouth/plymouth/-/merge_requests/224

Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
---
 drivers/gpu/drm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig
index a9df94291622..f5c989aed7e9 100644
--- a/drivers/gpu/drm/Kconfig
+++ b/drivers/gpu/drm/Kconfig
@@ -107,7 +107,7 @@ config DRM_KMS_HELPER
 
 config DRM_PANIC
 	bool "Display a user-friendly message when a kernel panic occurs"
-	depends on DRM && !FRAMEBUFFER_CONSOLE
+	depends on DRM && !(FRAMEBUFFER_CONSOLE && VT_CONSOLE)
 	select DRM_KMS_HELPER
 	select FONT_SUPPORT
 	help

base-commit: 2bae076f3e35234e42bd7c90acd8caae8368ba90
-- 
2.45.1


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

end of thread, other threads:[~2024-07-16  2:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-13 15:40 [PATCH] drm/panic: depends on !VT_CONSOLE Jocelyn Falempe
2024-06-16 12:43 ` Javier Martinez Canillas
2024-06-17  8:16   ` Jocelyn Falempe
2024-06-17  8:25     ` Geert Uytterhoeven
2024-06-17  9:20       ` Jocelyn Falempe
2024-06-17  9:27         ` Javier Martinez Canillas
2024-06-18 15:22           ` Jocelyn Falempe
2024-06-17  8:27     ` Javier Martinez Canillas
2024-07-16  2:38 ` nerdopolis

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.