Re: [PATCH 1/1] efi_loader: use EFI_EXIT in efi_riscv_get_boot_hartid

2023-01-12 Thread Sunil V L
return EFI_INVALID_PARAMETER; > + return EFI_EXIT(EFI_INVALID_PARAMETER); > > *boot_hartid = gd->arch.boot_hart; > Reviewed-by: Sunil V L > -- > 2.37.2 >

[RFC PATCH V2 2/2] efi_selftest: unit test for RISCV_EFI_BOOT_PROTOCOL

2022-01-28 Thread Sunil V L
Add a test for the RISCV_EFI_BOOT_PROTOCOL. Signed-off-by: Sunil V L --- lib/efi_selftest/Makefile | 1 + lib/efi_selftest/efi_selftest_riscv.c | 119 ++ 2 files changed, 120 insertions(+) create mode 100644 lib/efi_selftest/efi_selftest_riscv.c diff

[RFC PATCH V2 1/2] efi_loader: Enable RISCV_EFI_BOOT_PROTOCOL support

2022-01-28 Thread Sunil V L
This adds support for new RISCV_EFI_BOOT_PROTOCOL to communicate the boot hart ID to bootloader/kernel on RISC-V UEFI platforms. The specification of the protocol is hosted at: https://github.com/riscv-non-isa/riscv-uefi Signed-off-by: Sunil V L --- include/efi_api.h | 4 +++ include

[RFC PATCH V2 0/2] RISCV_EFI_BOOT_PROTOCOL support in U-boot

2022-01-28 Thread Sunil V L
which consume this protocol. The linux patch can be found in: riscv_boot_protocol_rfc_v2 branch at https://github.com/vlsunil/linux.git Changes since RFC V1: - Used EFI_ENTRY/EXIT and removed need for static variable - Addressed other comments from Heinrich - Added unit test patch Sunil V

Re: [RFC PATCH 1/1] efi_loader: Enable RISCV_EFI_BOOT_PROTOCOL support

2022-01-27 Thread Sunil V L
Hi Heinrich, On Thu, Jan 27, 2022 at 09:44:57AM +0100, Heinrich Schuchardt wrote: > On 1/26/22 12:06, Sunil V L wrote: > > This adds support for new RISCV_EFI_BOOT_PROTOCOL to > > communicate the boot hart ID to bootloader/kernel on RISC-V > > UEFI platforms. > > &

[RFC PATCH 1/1] efi_loader: Enable RISCV_EFI_BOOT_PROTOCOL support

2022-01-26 Thread Sunil V L
This adds support for new RISCV_EFI_BOOT_PROTOCOL to communicate the boot hart ID to bootloader/kernel on RISC-V UEFI platforms. Signed-off-by: Sunil V L --- include/efi_api.h | 4 +++ include/efi_loader.h | 2 ++ include/efi_riscv.h| 16 + lib/efi_loader

[RFC PATCH 0/1] RISCV_EFI_BOOT_PROTOCOL support in U-boot

2022-01-26 Thread Sunil V L
this protocol. The linux patch can be found in: riscv_boot_protocol_rfc_v1 branch at https://github.com/vlsunil/linux.git Sunil V L (1): efi_loader: Enable RISCV_EFI_BOOT_PROTOCOL support include/efi_api.h | 4 +++ include/efi_loader.h | 2 ++ include/efi_riscv.h| 16