Skip to content

Commit e41ef37

Browse files
tdzardbiesheuvel
authored andcommitted
efi/libstub: x86: Store EDID in boot_params
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>
1 parent 17029cd commit e41ef37

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/firmware/efi/libstub/x86-stub.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,9 @@ static void setup_quirks(struct boot_params *boot_params)
487487
static void setup_graphics(struct boot_params *boot_params)
488488
{
489489
struct screen_info *si = memset(&boot_params->screen_info, 0, sizeof(*si));
490+
struct edid_info *edid = memset(&boot_params->edid_info, 0, sizeof(*edid));
490491

491-
efi_setup_graphics(si, NULL);
492+
efi_setup_graphics(si, edid);
492493
}
493494

494495
static void __noreturn efi_exit(efi_handle_t handle, efi_status_t status)

0 commit comments

Comments
 (0)