Commit 1ac6ac9e authored by Jocelyn Falempe's avatar Jocelyn Falempe
Browse files

drm/panic: depends on !VT_CONSOLE

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: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarJocelyn Falempe <jfalempe@redhat.com>
Reviewed-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240613154041.325964-1-jfalempe@redhat.com
parent 41474d25
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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