drm-panic: kernel: Enable DRM_PANIC

Since the previous commit, we've ensured the kernel displaying via DRM
even in the early stage.  Now enable DRM_PANIC so the kernel will
correctly show the last lines of the kernel messages in case a panic
happens.

Tested with an incorrect root= line in 3 configurations:

- A QEMU VM booted via BIOS
- A real machine booted via BIOS
- A real machine booted via UEFI

And in all configurations the panic message is correctly dumped.
In 1024x768 we can get 48 lines (twice of 24 lines in VGA console).
This commit is contained in:
Xi Ruoyao 2024-12-01 17:30:51 +08:00
parent 33c17d128b
commit 2349341e3e
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3
4 changed files with 14 additions and 4 deletions

View File

@ -15,6 +15,8 @@ DEVTMPFS='*'
DEVTMPFS_MOUNT='*' DEVTMPFS_MOUNT='*'
SYSFB_SIMPLEFB='*' SYSFB_SIMPLEFB='*'
DRM='*' DRM='*'
DRM_PANIC='*'
DRM_PANIC_SCREEN='kmsg'
DRM_FBDEV_EMULATION='*' DRM_FBDEV_EMULATION='*'
DRM_SIMPLEDRM='*' DRM_SIMPLEDRM='*'
FRAMEBUFFER_CONSOLE='*' FRAMEBUFFER_CONSOLE='*'

View File

@ -46,9 +46,12 @@
<emphasis role='blue'>G</emphasis>raphics support ---&gt; <emphasis role='blue'>G</emphasis>raphics support ---&gt;
&lt;*&gt; <emphasis role='blue'>D</emphasis>irect Rendering Manager (XFree86 4.1.0 and higher DRI support) ---&gt; &lt;*&gt; <emphasis role='blue'>D</emphasis>irect Rendering Manager (XFree86 4.1.0 and higher DRI support) ---&gt;
... [DRM] ... [DRM]
[*] <emphasis role='blue'>E</emphasis>nable legacy fbdev support for your modesetting driver [*] <emphasis role='blue'>D</emphasis>isplay a user-friendly message when a kernel panic occurs
... [DRM_PANIC]
(kmsg) <emphasis role='blue'>P</emphasis>anic screen formatter [DRM_PANIC_SCREEN]
[*] <emphasis role='blue'>E</emphasis>nable legacy fbdev support for your modesetting driver
... [DRM_FBDEV_EMULATION] ... [DRM_FBDEV_EMULATION]
&lt;*&gt; <emphasis role='blue'>S</emphasis>imple framebuffer driver [DRM_SIMPLEDRM] &lt;*&gt; <emphasis role='blue'>S</emphasis>imple framebuffer driver [DRM_SIMPLEDRM]
<emphasis role='blue'>C</emphasis>onsole display driver support ---&gt; <emphasis role='blue'>C</emphasis>onsole display driver support ---&gt;
[*] <emphasis role='blue'>F</emphasis>ramebuffer Console support [FRAMEBUFFER_CONSOLE] [*] <emphasis role='blue'>F</emphasis>ramebuffer Console support [FRAMEBUFFER_CONSOLE]

View File

@ -14,6 +14,8 @@ DEVTMPFS='*'
DEVTMPFS_MOUNT='*' DEVTMPFS_MOUNT='*'
SYSFB_SIMPLEFB='*' SYSFB_SIMPLEFB='*'
DRM='*' DRM='*'
DRM_PANIC='*'
DRM_PANIC_SCREEN='kmsg'
DRM_FBDEV_EMULATION='*' DRM_FBDEV_EMULATION='*'
DRM_SIMPLEDRM='*' DRM_SIMPLEDRM='*'
FRAMEBUFFER_CONSOLE='*' FRAMEBUFFER_CONSOLE='*'

View File

@ -33,8 +33,11 @@
<emphasis role='blue'>G</emphasis>raphics support ---&gt; <emphasis role='blue'>G</emphasis>raphics support ---&gt;
&lt;*&gt; <emphasis role='blue'>D</emphasis>irect Rendering Manager (XFree86 4.1.0 and higher DRI support) ---&gt; &lt;*&gt; <emphasis role='blue'>D</emphasis>irect Rendering Manager (XFree86 4.1.0 and higher DRI support) ---&gt;
... [DRM] ... [DRM]
[*] <emphasis role='blue'>E</emphasis>nable legacy fbdev support for your modesetting driver [*] <emphasis role='blue'>D</emphasis>isplay a user-friendly message when a kernel panic occurs
... [DRM_PANIC]
(kmsg) <emphasis role='blue'>P</emphasis>anic screen formatter [DRM_PANIC_SCREEN]
[*] <emphasis role='blue'>E</emphasis>nable legacy fbdev support for your modesetting driver
... [DRM_FBDEV_EMULATION] ... [DRM_FBDEV_EMULATION]
&lt;*&gt; <emphasis role='blue'>S</emphasis>imple framebuffer driver [DRM_SIMPLEDRM] &lt;*&gt; <emphasis role='blue'>S</emphasis>imple framebuffer driver [DRM_SIMPLEDRM]
<emphasis role='blue'>C</emphasis>onsole display driver support ---&gt; <emphasis role='blue'>C</emphasis>onsole display driver support ---&gt;
[*] <emphasis role='blue'>F</emphasis>ramebuffer Console support [FRAMEBUFFER_CONSOLE]</screen> [*] <emphasis role='blue'>F</emphasis>ramebuffer Console support [FRAMEBUFFER_CONSOLE]</screen>