[coreboot-gerrit] New patch to review for coreboot: src/cpu/intel/speedstep/acpi.c: Add "FIXME" comment

HAOUAS Elyes (ehaouas@noos.fr) gerrit at coreboot.org
Sun Jan 8 11:28:38 CET 2017


HAOUAS Elyes (ehaouas at noos.fr) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18056

-gerrit

commit 07e601acefa4bd1cf8b6f7421268bcf0f43941af
Author: Elyes HAOUAS <ehaouas at noos.fr>
Date:   Sun Jan 8 11:17:17 2017 +0100

    src/cpu/intel/speedstep/acpi.c: Add "FIXME" comment
    
    MSR(0x2c) provides information about FSB frequency
    for Pentium 4.
    
    Change-Id: I2ba6c446f77184e6dbabd4194a3dd2fdd665b056
    Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
 src/cpu/intel/speedstep/acpi.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/cpu/intel/speedstep/acpi.c b/src/cpu/intel/speedstep/acpi.c
index d85e487..f30a582 100644
--- a/src/cpu/intel/speedstep/acpi.c
+++ b/src/cpu/intel/speedstep/acpi.c
@@ -49,6 +49,10 @@ static int determine_total_number_of_cores(void)
  */
 static int get_fsb(void)
 {
+/* FIXME: we probably need to detect the CPU and
+ * read the right MSR register to have the right FSB.
+ * Example: for Pentium 4 we should read MSR at 0x2c
+ */
 	const u32 fsbcode = rdmsr(MSR_FSB_FREQ).lo & 7;
 	switch (fsbcode) {
 		case 0: return  800; /*  / 3 == 266 */



More information about the coreboot-gerrit mailing list