This is again mostly for debugging. I’m not using them in ordinary cases - other than maybe development, but for that I gonna build a custom Kernel anyway - and this is similar to when users disable Plymouth and/or remove quiet from the kernel command line; one can at the same time add sysrq_always_enabled.
When the output becomes compile time disabled, this is gone it seems.
Due to the comments about VT_CONSOLE, I spent more time trying to find a better solution, to avoid VT_CONSOLE to overwrite the panic screen.
I submitted a new patch upstream https://patchwork.freedesktop.org/series/136182/, and got good feedback so far, so it’s likely to get merged soon.
It means we won’t need to disable VT_CONSOLE, to enable DRM_PANIC.
I will update the wiki page accordingly, it will make the integration of drm panic much smoother.
As it will crash your machine, you might prefer to do this in a VM (after disabling virtio-gpu, or vmwgfx).
As written it implies that doing it in a VM is possible because it crashes your machine. That’s not the intended meaning, but confused me for a second.
Apart from that little wording quibble, this sounds like a good change.
It’s no longer necessary to disable VT_CONSOLE to enable DRM_PANIC.
So I have updated the wiki page, and also moved it to self-contained-change, as there are no more system-wide impact by enabling DRM_PANIC.
I’ve also made a new kernel build, with VT_CONSOLE and DRM_PANIC enabled, so you can check by yourself that it works.
Wait, does this mean that if the kernel fails before running the first userspace process, I won’t be able to see the console messages no matter what arguments I pass?
If so, that’d be quite bad for debugging such issues…
No, now drm_panic works with VT_CONSOLE, so you will still be able to see your boot logs if you want to.
So enabling drm_panic don’t have any impact on boot logs or your fbcon terminal.
Also since then, I’ve implemented drm_log, which should come in linux v6.14
This will allow to show the boot logs using the drm client API, instead of relying on fbdev/vt_console.
drm_log uses the new console API, which means it won’t take the console_lock each time it draws a message on the screen, so it is suitable for RealTime kernel, and it won’t slows down your boot. https://patchwork.freedesktop.org/series/136789/