mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Thomas Weißschuh" <linux@weissschuh.net>
To: Borislav Petkov <bp@alien8.de>
Cc: Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86/cpu: Update power flags
Date: Tue, 28 Nov 2023 20:25:40 +0100	[thread overview]
Message-ID: <15ea49d1-5c6e-4459-8ef1-4bca573b8b93@t-8ch.de> (raw)
In-Reply-To: <20231128191217.GDZWY7kYC9bE9Qkg25@fat_crate.local>

On 2023-11-28 20:12:17+0100, Borislav Petkov wrote:
> 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@weissschuh.net>
> > ---
> >  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.

Isn't this introduction more about the cpuinfo "flags" fields?
These power management flags have their own field "power management".

Without the patch it looks like this on my machine in cpuinfo:

  power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14] [15]

So they are already reported, but only their numeric value.

Anyways, if it's not correct to have them then let's drop the patch.


Thomas

  reply	other threads:[~2023-11-28 19:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-28 18:54 Thomas Weißschuh
2023-11-28 19:12 ` Borislav Petkov
2023-11-28 19:25   ` Thomas Weißschuh [this message]
2023-11-28 19:36     ` Borislav Petkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15ea49d1-5c6e-4459-8ef1-4bca573b8b93@t-8ch.de \
    --to=linux@weissschuh.net \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®