Skip to content

EFI stub cleanup work

Ard Biesheuvel linux-efi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7x86/efistub: Drop long obsolete UGA supportarch/x86/platform/efi/efi.c drivers/firmware/efi/libstub/x86-stub.c include/linux/efi.h+0 -940 replies
2/7efi/libstub: Use C99-style for loop to traverse handle bufferdrivers/firmware/efi/libstub/efistub.h drivers/firmware/efi/libstub/gop.c drivers/firmware/efi/libstub/pci.c +1 more+8 -120 replies
3/7efi/libstub: Simplify GOP handling codearch/x86/include/asm/efi.h drivers/firmware/efi/libstub/efi-stub.c drivers/firmware/efi/libstub/efistub.h +2 more+38 -742 replies
4/7efi/libstub: Refactor and cleanup GOP resolution picker codedrivers/firmware/efi/libstub/gop.c+103 -1620 replies
5/7efi/libstub: Simplify PCI I/O handle buffer traversaldrivers/firmware/efi/libstub/pci.c drivers/firmware/efi/libstub/x86-stub.c+13 -490 replies
6/7efi/libstub: Use cleanup helpers for freeing copies of the memory mapdrivers/firmware/efi/libstub/kaslr.c drivers/firmware/efi/libstub/mem.c drivers/firmware/efi/libstub/randomalloc.c +2 more+20 -290 replies
7/7efi/libstub: Use __free() helper for pool deallocationsdrivers/firmware/efi/libstub/efi-stub-helper.c drivers/firmware/efi/libstub/efi-stub.c drivers/firmware/efi/libstub/x86-stub.c+20 -260 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] EFI stub cleanup work

From: Ard Biesheuvel <[email protected]>

Some code cleanup for the EFI stub, to drop obsolete code, and to switch to newer and more ergonomic APIs for managing pool allocations and EFI handle buffers.

No functional changes intended, except for the UGA removal.

Ard Biesheuvel (7):
x86/efistub: Drop long obsolete UGA support
efi/libstub: Use C99-style for loop to traverse handle buffer efi/libstub: Simplify GOP handling code
efi/libstub: Refactor and cleanup GOP resolution picker code efi/libstub: Simplify PCI I/O handle buffer traversal efi/libstub: Use cleanup helpers for freeing copies of the memory map efi/libstub: Use __free() helper for pool deallocations

 arch/x86/include/asm/efi.h                     |   3 +
 arch/x86/platform/efi/efi.c                    |   2 -
 drivers/firmware/efi/libstub/efi-stub-helper.c |   9 +-
 drivers/firmware/efi/libstub/efi-stub.c        |  49 ++-
 drivers/firmware/efi/libstub/efistub.h         |  16 +-
 drivers/firmware/efi/libstub/gop.c             | 323 ++++++++------------
 drivers/firmware/efi/libstub/kaslr.c           |   4 +-
 drivers/firmware/efi/libstub/mem.c             |  20 +-
 drivers/firmware/efi/libstub/pci.c             |  34 +--
 drivers/firmware/efi/libstub/randomalloc.c     |   4 +-
 drivers/firmware/efi/libstub/relocate.c        |  10 +-
 drivers/firmware/efi/libstub/x86-stub.c        | 164 ++--------
 include/linux/efi.h                            |   2 -
 13 files changed, 198 insertions(+), 442 deletions(-)
Signature · 1 line
2.47.1.613.gc27f4b7a9f-goog