From 43019aa7da6ccb914ed4c4aef5a3c71daad543bb Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Wed, 5 Jan 2022 07:30:43 -0700 Subject: [PATCH] soc/intel/common/memory: Don't die if SPD lengths differ Revert from die() to printk() if SPD lengths are different for mixed memory topology. Fixes booting system76/lemp10 when a DIMM is not present. Change-Id: Iec8dd693353abbe5047eb3d108e449209bae9436 Signed-off-by: Tim Crawford --- src/soc/intel/common/block/memory/meminit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/soc/intel/common/block/memory/meminit.c b/src/soc/intel/common/block/memory/meminit.c index 50c8b40df2..01c277439f 100644 --- a/src/soc/intel/common/block/memory/meminit.c +++ b/src/soc/intel/common/block/memory/meminit.c @@ -164,7 +164,8 @@ void mem_populate_channel_data(const struct soc_mem_cfg *soc_mem_cfg, * topology. */ if (spd_md_len != spd_dimm_len) - die("Length of SPD does not match for mixed topology!\n"); + printk(BIOS_ERR, "Mixed topology has incorrect length: %d != %d\n", + (int)spd_md_len, (int)spd_dimm_len); data->spd_len = spd_md_len; }