Message ID | 20240624161109.1427640-2-srinivas.pandruvada@linux.intel.com (mailing list archive) |
---|---|
State | Mainlined, archived |
Headers | show |
Series | Update highest frequency of a CPU after boot | expand |
On Mon, Jun 24, 2024 at 09:11:08AM -0700, Srinivas Pandruvada wrote: > When CPUID[6].EAX[15] is set to 1, this CPU supports notification for > HWP (Hardware P-states) highest performance change. > > Add a feature flag to check if the CPU supports HWP highest performance > change. > > Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> > --- > v2: > - Prevent display in /proc/cpuinfo flags as suggested by Borris > > arch/x86/include/asm/cpufeatures.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h > index 3c7434329661..4cf929c457bb 100644 > --- a/arch/x86/include/asm/cpufeatures.h > +++ b/arch/x86/include/asm/cpufeatures.h > @@ -361,6 +361,7 @@ > #define X86_FEATURE_HWP_ACT_WINDOW (14*32+ 9) /* HWP Activity Window */ > #define X86_FEATURE_HWP_EPP (14*32+10) /* HWP Energy Perf. Preference */ > #define X86_FEATURE_HWP_PKG_REQ (14*32+11) /* HWP Package Level Request */ > +#define X86_FEATURE_HWP_HIGHEST_PERF_CHANGE (14*32+15) /* "" HWP Highest perf change */ Yeah, in the meantime I made it even simpler: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?h=x86/cpu&id=78ce84b9e0a54a0c91a7449f321c1f852c0cd3fc so in case you have to send your patch again, you can drop the "" too. New flags are not exposed in /proc/cpuinfo by default after the above change. Thx.
diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h index 3c7434329661..4cf929c457bb 100644 --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -361,6 +361,7 @@ #define X86_FEATURE_HWP_ACT_WINDOW (14*32+ 9) /* HWP Activity Window */ #define X86_FEATURE_HWP_EPP (14*32+10) /* HWP Energy Perf. Preference */ #define X86_FEATURE_HWP_PKG_REQ (14*32+11) /* HWP Package Level Request */ +#define X86_FEATURE_HWP_HIGHEST_PERF_CHANGE (14*32+15) /* "" HWP Highest perf change */ #define X86_FEATURE_HFI (14*32+19) /* Hardware Feedback Interface */ /* AMD SVM Feature Identification, CPUID level 0x8000000a (EDX), word 15 */
When CPUID[6].EAX[15] is set to 1, this CPU supports notification for HWP (Hardware P-states) highest performance change. Add a feature flag to check if the CPU supports HWP highest performance change. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> --- v2: - Prevent display in /proc/cpuinfo flags as suggested by Borris arch/x86/include/asm/cpufeatures.h | 1 + 1 file changed, 1 insertion(+)