soc/intel/common: Log CSE FW Status Registers before triggering recovery
The patch logs CSE Firmware Status Registers(FWSTS1, FWSTS2 & FWSTS3) before triggering recovery to help debugging. BUG=b:159962240 Test=Verified on hatch Signed-off-by: Sridhar Siricilla <sridhar.siricilla@intel.com> Change-Id: I90e9f5897408bfc37a69cf0bb23bff18a146b9e2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/43537 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
b0586d9911
commit
33aa115574
@ -153,8 +153,17 @@ struct get_bp_info_rsp {
|
|||||||
struct cse_bp_info bp_info;
|
struct cse_bp_info bp_info;
|
||||||
} __packed;
|
} __packed;
|
||||||
|
|
||||||
|
static void cse_log_status_registers(void)
|
||||||
|
{
|
||||||
|
printk(BIOS_DEBUG, "cse_lite: CSE status registers: HFSTS1: 0x%x, HFSTS2: 0x%x "
|
||||||
|
"HFSTS3: 0x%x\n", me_read_config32(PCI_ME_HFSTS1),
|
||||||
|
me_read_config32(PCI_ME_HFSTS2), me_read_config32(PCI_ME_HFSTS3));
|
||||||
|
}
|
||||||
|
|
||||||
static void cse_trigger_recovery(uint8_t rec_sub_code)
|
static void cse_trigger_recovery(uint8_t rec_sub_code)
|
||||||
{
|
{
|
||||||
|
/* Log CSE Firmware Status Registers to help debugging */
|
||||||
|
cse_log_status_registers();
|
||||||
if (CONFIG(VBOOT)) {
|
if (CONFIG(VBOOT)) {
|
||||||
struct vb2_context *ctx;
|
struct vb2_context *ctx;
|
||||||
ctx = vboot_get_context();
|
ctx = vboot_get_context();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user