firmware: sysfb: Mark CONFIG_SYSFB_SIMPLEFB as deprecated
PATCH 1/1 firmware: sysfb: Mark CONFIG_SYSFB_SIMPLEFB as deprecated
Mark CONFIG_SYSFB_SIMPLEFB as deprecated. Enabling it allows to run simpledrm and simplefb on EFI/VESA framebuffers. Doing this is discouraged in favor of using efidrm and vesadrm.
--- drivers/firmware/Kconfig | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-)
drivers/firmware/Kconfig +12 -21
@@ -184,32 +184,23 @@ config SYSFB select SCREEN_INFO config SYSFB_SIMPLEFB - bool "Mark VGA/VBE/EFI FB as generic system framebuffer" + bool "Mark VGA/VBE/EFI FB as generic system framebuffer (deprecated)" depends on X86 || EFI select SYSFB help Firmwares often provide initial graphics framebuffers so the BIOS, bootloader or kernel can show basic video-output during boot for - user-guidance and debugging. Historically, x86 used the VESA BIOS - Extensions and EFI-framebuffers for this, which are mostly limited - to x86 BIOS or EFI systems. - This option, if enabled, marks VGA/VBE/EFI framebuffers as generic - framebuffers so the new generic system-framebuffer drivers can be - used instead. If the framebuffer is not compatible with the generic - modes, it is advertised as fallback platform framebuffer so legacy - drivers like efifb, vesafb and uvesafb can pick it up. - If this option is not selected, all system framebuffers are always - marked as fallback platform framebuffers as usual. - - Note: Legacy fbdev drivers, including vesafb, efifb, uvesafb, will - not be able to pick up generic system framebuffers if this option - is selected. You are highly encouraged to enable simplefb as - replacement if you select this option. simplefb can correctly deal - with generic system framebuffers. But you should still keep vesafb - and others enabled as fallback if a system framebuffer is - incompatible with simplefb. - - If unsure, say Y. + user-guidance and debugging. + + This option, if enabled, marks VBE/EFI framebuffers as system + framebuffers so the generic simpledrm driver can be used. If the + framebuffer is not compatible with the generic modes, it is + advertised as fallback platform framebuffer so regular drivers like + efidrm, vesadrm can pick it up. + + This option is deprecated and will be removed in the near future. If + unsure, say N and select efidrm, vesadrm instead. The dedicated DRM + drivers provide the same functionality plus additional features. config TH1520_AON_PROTOCOL tristate "Always-On firmware protocol"
Signature · 1 line
2.54.0
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [Medium] The updated help text for `SYSFB_SIMPLEFB` incorrectly claims that `efidrm` and `vesadrm` can…
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The updated help text for SYSFB_SIMPLEFB incorrectly claims that efidrm and vesadrm can act as fallbacks when SYSFB_SIMPLEFB is enabled.
- [Medium] Incomplete deprecation leads to conflicting Kconfig instructions for SYSFB_SIMPLEFB and DRM_SIMPLEDRM.
--
commit 5ea287d9e1ed6b65c8ad4f43e0319a4e41d57b15
Author: Thomas Zimmermann <[email protected]>
firmware: sysfb: Mark CONFIG_SYSFB_SIMPLEFB as deprecated
This commit marks CONFIG_SYSFB_SIMPLEFB as deprecated. Enabling it allows to run simpledrm and simplefb on EFI/VESA framebuffers, which is now discouraged in favor of using efidrm and vesadrm.
Quoted 13 lines
drivers/firmware/Kconfig +1
-1@@ -187,32 +187,23 @@ config SYSFB select SCREEN_INFO config SYSFB_SIMPLEFB - bool "Mark VGA/VBE/EFI FB as generic system framebuffer" + bool "Mark VGA/VBE/EFI FB as generic system framebuffer (deprecated)" depends on X86 || EFI select SYSFB help
[ ... ]
drivers/firmware/Kconfig config SYSFB · line 199
Quoted 5 lines
drivers/firmware/Kconfig +5
-0+ This option, if enabled, marks VBE/EFI framebuffers as system + framebuffers so the generic simpledrm driver can be used. If the + framebuffer is not compatible with the generic modes, it is + advertised as fallback platform framebuffer so regular drivers like + efidrm, vesadrm can pick it up.
[Severity: Medium]
Is this fallback behavior accurate for efidrm and vesadrm?
Looking at DRM_EFIDRM in drivers/gpu/drm/sysfb/Kconfig, it has a mutual exclusion dependency:
config DRM_EFIDRM
depends on DRM && MMU && EFI && (!SYSFB_SIMPLEFB || COMPILE_TEST)
Since both DRM_EFIDRM and DRM_VESADRM depend on !SYSFB_SIMPLEFB, it appears they cannot be enabled alongside SYSFB_SIMPLEFB in a standard build to act as fallbacks.
drivers/firmware/Kconfig config SYSFB · line 203
Quoted 4 lines
drivers/firmware/Kconfig +4
-0+ + This option is deprecated and will be removed in the near future. If + unsure, say N and select efidrm, vesadrm instead. The dedicated DRM + drivers provide the same functionality plus additional features.
[Severity: Medium]
Does the DRM_SIMPLEDRM documentation also need an update to resolve a conflict with this deprecation?
While this instructs users to say N to SYSFB_SIMPLEFB, the help text for DRM_SIMPLEDRM in drivers/gpu/drm/sysfb/Kconfig still explicitly instructs users to select it:
config DRM_SIMPLEDRM
help
...
On x86 BIOS or UEFI systems, you should also select SYSFB_SIMPLEFB to use UEFI and VESA framebuffers.
Leaving the DRM_SIMPLEDRM help text unmodified might leave users with conflicting instructions on how to configure system framebuffers.
Quoted 3 lines
config
TH1520_AON_PROTOCOL
tristate "Always-On firmware protocol"
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Thomas Zimmermann <[email protected]> writes:
Hello Thomas,
Thanks for the patch.
Quoted 6 lines
Mark
CONFIG_SYSFB_SIMPLEFBas deprecated. Enabling it allows to run simpledrm and simplefb on EFI/VESA framebuffers. Doing this is discouraged in favor of using efidrm and vesadrm.Signed-off-by Thomas Zimmermann <[email protected]>---
Do you know what the policy is for removal? For example, how many Linux releases should we wait for this to go away?
Signature · 5 lines
Best regards, Javier Martinez Canillas Core Platforms Red Hat
Hi
Am 17.06.26 um 10:46 schrieb Javier Martinez Canillas:
Quoted 6 lines
Thomas Zimmermann <[email protected]> writes:
Hello Thomas,
Thanks for the patch.
Quoted 7 lines
Quoted 6 lines
Mark
CONFIG_SYSFB_SIMPLEFBas deprecated. Enabling it allows to run simpledrm and simplefb on EFI/VESA framebuffers. Doing this is discouraged in favor of using efidrm and vesadrm.Signed-off-by Thomas Zimmermann <[email protected]>---
Reviewed-by Javier Martinez Canillas <[email protected]>
Thanks. The sashiko bot detected some inconsistencies in the docs, so there will be a v2 of this patch.
Quoted 3 lines
Do you know what the policy is for removal? For example, how many Linux releases should we wait for this to go away?
IDK. I'd wait for 2 or 3 releases after this lands and then remove it. It's a small change with a clear upgrade patch after all.
Best regards
Thomas
Quoted 1 line
Signature · 6 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com GF: Jochen Jaser, Andrew McDonald, Werner Knoblich, (HRB 36809, AG Nürnberg)
Hi Thomas,
drivers/firmware/Kconfig config SYSFB · line 187
Quoted 5 lines · Thomas Zimmermann
Mark
CONFIG_SYSFB_SIMPLEFBas deprecated. Enabling it allows toconfig
SYSFB_SIMPLEFBdrivers/firmware/Kconfig +1
-1- bool "Mark VGA/VBE/EFI FB as generic system framebuffer" + bool "Mark VGA/VBE/EFI FB as generic system framebuffer (deprecated)"
In v2, I think it also makes sense to add the 'transitional' attribute to the Kconfig entry to help phase it out.
Also see this patch message for an explanation of 'transitional':
https://lore.kernel.org/all/[email protected]/
- Julian Braha
Hi
Am 17.06.26 um 18:45 schrieb Julian Braha:
Quoted 10 lines
Hi Thomas,
drivers/firmware/Kconfig config SYSFB · line 187
Quoted 4 lines · Thomas Zimmermann
Mark
CONFIG_SYSFB_SIMPLEFBas deprecated. Enabling it allows to
configSYSFB_SIMPLEFBdrivers/firmware/Kconfig +1
-1- bool "Mark VGA/VBE/EFI FB as generic system framebuffer" + bool "Mark VGA/VBE/EFI FB as generic system framebuffer (deprecated)"In v2, I think it also makes sense to add the 'transitional' attribute to the
Kconfigentry to help phase it out.
Quoted 2 lines
Also see this patch message for an explanation of 'transitional':
https://lore.kernel.org/all/[email protected]/
Thanks for this pointer; I wasn't aware of this feature. This will be really useful to not accidentally leave users without display output.
I've played with the option, but it does not work are purely as shown in the example. I think it's because EFIDRM and VESADRM are existing options. So they already have a value.
What I did instead was to add new internal config options. They depend on the now-transitional SYSFB_SIMPLEFB and select the correct drivers. Once SYSFB_SIMPLEFB goes away, these options can go away as well.
Best regards
Thomas
Quoted 3 lines
- Julian Braha
Signature · 6 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com GF: Jochen Jaser, Andrew McDonald, Werner Knoblich, (HRB 36809, AG Nürnberg)