Skip to contentSkip to conversation

drm/panic: depends on PRINTK

PATCH In review Jocelyn Falempe 2 participants 3 messages Feb 12 – Feb 17

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

PATCH 1/1 drm/panic: depends on PRINTK

drm_panic uses kmsg_dump_register() to register its panic handler, so it won't work if CONFIG_PRINTK is not enabled.
Let's not pretend it could work without PRINTK, and depends explicitely on it.

---
 drivers/gpu/drm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/Kconfig +1 -1
index 758f2eb3d588..0d0657dd1b41 100644
@@ -55,7 +55,7 @@ config DRM_DRAW
 
 config DRM_PANIC
 	bool "Display a user-friendly message when a kernel panic occurs"
-	depends on DRM
+	depends on DRM && PRINTK
 	select FONT_SUPPORT
 	select DRM_DRAW
 	help

base-commit: df4dc947c46bb9f80038f52c6e38cb2d40c10e50

Signature · 1 line
2.52.0
Reviewed-by on v1 1/1
#1 lore raw

From: Jocelyn Falempe <[email protected]> Sent: Thursday, February 12, 2026 2:06 AM

Quoted 5 lines

drm_panic uses kmsg_dump_register() to register its panic handler, so it won't work if CONFIG_PRINTK is not enabled.
Let's not pretend it could work without PRINTK, and depends explicitely on it.

s/explicitely/explicitly/

Quoted 21 lines
---
 drivers/gpu/drm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/Kconfig +1 -1
index 758f2eb3d588..0d0657dd1b41 100644
@@ -55,7 +55,7 @@ config DRM_DRAW
 
 config DRM_PANIC
 	bool "Display a user-friendly message when a kernel panic occurs"
-	depends on DRM
+	depends on DRM && PRINTK
 	select FONT_SUPPORT
 	select DRM_DRAW
 	help
Quoted 3 lines

base-commit: df4dc947c46bb9f80038f52c6e38cb2d40c10e50 --
2.52.0

#2 lore raw
Quoted 8 lines · Michael Kelley

From: Jocelyn Falempe <[email protected]> Sent: Thursday, February 12, 2026 2:06 AM

Quoted 5 lines

drm_panic uses kmsg_dump_register() to register its panic handler, so it won't work if CONFIG_PRINTK is not enabled.
Let's not pretend it could work without PRINTK, and depends explicitely on it.

s/explicitely/explicitly/

Thanks, I just pushed it to drm-misc-next, with the typo fixed.

Best regards,

Signature · 1 line
Jocelyn
Quoted 28 lines
Quoted 22 lines
---
  drivers/gpu/drm/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/Kconfig +1 -1
index 758f2eb3d588..0d0657dd1b41 100644
@@ -55,7 +55,7 @@ config DRM_DRAW
 
  config DRM_PANIC
  	bool "Display a user-friendly message when a kernel panic occurs"
-	depends on DRM
+	depends on DRM && PRINTK
  	select FONT_SUPPORT
  	select DRM_DRAW
  	help
Quoted 3 lines

base-commit: df4dc947c46bb9f80038f52c6e38cb2d40c10e50 --
2.52.0