[PATCH 5/6] ibmvtpm: Add support for trusted boot using a vTPM 2.0

2022-08-11 Thread Diego Domingos
From: Stefan Berger Add support for trusted boot using a vTPM 2.0 on the IBM IEEE1275 PowerPC platform. With this patch grub now measures text and binary data into the TPM's PCRs 8 and 9 in the same way as the x86_64 platform does. This patch requires Daniel Axtens's patches for claiming more

[PATCH 0/6] Dynamic allocation of memory regions and IBM vTPM v2

2022-08-11 Thread Diego Domingos
Hello, This is an addition to the series sent from Daniel Axtens (https://lists.gnu.org/archive/html/grub-devel/2022-04/msg00064.html). Patch 'ieee1275: request memory with ibm,client-architecture-support' implements vectors 1-4 of client-architecture-support negotiation However, during some

[PATCH 2/6] ieee1275: drop len -= 1 quirk in heap_init

2022-08-11 Thread Diego Domingos
From: Daniel Axtens This was apparently 'required by some firmware': commit dc9468500919 ("2007-02-12 Hollis Blanchard "). It's not clear what firmware that was, and what platform from 14 years ago which exhibited the bug then is still both in use and buggy now. It doesn't cause issues on

[PATCH 4/6] Add memtool module with memory allocation stress-test

2022-08-11 Thread Diego Domingos
From: Daniel Axtens When working on memory, it's nice to be able to test your work. Add a memtest module. When compiled with --enable-mm-debug, it exposes 3 commands: * lsmem - print all allocations and free space in all regions * lsfreemem - print free space in all regions *

[PATCH 6/6] ieee1275: implement vec5 for cas negotiation

2022-08-11 Thread Diego Domingos
). Signed-off-by: Diego Domingos --- grub-core/kern/ieee1275/init.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/grub-core/kern/ieee1275/init.c b/grub-core/kern/ieee1275/init.c index ec591e6e1..26d3c7a33 100644 --- a/grub-core/kern/ieee1275/init.c +++ b

[PATCH 1/6] ieee1275: request memory with ibm, client-architecture-support

2022-08-11 Thread Diego Domingos
From: Daniel Axtens On PowerVM, the first time we boot a Linux partition, we may only get 256MB of real memory area, even if the partition has more memory. This isn't enough to reliably verify a kernel. Fortunately, the Power Architecture Platform Reference (PAPR) defines a method we can call

[PATCH 3/6] ieee1275: support runtime memory claiming

2022-08-11 Thread Diego Domingos
From: Daniel Axtens On powerpc-ieee1275, we are running out of memory trying to verify anything. This is because: - we have to load an entire file into memory to verify it. This is difficult to change with appended signatures. - We only have 32MB of heap. - Distro kernels are now often

[PATCH 0/6] Dynamic allocation of memory regions and IBM vTPM v2

2022-08-11 Thread Diego Domingos
Hello, This is an addition to the series sent from Daniel Axtens (https://lists.gnu.org/archive/html/grub-devel/2022-04/msg00064.html). Patch 'ieee1275: request memory with ibm,client-architecture-support' implements vectors 1-4 of client-architecture-support negotiation However, during some

[PATCH] IBM client architecture (CAS) reboot support

2021-05-11 Thread Diego Domingos
From: Paulo Flabiano Smorigo This is an implementation of IBM client architecture (CAS) reboot for GRUB. There are cases where the POWER firmware must reboot in order to support specific features requested by a kernel. The kernel calls ibm,client-architecture-support and it may either return or

[PATCH] ieee1275/ofdisk: retry on open and read failure

2021-05-07 Thread Diego Domingos
Sometimes, when booting from a very busy SAN, the access to the disk can fail and then grub will eventually drop to grub prompt. This scenario is more frequent when deploying many machines at the same time using the same SAN. This patch aims to force the ofdisk module to retry the open or read

[PATCH 1/2] ieee1275/powerpc: implements fibre channel discovery for ofpathname

2020-11-20 Thread Diego Domingos
From: Diego Domingos grub-ofpathname doesn't work with fibre channel because there is no function currently implemented for it. This patch enables it by prividing a function that looks for the port name, building the entire path for OF devices. --- grub-core/osdep/linux/ofpath.c | 49

[PATCH 0/2] ieee1275/powerpc: implement ofpath to enable hint feature for FC and dm devices

2020-11-20 Thread Diego Domingos
The grub-ofpathname and hint feature for ieee1275 are not working since there is no code implemented to get the information needed about fibre channel devices and device mapper. This patch series implements the codes for both groups of devices and with them we can get the --hint-ieee1275

[PATCH 2/2] ieee1275/powerpc: enables device mapper discovery

2020-11-20 Thread Diego Domingos
From: Diego Domingos this patch enables the device mapper discovery on ofpath.c. Currently, when we are dealing with a device like /dev/dm-* the ofpath returns null since there is no function implemented to handle this case. This patch implements a function that will look into /sys/block/dm

[PATCH] ieee1275: Avoiding many unecessary open/close

2020-11-19 Thread Diego Domingos
. This close will be responsible to request the firmware to actually close the disk. Yet, this patch modifies the grub_ofdisk_get_block_size function, avoiding open and close calls inside of it. Thank you Michael Chang (mch...@suse.com) for all support. Signed-off-by: Diego Domingos --- grub