From 8549c6894a2fcf88e9318c44e105997fd481a929 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Tue, 24 Feb 2026 15:18:59 +0100 Subject: [PATCH] amdfwtool: Make NVRAM regions writeable When ROM Armor is enabled and PSP is not in "capsule update mode", the PSP can only write to PSP directory entries that have the writable bit set. As the fTPM PSP trustlet must write to NVRAM regions as part of the fTPM operation, set the writable bit on such regions. Fixes crash on PSP side when using ROM Armor and fTPM. Signed-off-by: Patrick Rudolph Change-Id: I5668976d687e5f9aa3fc62e91adf6bde5cadb5b8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/91699 Tested-by: build bot (Jenkins) Reviewed-by: Maximilian Brune --- util/amdfwtool/amdfwtool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c index 15d2926fd3..a5047d6830 100644 --- a/util/amdfwtool/amdfwtool.c +++ b/util/amdfwtool/amdfwtool.c @@ -1127,6 +1127,7 @@ static void integrate_psp_firmwares(context *ctx, pspdir->entries[count].rsvd = 0; pspdir->entries[count].size = size; pspdir->entries[count].addr = addr; + pspdir->entries[count].writable = 1; pspdir->entries[count].address_mode = SET_ADDR_MODE(pspdir, AMD_ADDR_REL_BIOS);