[coreboot-gerrit] Change in coreboot[master]: nb/intel/x4x: Don't use cached settings if CPU FSB has been changed

Arthur Heymans (Code Review) gerrit at coreboot.org
Wed Sep 5 21:03:42 CEST 2018


Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/28506


Change subject: nb/intel/x4x: Don't use cached settings if CPU FSB has been changed
......................................................................

nb/intel/x4x: Don't use cached settings if CPU FSB has been changed

Using the cached CPU FSB setting can simply be wrong, in which case it won't
boot. Since the selected timings also depend on the CPU FSB, it is also best to
not use cached timings at all when a change is detected.

UNTESTED.

Change-Id: I12d91d0e892c15778409d7c00b27652ee52ca80c
Signed-off-by: Arthur Heymans <arthur at aheymans.xyz>
---
M src/northbridge/intel/x4x/raminit.c
1 file changed, 8 insertions(+), 1 deletion(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/06/28506/1

diff --git a/src/northbridge/intel/x4x/raminit.c b/src/northbridge/intel/x4x/raminit.c
index 9d37ada..b4f103b 100644
--- a/src/northbridge/intel/x4x/raminit.c
+++ b/src/northbridge/intel/x4x/raminit.c
@@ -669,9 +669,16 @@
 		/* check SPD checksum to make sure the DIMMs haven't been
 		 * replaced */
 		fast_boot = verify_spds(spd_map, ctrl_cached) == CB_SUCCESS;
-		if (!fast_boot)
+		if (!fast_boot) {
 			printk(BIOS_DEBUG, "SPD checksums don't match,"
 				" dimm's have been replaced\n");
+		} else {
+			find_fsb_speed(&s);
+			fast_boot = s.max_fsb == ctrl_cached->max_fsb;
+			if (!fast_boot)
+				printk(BIOS_DEBUG,
+				       "CPU FSB does match and has been replaced\n");
+		}
 	} else {
 		fast_boot = boot_path == BOOT_PATH_RESUME;
 	}

-- 
To view, visit https://review.coreboot.org/28506
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I12d91d0e892c15778409d7c00b27652ee52ca80c
Gerrit-Change-Number: 28506
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur at aheymans.xyz>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180905/29d6ee2b/attachment.html>


More information about the coreboot-gerrit mailing list