1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 07:02:34 +02:00

enable_flash_ich: warn if SMM BIOS Write Protection is detected in BIOS_CNTL

Corresponding to flashrom svn r1332.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
Stefan Tauner 2011-06-11 18:16:50 +00:00
parent c020706948
commit f9a8da595d

View File

@ -264,8 +264,17 @@ static int enable_flash_ich(struct pci_dev *dev, const char *name,
(old & (1 << 0)) ? "en" : "dis");
msg_pdbg("BIOS_CNTL is 0x%x\n", old);
new = old | 1;
/*
* Quote from the 6 Series datasheet (Document Number: 324645-004):
* "Bit 5: SMM BIOS Write Protect Disable (SMM_BWP)
* 1 = BIOS region SMM protection is enabled.
* The BIOS Region is not writable unless all processors are in SMM."
* In earlier chipsets this bit is reserved. */
if (old & (1 << 5)) {
msg_pinfo("WARNING: BIOS region SMM protection is enabled!\n");
}
new = old | 1;
if (new == old)
return 0;