Kyösti Mälkki has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/34090 )
Change subject: cpu/x86: Fix MSR_PLATFORM_INFO definition ......................................................................
cpu/x86: Fix MSR_PLATFORM_INFO definition
While common to many Intel CPUs, this is not an architectural MSR that should be globally defined for all x86.
Change-Id: Ibeed022dc2ba2e90f71511f9bd2640a7cafa5292 Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com --- M src/include/cpu/x86/tsc.h M src/northbridge/intel/fsp_rangeley/udelay.c 2 files changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/90/34090/1
diff --git a/src/include/cpu/x86/tsc.h b/src/include/cpu/x86/tsc.h index 8dd9b75..dd333e8 100644 --- a/src/include/cpu/x86/tsc.h +++ b/src/include/cpu/x86/tsc.h @@ -11,8 +11,6 @@ #define TSC_SYNC #endif
-#define MSR_PLATFORM_INFO 0xce - struct tsc_struct { unsigned int lo; unsigned int hi; diff --git a/src/northbridge/intel/fsp_rangeley/udelay.c b/src/northbridge/intel/fsp_rangeley/udelay.c index 01989ab..08301a3 100644 --- a/src/northbridge/intel/fsp_rangeley/udelay.c +++ b/src/northbridge/intel/fsp_rangeley/udelay.c @@ -18,6 +18,8 @@ #include <cpu/x86/tsc.h> #include <cpu/x86/msr.h>
+#define MSR_PLATFORM_INFO 0xce + /** * Intel Rangeley CPUs always run the TSC at BCLK = 100MHz */
David Guckian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/34090 )
Change subject: cpu/x86: Fix MSR_PLATFORM_INFO definition ......................................................................
Patch Set 1: Code-Review+1
HAOUAS Elyes has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/34090 )
Change subject: cpu/x86: Fix MSR_PLATFORM_INFO definition ......................................................................
Patch Set 3: Code-Review+2
Kyösti Mälkki has submitted this change and it was merged. ( https://review.coreboot.org/c/coreboot/+/34090 )
Change subject: cpu/x86: Fix MSR_PLATFORM_INFO definition ......................................................................
cpu/x86: Fix MSR_PLATFORM_INFO definition
While common to many Intel CPUs, this is not an architectural MSR that should be globally defined for all x86.
Change-Id: Ibeed022dc2ba2e90f71511f9bd2640a7cafa5292 Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/34090 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: HAOUAS Elyes ehaouas@noos.fr Reviewed-by: David Guckian --- M src/include/cpu/x86/tsc.h M src/northbridge/intel/fsp_rangeley/udelay.c 2 files changed, 2 insertions(+), 2 deletions(-)
Approvals: build bot (Jenkins): Verified HAOUAS Elyes: Looks good to me, approved David Guckian: Looks good to me, but someone else must approve
diff --git a/src/include/cpu/x86/tsc.h b/src/include/cpu/x86/tsc.h index 8dd9b75..dd333e8 100644 --- a/src/include/cpu/x86/tsc.h +++ b/src/include/cpu/x86/tsc.h @@ -11,8 +11,6 @@ #define TSC_SYNC #endif
-#define MSR_PLATFORM_INFO 0xce - struct tsc_struct { unsigned int lo; unsigned int hi; diff --git a/src/northbridge/intel/fsp_rangeley/udelay.c b/src/northbridge/intel/fsp_rangeley/udelay.c index 01989ab..08301a3 100644 --- a/src/northbridge/intel/fsp_rangeley/udelay.c +++ b/src/northbridge/intel/fsp_rangeley/udelay.c @@ -18,6 +18,8 @@ #include <cpu/x86/tsc.h> #include <cpu/x86/msr.h>
+#define MSR_PLATFORM_INFO 0xce + /** * Intel Rangeley CPUs always run the TSC at BCLK = 100MHz */
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/34090 )
Change subject: cpu/x86: Fix MSR_PLATFORM_INFO definition ......................................................................
Patch Set 4:
I wouldn't mind common, non-architectural MSR definitions in a common place. As long as it's clear from the prefix, MSR_ instead of IA32_, that wouldn't seem bad, would it?
Kyösti Mälkki has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/34090 )
Change subject: cpu/x86: Fix MSR_PLATFORM_INFO definition ......................................................................
Patch Set 4:
Patch Set 4:
I wouldn't mind common, non-architectural MSR definitions in a common place. As long as it's clear from the prefix, MSR_ instead of IA32_, that wouldn't seem bad, would it?
It gets interesting fast if Intel is not consistent and reuses the names in documentation but at different register address.
I came across this: eg. haswell.h: #define MSR_PLATFORM_INFO 0xce #define PLATFORM_INFO_SET_TDP (1 << 29)
cpu/x86/msr.h: #define IA32_FEATURE_CONTROL 0x3a #define PLATFORM_INFO_SET_TDP (1 << 29)
But now that I looked deeper, seems like a mistake made in CB:28752 for the latter define.
See CB:33504