From ed9f562ca8f6bda651f159db6e155dfea80257b4 Mon Sep 17 00:00:00 2001 From: Krystian Hebel Date: Tue, 23 Feb 2021 16:37:59 +0100 Subject: [PATCH] device/dram/ddr4.c: fill missing ECC info from SPD Change-Id: I80fccfa6d108b68d6f33a3d47766205b423a41ff Signed-off-by: Krystian Hebel Reviewed-on: https://review.coreboot.org/c/coreboot/+/67058 Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier --- src/device/dram/ddr4.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/device/dram/ddr4.c b/src/device/dram/ddr4.c index a66ee86fd1..53b3d25b07 100644 --- a/src/device/dram/ddr4.c +++ b/src/device/dram/ddr4.c @@ -250,6 +250,8 @@ int spd_decode_ddr4(struct dimm_attr_ddr4_st *dimm, spd_raw_data spd) /* calculate size */ dimm->size_mb = cap_per_die_mbit / 8 * bus_width / sdram_width * dimm->ranks; + dimm->ecc_extension = spd[SPD_PRIMARY_SDRAM_WIDTH] & SPD_ECC_8BIT; + /* make sure we have the manufacturing information block */ if (spd_bytes_used > 320) { dimm->manufacturer_id = (spd[351] << 8) | spd[350];