mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: soc/intel/skylake: Display FPF status of CSME
Field Programmable Fuses (FPF) status maintained by
CSME in bits 30:31 of FWSTS6 for Skylake and Kabylake.
FPF committed means CSME has blown the fuses.
BUG=none
BRANCH=none
TEST=none
Change-Id: I3db6962e0e70038430c774b781cb55b3d069973f
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Original-Commit-Id: 4a907c79a2
Original-Change-Id: If63c7874e6c894749df8100426faca0ad432384b
Original-Signed-off-by: Pratik Prajapati <pratikkumar.v.prajapati@intel.com>
Original-Reviewed-on: https://review.coreboot.org/19747
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-by: Philippe Mathieu-Daud <philippe.mathieu.daude@gmail.com>
Reviewed-on: https://chromium-review.googlesource.com/513955
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
This commit is contained in:
parent
617aa44c0e
commit
0175193c9e
2 changed files with 26 additions and 0 deletions
|
@ -186,6 +186,18 @@ union me_hfs3 {
|
|||
} __attribute__ ((packed)) fields;
|
||||
};
|
||||
|
||||
#define PCI_ME_HFSTS6 0x6c
|
||||
#define ME_HFS6_FPF_NOT_COMMITTED 0x0
|
||||
#define ME_HFS6_FPF_ERROR 0x2
|
||||
|
||||
union me_hfs6 {
|
||||
u32 data;
|
||||
struct {
|
||||
u32 reserved1: 30;
|
||||
u32 fpf_nvars: 2;
|
||||
} __attribute__ ((packed)) fields;
|
||||
};
|
||||
|
||||
/*
|
||||
* Management Engine MMIO registers
|
||||
*/
|
||||
|
|
|
@ -224,10 +224,12 @@ void intel_me_status(void)
|
|||
union me_hfs hfs;
|
||||
union me_hfs2 hfs2;
|
||||
union me_hfs3 hfs3;
|
||||
union me_hfs6 hfs6;
|
||||
|
||||
hfs.data = me_read_config32(PCI_ME_HFSTS1);
|
||||
hfs2.data = me_read_config32(PCI_ME_HFSTS2);
|
||||
hfs3.data = me_read_config32(PCI_ME_HFSTS3);
|
||||
hfs6.data = me_read_config32(PCI_ME_HFSTS6);
|
||||
|
||||
/* Check Current States */
|
||||
printk(BIOS_DEBUG, "ME: FW Partition Table : %s\n",
|
||||
|
@ -341,6 +343,18 @@ void intel_me_status(void)
|
|||
hfs3.fields.fw_sku);
|
||||
}
|
||||
}
|
||||
|
||||
printk(BIOS_DEBUG, "ME: FPF status : ");
|
||||
switch (hfs6.fields.fpf_nvars) {
|
||||
case ME_HFS6_FPF_NOT_COMMITTED:
|
||||
printk(BIOS_DEBUG, "unfused\n");
|
||||
break;
|
||||
case ME_HFS6_FPF_ERROR:
|
||||
printk(BIOS_DEBUG, "unknown\n");
|
||||
break;
|
||||
default:
|
||||
printk(BIOS_DEBUG, "fused\n");
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue