Re: [PATCH] x86/cpu: Update power flags

From: Borislav Petkov
Date: Tue Nov 28 2023 - 14:12:44 EST


On Tue, Nov 28, 2023 at 07:54:54PM +0100, Thomas Weißschuh wrote:
> As described on page 99 of
> "Processing Programming Reference (PPR) for AMD Family 19h Model 61h, Revision B1 Processor".
> (AMD Documentation Hub Document 56713)
>
> Tested on an "AMD Ryzen 7 7840U w/ Radeon 780M Graphics".
>
> Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
> ---
> arch/x86/kernel/cpu/powerflags.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/arch/x86/kernel/cpu/powerflags.c b/arch/x86/kernel/cpu/powerflags.c
> index fd6ec2aa0303..0c98405aeae2 100644
> --- a/arch/x86/kernel/cpu/powerflags.c
> +++ b/arch/x86/kernel/cpu/powerflags.c
> @@ -21,4 +21,7 @@ const char *const x86_power_flags[32] = {
> "eff_freq_ro", /* Readonly aperf/mperf */
> "proc_feedback", /* processor feedback interface */
> "acc_power", /* accumulated power mechanism */
> + "connected_standby", /* connected standby */
> + "rapl", /* running average power limit */
> + "fast_cppc", /* fast collaborative processor performance control */

No need.

The beginning of Documentation/arch/x86/cpuinfo.rst tries to explain
why.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette