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>
This commit is contained in:
Urja Rannikko 2015-11-07 15:43:06 +02:00 committed by Jonathan A. Kollasch
parent 9597790571
commit 3ca41166d7
1 changed files with 3 additions and 0 deletions

View File

@ -535,6 +535,9 @@ static void init_fidvid_bsp(unsigned bsp_apicid)
unsigned i; unsigned i;
#endif #endif
if ((cpuid_edx(0x80000007) & 0x06) != 0x06)
return; /* FID/VID change not supported */
msr_t msr; msr_t msr;
msr = rdmsr(0xc0010042); msr = rdmsr(0xc0010042);
fid_max = ((msr.lo >> 16) & 0x3f); /* max fid */ fid_max = ((msr.lo >> 16) & 0x3f); /* max fid */