]> Gentwo Git Trees - linux/.git/commitdiff
efi/libstub: x86: Store EDID in boot_params
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 15 Oct 2025 15:56:34 +0000 (17:56 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 18 Nov 2025 19:39:55 +0000 (20:39 +0100)
Retrieve the GOP device's EDID information in the kernel's boot
parameters. Makes the data avaialble to kernel graphics code and
drives, such as efidrm.

With efidrm, the EDID is now also available to user-space compositors
via standard DRM interfaces.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/x86-stub.c

index 6e51cca72684112bd2823251e93c7d68dbd164e7..cef32e2c82d8fdd1e9b375f3cc9fa9032e09d33c 100644 (file)
@@ -487,8 +487,9 @@ static void setup_quirks(struct boot_params *boot_params)
 static void setup_graphics(struct boot_params *boot_params)
 {
        struct screen_info *si = memset(&boot_params->screen_info, 0, sizeof(*si));
+       struct edid_info *edid = memset(&boot_params->edid_info, 0, sizeof(*edid));
 
-       efi_setup_graphics(si, NULL);
+       efi_setup_graphics(si, edid);
 }
 
 static void __noreturn efi_exit(efi_handle_t handle, efi_status_t status)