Skip to content

efi: x86: Provide EDID from GOP device

Thomas Zimmermann dri-devel linux-efi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5efi: Fix trailing whitespace in header fileinclude/linux/efi.h+1 -11 reply
2/5efi/libstub: gop: Find GOP handle instead of GOP datadrivers/firmware/efi/libstub/gop.c+17 -102 replies
3/5efi/libstub: gop: Initialize screen_info in helper functiondrivers/firmware/efi/libstub/gop.c+33 -432 replies
4/5efi/libstub: gop: Add support for reading EDIDdrivers/firmware/efi/libstub/efi-stub.c drivers/firmware/efi/libstub/efistub.h drivers/firmware/efi/libstub/gop.c +2 more+69 -42 replies
5/5efi/libstub: x86: Store EDID in boot_paramsdrivers/firmware/efi/libstub/x86-stub.c+2 -11 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchJavier Martinez Canillas
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] efi: x86: Provide EDID from GOP device

Add support for EFI_EDID_ACTIVE_PROTOCOL and EFI_EDID_DISCOVERED_PROTOCOL on x86. Refactor the GOP helpers for EDID support, then retrieve the EDID into x86 boot_params.

Later boot code copies the EDID from the boot parameters into the global variable edid_info. Graphics drivers, such as efidrm, can pick up the information from there. In the case of efidrm, it provides the EDID to user-space compositors, which use it for improved QoS on the display output. Similar functionality is already available on old VESA systems with vesadrm.

Tested on x86 EFI systems.

Another patch is required to provide EDID on non-x86 systems via the generic EFI stub. The implementation can directly build upon this series.

Thomas Zimmermann (5):
efi: Fix trailing whitespace in header file efi/libstub: gop: Find GOP handle instead of GOP data efi/libstub: gop: Initialize screen_info in helper function efi/libstub: gop: Add support for reading EDID efi/libstub: x86: Store EDID in boot_params

 drivers/firmware/efi/libstub/efi-stub.c |   2 +-
 drivers/firmware/efi/libstub/efistub.h  |  31 +++++-
 drivers/firmware/efi/libstub/gop.c      | 137 +++++++++++++++---------
 drivers/firmware/efi/libstub/x86-stub.c |   3 +-
 include/linux/efi.h                     |   4 +-
 5 files changed, 120 insertions(+), 57 deletions(-)
Signature · 1 line
2.51.0