summaryrefslogtreecommitdiff
path: root/src/cpu/amd/model_fxx
diff options
context:
space:
mode:
authorUrja Rannikko <urjaman@gmail.com>2015-11-07 15:43:06 +0200
committerJonathan A. Kollasch <jakllsch@kollasch.net>2015-11-15 18:23:57 +0100
commit3ca41166d7d8fa36b58735ce5e36354279795f78 (patch)
tree696e815fe9acd1acdfc9dcad588042734a2e9c27 /src/cpu/amd/model_fxx
parent9597790571ce8d0e86921c3c7d1011fec8ce8a50 (diff)
downloadcoreboot-3ca41166d7d8fa36b58735ce5e36354279795f78.tar.xz
amd/model_fxx: Check FID&VID Support for the BSP (too)
Tested: Avoids crash with Sempron 2800+ on K8V-X. Change-Id: I76196176635bb0f6ac284c8cb3b72212774fdfe4 Signed-off-by: Urja Rannikko <urjaman@gmail.com> Reviewed-on: http://review.coreboot.org/12336 Tested-by: build bot (Jenkins) Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com> Reviewed-by: Jonathan A. Kollasch <jakllsch@kollasch.net>
Diffstat (limited to 'src/cpu/amd/model_fxx')
-rw-r--r--src/cpu/amd/model_fxx/fidvid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/amd/model_fxx/fidvid.c b/src/cpu/amd/model_fxx/fidvid.c
index 9851e6511e..03415d1b89 100644
--- a/src/cpu/amd/model_fxx/fidvid.c
+++ b/src/cpu/amd/model_fxx/fidvid.c
@@ -535,6 +535,9 @@ static void init_fidvid_bsp(unsigned bsp_apicid)
unsigned i;
#endif
+ if ((cpuid_edx(0x80000007) & 0x06) != 0x06)
+ return; /* FID/VID change not supported */
+
msr_t msr;
msr = rdmsr(0xc0010042);
fid_max = ((msr.lo >> 16) & 0x3f); /* max fid */