From f9a8da595d0961a7c5c899117d8e8dc7bdafaf42 Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Sat, 11 Jun 2011 18:16:50 +0000 Subject: enable_flash_ich: warn if SMM BIOS Write Protection is detected in BIOS_CNTL Corresponding to flashrom svn r1332. Signed-off-by: Stefan Tauner Acked-by: Carl-Daniel Hailfinger --- chipset_enable.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'chipset_enable.c') diff --git a/chipset_enable.c b/chipset_enable.c index b5385dc..afb82aa 100644 --- a/chipset_enable.c +++ b/chipset_enable.c @@ -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; -- cgit v1.1