soc/intel/xeon_sp: Enable FSP_ERROR_INFO_HOB handling

After calling FSP MemoryInit API, if there is an error, some FSPs
(such as SPR-SP FSP) is capable of generating FSP_ERROR_INFO_HOB.
Check existence of such a HOB and handle it accordingly.

Signed-off-by: Tim Chu <Tim.Chu@quantatw.com>
Change-Id: I612393ffac90815606f3f2544bc1518f6912e605
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71952
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: David Hendricks <david.hendricks@gmail.com>
This commit is contained in:
Tim Chu 2022-12-14 11:37:55 +00:00 committed by David Hendricks
parent 8190840fdf
commit 80b1fa3332
2 changed files with 4 additions and 0 deletions

View File

@ -10,5 +10,6 @@ void mainboard_memory_init_params(FSPM_UPD * mupd);
void mainboard_rtc_failed(void); void mainboard_rtc_failed(void);
void save_dimm_info(void); void save_dimm_info(void);
void mainboard_ewl_check(void); void mainboard_ewl_check(void);
void fsp_check_for_error(void);
#endif /* _SOC_ROMSTAGE_H_ */ #endif /* _SOC_ROMSTAGE_H_ */

View File

@ -17,6 +17,9 @@ void mainboard_romstage_entry(void)
printk(BIOS_DEBUG, "coreboot fsp_memory_init finished...\n"); printk(BIOS_DEBUG, "coreboot fsp_memory_init finished...\n");
mainboard_ewl_check(); mainboard_ewl_check();
if (CONFIG(ENABLE_FSP_ERROR_INFO))
fsp_check_for_error();
unlock_pam_regions(); unlock_pam_regions();
save_dimm_info(); save_dimm_info();