[coreboot-gerrit] Change in coreboot[master]: [Test]cpu/intel/speedstep/acpi.c: Add Netburst CPUs

Elyes HAOUAS (Code Review) gerrit at coreboot.org
Sun Nov 26 17:19:33 CET 2017


Elyes HAOUAS has uploaded this change for review. ( https://review.coreboot.org/22604


Change subject: [Test]cpu/intel/speedstep/acpi.c: Add Netburst CPUs
......................................................................

[Test]cpu/intel/speedstep/acpi.c: Add Netburst CPUs

Change-Id: I06e162d3260dedeb3b16583460633507fbcbd52a
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/cpu/intel/speedstep/acpi.c
1 file changed, 17 insertions(+), 2 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/04/22604/1

diff --git a/src/cpu/intel/speedstep/acpi.c b/src/cpu/intel/speedstep/acpi.c
index c154da0..5ffca65 100644
--- a/src/cpu/intel/speedstep/acpi.c
+++ b/src/cpu/intel/speedstep/acpi.c
@@ -48,9 +48,24 @@
  */
 static int get_fsb(void)
 {
-	const u32 fsbcode = rdmsr(MSR_FSB_FREQ).lo & 7;
+
+	u32 fsbcode;
+	struct cpuinfo_x86 c;
+
+	get_fms(&c, cpuid_eax(1));
+	if ((c.x86)) == 0xf && (c.x86_model) >= 2){
+		fsbcode = (rdmsr(MSR_EBC_FREQUENCY_ID).lo >> 16) & 7;
+	} else {
+		fsbcode = rdmsr(MSR_FSB_FREQ).lo & 7;
+	}
+
 	switch (fsbcode) {
-	case 0: return  800; /*  / 3 == 266 */
+	case 0:
+		if ((c.x86)) == 0xf && (c.x86_model) == 2) {
+			return  300; /*  / 3 == 100 */
+		} else {
+			return  800; /*  / 3 == 266 */
+		}
 	case 1: return  400; /*  / 3 == 133 */
 	case 2: return  600; /*  / 3 == 200 */
 	case 3: return  500; /*  / 3 == 166 */

-- 
To view, visit https://review.coreboot.org/22604
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I06e162d3260dedeb3b16583460633507fbcbd52a
Gerrit-Change-Number: 22604
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes HAOUAS <ehaouas at noos.fr>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20171126/56a397e8/attachment.html>


More information about the coreboot-gerrit mailing list