[RFC PATCH v2 0/3] Preserve TPM log across kexec

From: Stefan Berger
Date: Mon Mar 11 2024 - 09:21:15 EST


This series resolves an issue on PowerVM and KVM on Power where the memory
the TPM log was held in may become inaccessible or corrupted after a kexec
soft reboot. The solution on these two platforms is to store the whole log
in the device tree because the device tree is preserved across a kexec with
either of the two kexec syscalls.

Regards,
Stefan

v2:
- Added DT bindings patch (2/3)
- Reformulated commit messages and addded Fixes tags
- Follow Michael's suggestion on prom_init patch (1/3)

Stefan Berger (3):
powerpc/prom_init: Replace linux,sml-base/sml-size with linux,sml-log
dt-bindings: tpm: Add linux,sml-log to ibm,vtpm.yaml
tpm: of: If available use linux,sml-log to get the log and its size

.../devicetree/bindings/tpm/ibm,vtpm.yaml | 20 +++++++++--
.../devicetree/bindings/tpm/tpm-common.yaml | 14 +++++++-
arch/powerpc/kernel/prom_init.c | 27 +++++++++-----
drivers/char/tpm/eventlog/of.c | 36 ++++++-------------
4 files changed, 61 insertions(+), 36 deletions(-)

--
2.43.0