mbox series

[GIT,PULL,2/2] EFI removal of efivars sysfs driver

Message ID 20220801134117.1605678-3-ardb@kernel.org
State New
Headers show
Series EFI pull requests for v5.20 | expand

Pull-request

git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git tags/efi-efivars-removal-for-v5.20

Message

Ard Biesheuvel Aug. 1, 2022, 1:41 p.m. UTC
The following changes since commit 5ac941367a6f85777ef34ec15d60e17ea8e446d4:

  efi: vars: Drop __efivar_entry_iter() helper which is no longer used (2022-06-24 20:40:19 +0200)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git tags/efi-efivars-removal-for-v5.20

for you to fetch changes up to 2d82e6227ea189c0589e7383a36616ac2a2d248c:

  efi: vars: Move efivar caching layer into efivarfs (2022-06-24 20:40:19 +0200)

----------------------------------------------------------------
EFI efivars sysfs interface removal

Remove the obsolete 'efivars' sysfs based interface to the EFI variable
store, now that all users have moved to the efivarfs pseudo file system,
which was created ~10 years ago to address some fundamental shortcomings
in the sysfs based driver.

Move the 'business logic' related to which EFI variables are important
and may affect the boot flow from the efivars support layer into the
efivarfs pseudo file system, so it is no longer exposed to other parts
of the kernel.

----------------------------------------------------------------
Ard Biesheuvel (3):
      efi: vars: Remove deprecated 'efivars' sysfs interface
      efi: vars: Switch to new wrapper layer
      efi: vars: Move efivar caching layer into efivarfs

 Documentation/x86/x86_64/uefi.rst        |    2 +-
 arch/arm/configs/milbeaut_m10v_defconfig |    1 -
 arch/ia64/configs/bigsur_defconfig       |    1 -
 arch/ia64/configs/generic_defconfig      |    1 -
 arch/ia64/configs/gensparse_defconfig    |    1 -
 arch/ia64/configs/tiger_defconfig        |    1 -
 arch/ia64/configs/zx1_defconfig          |    1 -
 arch/x86/configs/i386_defconfig          |    1 -
 arch/x86/configs/x86_64_defconfig        |    1 -
 drivers/firmware/efi/Kconfig             |   12 -
 drivers/firmware/efi/Makefile            |    1 -
 drivers/firmware/efi/efi.c               |    1 +
 drivers/firmware/efi/efivars.c           |  660 -------------------
 drivers/firmware/efi/vars.c              | 1023 ------------------------------
 fs/efivarfs/Makefile                     |    2 +-
 fs/efivarfs/internal.h                   |   40 ++
 fs/efivarfs/vars.c                       |  738 +++++++++++++++++++++
 include/linux/efi.h                      |   56 --
 18 files changed, 781 insertions(+), 1762 deletions(-)
 delete mode 100644 drivers/firmware/efi/efivars.c
 create mode 100644 fs/efivarfs/vars.c

Comments

Linus Torvalds Aug. 3, 2022, 9:43 p.m. UTC | #1
On Mon, Aug 1, 2022 at 6:41 AM Ard Biesheuvel <ardb@kernel.org> wrote:
>
> EFI efivars sysfs interface removal

I've pulled this, but let's see if somebody screams. We may have to
reinstate it if it's still used.

            Linus
pr-tracker-bot@kernel.org Aug. 3, 2022, 10:29 p.m. UTC | #2
The pull request you sent on Mon,  1 Aug 2022 15:41:17 +0200:

> git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git tags/efi-efivars-removal-for-v5.20

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/ab17c0cd376f240bb8ead6f03be2bb4748bbc61a

Thank you!