]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2bf0303b003cf67d29011dd8da762954fb9c4674
treeb1ada79433d09ca273cd5b8f78c30a49162d2387
parentea018bdf8f369f2188878ab20b9781d53f398053
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