diff options
Diffstat (limited to 'src/soc/intel/apollolake/cse.c')
-rw-r--r-- | src/soc/intel/apollolake/cse.c | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/src/soc/intel/apollolake/cse.c b/src/soc/intel/apollolake/cse.c index 8473d20aef..01c4c474c2 100644 --- a/src/soc/intel/apollolake/cse.c +++ b/src/soc/intel/apollolake/cse.c @@ -158,16 +158,21 @@ static uint32_t dump_status(int index, int reg_addr) static void dump_cse_state(void) { union cse_fwsts1 fwsts1; + union cse_fwsts2 fwsts2; + union cse_fwsts3 fwsts3; + union cse_fwsts4 fwsts4; + union cse_fwsts5 fwsts5; + union cse_fwsts6 fwsts6; if (!is_cse_enabled()) return; fwsts1.data = dump_status(1, PCI_ME_HFSTS1); - dump_status(2, PCI_ME_HFSTS2); - dump_status(3, PCI_ME_HFSTS3); - dump_status(4, PCI_ME_HFSTS4); - dump_status(5, PCI_ME_HFSTS5); - dump_status(6, PCI_ME_HFSTS6); + fwsts2.data = dump_status(2, PCI_ME_HFSTS2); + fwsts3.data = dump_status(3, PCI_ME_HFSTS3); + fwsts4.data = dump_status(4, PCI_ME_HFSTS4); + fwsts5.data = dump_status(5, PCI_ME_HFSTS5); + fwsts6.data = dump_status(6, PCI_ME_HFSTS6); printk(BIOS_DEBUG, "CSE: Working State : %u\n", fwsts1.fields.working_state); @@ -181,20 +186,20 @@ static void dump_cse_state(void) fwsts1.fields.error_code); printk(BIOS_DEBUG, "CSE: Operation Mode : %u\n", fwsts1.fields.operation_mode); - - printk(BIOS_DEBUG, "CSE: FPF status : "); - switch (g_fuse_state) { - case FUSE_FLASH_UNFUSED: - printk(BIOS_DEBUG, "unfused"); - break; - case FUSE_FLASH_FUSED: - printk(BIOS_DEBUG, "fused"); - break; - default: - case FUSE_FLASH_UNKNOWN: - printk(BIOS_DEBUG, "unknown"); - } - printk(BIOS_DEBUG, "\n"); + printk(BIOS_DEBUG, "CSE: IBB Verification Result: %s\n", + fwsts3.fields.ibb_verif_result ? "PASS" : "FAIL"); + printk(BIOS_DEBUG, "CSE: IBB Verification Done : %s\n", + fwsts3.fields.ibb_verif_done ? "YES" : "NO"); + printk(BIOS_DEBUG, "CSE: Actual IBB Size : %u\n", + fwsts3.fields.ibb_size); + printk(BIOS_DEBUG, "CSE: Verified Boot Valid : %s\n", + fwsts4.fields.txe_veri_boot_valid ? "PASS" : "FAIL"); + printk(BIOS_DEBUG, "CSE: Verified Boot Test : %s\n", + fwsts4.fields.txe_veri_boot_test ? "YES" : "NO"); + printk(BIOS_DEBUG, "CSE: FPF status : %s\n", + fwsts6.fields.fpf_commited ? "FUSED" : "UNFUSED"); + printk(BIOS_DEBUG, "CSE: Error Status Code : %u\n", + fwsts5.fields.error_status_code); } #define PCR_PSFX_T0_SHDW_PCIEN 0x1C |