OSDN Git Service

riscv/efi_stub: Add support for RISCV_EFI_BOOT_PROTOCOL
authorSunil V L <sunilvl@ventanamicro.com>
Thu, 19 May 2022 05:15:12 +0000 (10:45 +0530)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 19 May 2022 08:22:17 +0000 (10:22 +0200)
commit3f68e69520d3d52d66a6ad872a75b7d8f2ea7665
treeb1ada79433d09ca273cd5b8f78c30a49162d2387
parenta6cfe03c34bad8c7f51aba49a73403e348c51d1f
riscv/efi_stub: Add support for RISCV_EFI_BOOT_PROTOCOL

Add support for getting the boot hart ID from the Linux EFI stub using
RISCV_EFI_BOOT_PROTOCOL. This method is preferred over the existing DT
based approach since it works irrespective of DT or ACPI.

The specification of the protocol is hosted at:
https://github.com/riscv-non-isa/riscv-uefi

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Link: https://lore.kernel.org/r/20220519051512.136724-2-sunilvl@ventanamicro.com
[ardb: minor tweaks for coding style and whitespace]
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/efistub.h
drivers/firmware/efi/libstub/riscv-stub.c
include/linux/efi.h