summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJędrzej Ciupis <jciupis@google.com>2024-08-02 12:56:30 +0200
committerFelix Held <felix-coreboot@felixheld.de>2024-08-21 14:32:02 +0000
commit1dd8991fef5e4c5174cdcdd1e1e44c5d1fa9ed0e (patch)
treec83ab2a550ce2cfcf683278dec866132ab398980
parentbd5356cfefe4315a7e888de9d4ffe2128bd74310 (diff)
soc/intel/common: fix CrashLog size in legacy mode
Intel's PMC CrashLog size in legacy mode is expressed in DWORDs and therefore needs to be explicitly recalculated to bytes. BUG=None TEST=Built and checked the size in logs Change-Id: I2678d537439c24fbd10aa3ceffee63c9a849d28b Signed-off-by: Jędrzej Ciupis <jciupis@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83883 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jakub Czapiga <czapiga@google.com>
-rw-r--r--src/soc/intel/common/block/crashlog/crashlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/common/block/crashlog/crashlog.c b/src/soc/intel/common/block/crashlog/crashlog.c
index 041c8bf1af..007b469ba1 100644
--- a/src/soc/intel/common/block/crashlog/crashlog.c
+++ b/src/soc/intel/common/block/crashlog/crashlog.c
@@ -379,7 +379,7 @@ void __weak cl_get_pmc_sram_data(cl_node_t *head)
return;
}
pmc_crashLog_size = (discovery_buf.bits.size != 0) ?
- discovery_buf.bits.size : 0xC00;
+ discovery_buf.bits.size * sizeof(u32) : 0xC00;
printk(BIOS_DEBUG, "PMC crashLog size in legacy mode : 0x%X\n",
pmc_crashLog_size);
}