summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeff Li <lijinfeng01@inspur.com>2023-06-09 15:49:12 +0800
committerLean Sheng Tan <sheng.tan@9elements.com>2023-06-14 09:53:57 +0000
commit575eb73951a42f1b481b436c4cc156ab333c1a15 (patch)
tree316baa74640e665c9c87052f7f3eef79a5157f30 /src
parent7fb661fa8a2d413519823b468e784d0452016019 (diff)
soc/intel/xeon_sp: Fix HEST table length
"current" points to the start of HEST table, so "next - current" already includes the size of its header, no need for increment here. This issue was found on SPR-SP platform. The length of HEST table is now correct with this patch. Change-Id: I6ff1e8e24612b7356772d582ff9a7e53863419db Signed-off-by: Jeff Li <lijinfeng01@inspur.com> Signed-off-by: Ziang Wang <ziang.wang@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/75738 Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/xeon_sp/ras/hest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/xeon_sp/ras/hest.c b/src/soc/intel/xeon_sp/ras/hest.c
index 9eb54d9559..2da720a744 100644
--- a/src/soc/intel/xeon_sp/ras/hest.c
+++ b/src/soc/intel/xeon_sp/ras/hest.c
@@ -65,7 +65,7 @@ static unsigned long acpi_fill_hest(acpi_hest_t *hest)
next = hest + 1;
next += acpi_hest_add_ghes(next);
hest->error_source_count += 1;
- header->length += next - current;
+ header->length = next - current;
return header->length;
}