mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 19:29:21 +01:00
drm-panic: kernel: Enable SimpleDRM
Currently on a LFS system booted via legacy BIOS (intead of UEFI), the users can make two different configurations: 1. The DRM driver for the GPU is built as a module. Then before the module is loaded (i.e. the root fs is properly mounted) the kernel messages are displayed via the VGA console. 2. The DRM driver for the GPU is built into the kernel image. Then the kernel messages are displayed via the DRM-emulated framebuffer console since a very early stage (before the root fs is properly mounted). When the system is booted via UEFI, we use SimpleDRM on the EFI framebuffer for displaying kernel messages, thus it's always the case 2. Both are not good for diagnostic in case the root fs cannot be mounted properly (it's very frequent on lfs-support): - With 1 the VGA console can only fit 80x24 characters, so the relevent information is often flushed away. - With 2 the panic message is often displayed improperly when a DRM driver is running. The "DRM panic" feature introduced since Linux 6.11 (but it'll only become usable for LFS since Linux 6.12) can fix the case 2, while case 1 just cannot be fixed. So start to make LFS booted via legacy BIOS to use method 2 now, then we can enable DRM panic and fix this long-standing issue.
This commit is contained in:
parent
ea48456403
commit
fdf21dccba
@ -282,8 +282,8 @@
|
||||
<listitem>
|
||||
<para>These are needed to display the Linux console on a
|
||||
GPU driven by a DRI (Direct Rendering Infrastructure) driver.
|
||||
If <option>CONFIG_DRM</option> (Direct Rendering Manager) is
|
||||
enabled, you should enable these two options as well or you'll see
|
||||
As <option>CONFIG_DRM</option> (Direct Rendering Manager) is
|
||||
enabled, we should enable these two options as well or we'll see
|
||||
a blank screen once the DRI driver is loaded.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -1 +1 @@
|
||||
6.10.2
|
||||
6.12.1
|
||||
|
@ -13,7 +13,11 @@ STACKPROTECTOR_STRONG='*'
|
||||
UEVENT_HELPER=' '
|
||||
DEVTMPFS='*'
|
||||
DEVTMPFS_MOUNT='*'
|
||||
DRM=' *M'
|
||||
SYSFB_SIMPLEFB='*'
|
||||
DRM='*'
|
||||
DRM_FBDEV_EMULATION='*'
|
||||
DRM_SIMPLEDRM='*'
|
||||
FRAMEBUFFER_CONSOLE='*'
|
||||
NET='*'
|
||||
INET='*'
|
||||
IPV6='*'
|
||||
@ -30,11 +34,3 @@ revision='systemd'
|
||||
[RT_GROUP_SCHED]
|
||||
value = ' '
|
||||
comment = 'This may cause some systemd features malfunction'
|
||||
|
||||
[DRM_FBDEV_EMULATION]
|
||||
value = ' *'
|
||||
comment = 'If [DRM] is selected as * or M, this must be selected'
|
||||
|
||||
[FRAMEBUFFER_CONSOLE]
|
||||
value = ' *'
|
||||
comment = 'If [DRM] is selected as * or M, this must be selected'
|
||||
|
@ -42,15 +42,15 @@
|
||||
... [FW_LOADER_USER_HELPER]
|
||||
<emphasis role='blue'>F</emphasis>irmware Drivers --->
|
||||
[*] <emphasis role='blue'>E</emphasis>xport DMI identification via sysfs to userspace [DMIID]
|
||||
[*] M<emphasis role='blue'>a</emphasis>rk VGA/VBE/EFI FB as generic system framebuffer [SYSFB_SIMPLEFB]
|
||||
<emphasis role='blue'>G</emphasis>raphics support --->
|
||||
< /*/M> <emphasis role='blue'>D</emphasis>irect Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
|
||||
<*> <emphasis role='blue'>D</emphasis>irect Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
|
||||
... [DRM]
|
||||
# If [DRM] is selected as * or M, this must be selected:
|
||||
[ /*] <emphasis role='blue'>E</emphasis>nable legacy fbdev support for your modesetting driver
|
||||
[*] <emphasis role='blue'>E</emphasis>nable legacy fbdev support for your modesetting driver
|
||||
... [DRM_FBDEV_EMULATION]
|
||||
<*> <emphasis role='blue'>S</emphasis>imple framebuffer driver [DRM_SIMPLEDRM]
|
||||
<emphasis role='blue'>C</emphasis>onsole display driver support --->
|
||||
# If [DRM] is selected as * or M, this must be selected:
|
||||
[ /*] <emphasis role='blue'>F</emphasis>ramebuffer Console support [FRAMEBUFFER_CONSOLE]
|
||||
[*] <emphasis role='blue'>F</emphasis>ramebuffer Console support [FRAMEBUFFER_CONSOLE]
|
||||
|
||||
<emphasis role='blue'>F</emphasis>ile systems --->
|
||||
[*] <emphasis role='blue'>I</emphasis>notify support for userspace [INOTIFY_USER]
|
||||
|
@ -12,14 +12,10 @@ STACKPROTECTOR_STRONG='*'
|
||||
UEVENT_HELPER=' '
|
||||
DEVTMPFS='*'
|
||||
DEVTMPFS_MOUNT='*'
|
||||
DRM=' *M'
|
||||
SYSFB_SIMPLEFB='*'
|
||||
DRM='*'
|
||||
DRM_FBDEV_EMULATION='*'
|
||||
DRM_SIMPLEDRM='*'
|
||||
FRAMEBUFFER_CONSOLE='*'
|
||||
|
||||
revision='sysv'
|
||||
|
||||
[DRM_FBDEV_EMULATION]
|
||||
value = ' *'
|
||||
comment = 'If [DRM] is selected as * or M, this must be selected'
|
||||
|
||||
[FRAMEBUFFER_CONSOLE]
|
||||
value = ' *'
|
||||
comment = 'If [DRM] is selected as * or M, this must be selected'
|
||||
|
@ -28,12 +28,13 @@
|
||||
[*] M<emphasis role='blue'>a</emphasis>intain a devtmpfs filesystem to mount at /dev [DEVTMPFS]
|
||||
[*] <emphasis role='blue'>A</emphasis>utomount devtmpfs at /dev, after the kernel mounted the rootfs
|
||||
... [DEVTMPFS_MOUNT]
|
||||
<emphasis role='blue'>F</emphasis>irmware Drivers --->
|
||||
[*] M<emphasis role='blue'>a</emphasis>rk VGA/VBE/EFI FB as generic system framebuffer [SYSFB_SIMPLEFB]
|
||||
<emphasis role='blue'>G</emphasis>raphics support --->
|
||||
< /*/M> <emphasis role='blue'>D</emphasis>irect Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
|
||||
<*> <emphasis role='blue'>D</emphasis>irect Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
|
||||
... [DRM]
|
||||
# If [DRM] is selected as * or M, this must be selected:
|
||||
[ /*] <emphasis role='blue'>E</emphasis>nable legacy fbdev support for your modesetting driver
|
||||
[*] <emphasis role='blue'>E</emphasis>nable legacy fbdev support for your modesetting driver
|
||||
... [DRM_FBDEV_EMULATION]
|
||||
<*> <emphasis role='blue'>S</emphasis>imple framebuffer driver [DRM_SIMPLEDRM]
|
||||
<emphasis role='blue'>C</emphasis>onsole display driver support --->
|
||||
# If [DRM] is selected as * or M, this must be selected:
|
||||
[ /*] <emphasis role='blue'>F</emphasis>ramebuffer Console support [FRAMEBUFFER_CONSOLE]</screen>
|
||||
[*] <emphasis role='blue'>F</emphasis>ramebuffer Console support [FRAMEBUFFER_CONSOLE]</screen>
|
||||
|
Loading…
Reference in New Issue
Block a user