Skip to content

Commit

Permalink
soc/intel/common/memory: Don't die if SPD lengths differ
Browse files Browse the repository at this point in the history
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 <tcrawford@system76.com>
  • Loading branch information
crawfxrd authored and jackpot51 committed Jan 5, 2022
1 parent 2018180 commit 43019aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/soc/intel/common/block/memory/meminit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 43019aa

Please sign in to comment.