Re: [PATCH V2 2/3] verifiers: Core TPM support

2018-11-25 Thread Matthew Garrett
On Mon, Nov 26, 2018 at 4:47 PM Daniel Kiper wrote: > I have a feeling that both UEFI and TIS TPM implementations can coexists > together even on UEFI platform. Of course, AIUI, UEFI TPM should be default > if we play with TPM 2.0. TIS implementation should be used with TPM 1.2 > or if UEFI is bu

Re: [PATCH V2 2/3] verifiers: Core TPM support

2018-11-25 Thread Matthew Garrett
On Tue, Nov 20, 2018 at 10:59 AM Matthew Garrett wrote: > > On Mon, Nov 19, 2018 at 1:13 AM Daniel P. Smith wrote: > > > > It would be great if the TPM commands that are using EFI protocol and > > exposed to TPM command module be name spaced under efi, e.g. > > grub_efi_tpm_log_event. As I lay in

Re: [PATCH v3 09/10] RISC-V: Add to build system

2018-11-25 Thread Bin Meng
Hi Alex, On Mon, Nov 26, 2018 at 7:06 AM Alexander Graf wrote: > > > > On 18.11.18 12:41, Bin Meng wrote: > > Hi Alex, > > > > On Thu, Nov 15, 2018 at 1:27 AM Alexander Graf wrote: > >> > >> This patch adds support for RISC-V to the grub build system. With this > >> patch, I can successfully bui

[PATCH v4 07/10] RISC-V: Add awareness for RISC-V reloations

2018-11-25 Thread Alexander Graf
This patch adds awareness of RISC-V relocations throughout the grub tools as well as dynamic linkage and elf->PE relocation conversion support. Signed-off-by: Alexander Graf --- v2 -> v3: - Fix riscv32 target v3 -> v4: - Change copyright from 2013 to 2018 - Add spec reference --- grub

[PATCH v4 09/10] RISC-V: Add to build system

2018-11-25 Thread Alexander Graf
This patch adds support for RISC-V to the grub build system. With this patch, I can successfully build grub on RISC-V as a UEFI application. Signed-off-by: Alexander Graf Reviewed-by: Alistair Francis Reviewed-by: Bin Meng Tested-by: Bin Meng --- v2 -> v3: - Fix riscv32 target --- config

[PATCH v4 08/10] RISC-V: Add auxiliary files

2018-11-25 Thread Alexander Graf
To support a new architecture we need to provide a few helper functions for memory, cache, timer, etc support. This patch adds the remainders of those. Some bits are still disabled, as I couldn't guarantee that we're always running on models / in modes where the respective hardware is available.

[PATCH v4 06/10] RISC-V: Add Linux load logic

2018-11-25 Thread Alexander Graf
We currently only support to run grub on RISC-V as UEFI payload. Ideally, we also only want to support running Linux underneath as UEFI payload. Prepare that with a Linux boot case that is not enabled in Linux yet. At least it will give people something to test against when they enable the Linux U

[PATCH v4 04/10] RISC-V: Add setjmp implementation

2018-11-25 Thread Alexander Graf
This patch adds a 32/64 capable setjmp implementation for RISC-V. Signed-off-by: Alexander Graf Reviewed-by: Alistair Francis Reviewed-by: Bin Meng Tested-by: Bin Meng --- v3 -> v4: - Change copyright from 2013 to 2018 --- grub-core/lib/riscv/setjmp.S | 82 ++

[PATCH v4 01/10] efi: Rename armxx to arch

2018-11-25 Thread Alexander Graf
Some architectures want to boot Linux as plain UEFI binary. Today that really only encompasses ARM and AArch64, but going forward more architectures may adopt that model. So rename our internal API accordingly. Signed-off-by: Alexander Graf Acked-by: Leif Lindholm Reviewed-by: Alistair Francis

[PATCH v4 10/10] fdt: Treat device tree file type like ACPI

2018-11-25 Thread Alexander Graf
We now have signature check logic in grub which allows us to treat files differently depending on their file type. Treat a loaded device tree like an overlayed ACPI table. Both describe hardware, so I suppose their threat level is the same. Signed-off-by: Alexander Graf --- v3 -> v4: - Reba

[PATCH v4 00/10] Add RISC-V support

2018-11-25 Thread Alexander Graf
As part of the plan for total world domination, we would like to make sure that booting on RISC-V is in a sane state before anyone goes and does quick hacks "just because". For that reason, U-Boot supports UEFI booting on RISC-V for a while now. This patch set is the second part of the puzzle, wit

[PATCH v4 03/10] elf.h: Add RISC-V definitions

2018-11-25 Thread Alexander Graf
The RISC-V ABI document outlines ELF header structure and relocation information. Pull the respective magic numbers into our elf header so we can make use of them. Signed-off-by: Alexander Graf Reviewed-by: Alistair Francis Reviewed-by: Bin Meng Tested-by: Bin Meng --- include/grub/elf.h | 59

[PATCH v4 05/10] RISC-V: Add early startup code

2018-11-25 Thread Alexander Graf
On entry, we need to save the system table pointer as well as our image handle. Add an early startup file that saves them and then brings us into our main function. Signed-off-by: Alexander Graf Reviewed-by: Alistair Francis Reviewed-by: Bin Meng Tested-by: Bin Meng --- v3 -> v4: - Change

[PATCH v4 02/10] PE: Add RISC-V definitions

2018-11-25 Thread Alexander Graf
The PE format defines magic numbers as well as relocation identifiers for RISC-V. Add them to our include file, so we can make use of them. Signed-off-by: Alexander Graf Reviewed-by: Leif Lindholm Reviewed-by: Alistair Francis Reviewed-by: Bin Meng Tested-by: Bin Meng --- include/grub/efi/pe

Re: [PATCH v3 09/10] RISC-V: Add to build system

2018-11-25 Thread Alexander Graf
On 18.11.18 12:41, Bin Meng wrote: > Hi Alex, > > On Thu, Nov 15, 2018 at 1:27 AM Alexander Graf wrote: >> >> This patch adds support for RISC-V to the grub build system. With this >> patch, I can successfully build grub on RISC-V as a UEFI application. >> >> Signed-off-by: Alexander Graf >>

Re: [PATCH v3 08/10] RISC-V: Add auxiliary files

2018-11-25 Thread Alexander Graf
On 17.11.18 23:51, Auer, Lukas wrote: > On Wed, 2018-11-14 at 18:27 +0100, Alexander Graf wrote: >> To support a new architecture we need to provide a few helper >> functions >> for memory, cache, timer, etc support. >> >> This patch adds the remainders of those. Some bits are still >> disabled,

Re: [PATCH v3 08/10] RISC-V: Add auxiliary files

2018-11-25 Thread Alexander Graf
On 21.11.18 17:02, Daniel Kiper wrote: > On Wed, Nov 14, 2018 at 06:27:37PM +0100, Alexander Graf wrote: >> To support a new architecture we need to provide a few helper functions >> for memory, cache, timer, etc support. >> >> This patch adds the remainders of those. Some bits are still disable

Re: [PATCH v3 07/10] RISC-V: Add awareness for RISC-V reloations

2018-11-25 Thread Alexander Graf
On 21.11.18 16:51, Daniel Kiper wrote: > On Wed, Nov 14, 2018 at 06:27:36PM +0100, Alexander Graf wrote: >> This patch adds awareness of RISC-V relocations throughout the grub tools >> as well as dynamic linkage and elf->PE relocation conversion support. >> >> Signed-off-by: Alexander Graf >> >>