Skip to content

Commit f89cd1c

Browse files
johnnylinwiwynnfelixheld
authored andcommitted
drivers/ocp/ewl: Enforce MRC when there's EWL type3 error
If Fastboot is enabled, the next boot will skip MRC and won't be able to detect MRC error via EWL and still continues booting. Enforce FSP MRC training in the next boot. Change-Id: I9dee0472f8e2602cecf88c6d00dec0bf02b9f7bd Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69148 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
1 parent 3435f81 commit f89cd1c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/drivers/ocp/ewl/ewl.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ void get_ewl(void)
8787
}
8888
offset += warning_header->Size;
8989
}
90-
if (type3_flag)
90+
if (type3_flag) {
91+
/* If Fastboot is enabled, the next boot will skip MRC and won't detect
92+
MRC error via EWL and still can boot up, so enforce MRC after reboot. */
93+
soc_set_mrc_cold_boot_flag(true);
9194
die("Memory Training Error!\n");
95+
}
9296
}

0 commit comments

Comments
 (0)