* [PATCH] cpufreq: amd_pstate: fix the highest perf query for new AMD processors
@ 2022-06-14 3:52 Perry Yuan
2022-06-14 4:02 ` Mario Limonciello
2022-06-14 8:41 ` Huang Rui
0 siblings, 2 replies; 4+ messages in thread
From: Perry Yuan @ 2022-06-14 3:52 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen, x86,
H. Peter Anvin, Tom Lendacky, Perry Yuan, Mario Limonciello,
Jane Malalane, Kim Phillips, Tony Luck, linux-kernel
Cc: Ray.Huang, Jinzhou.Su, Li.Meng, linux-pm
In order to get the corrent highest perf for some new AMD processors,
the amd_get_highest_perf() call will check the CPU model and
return correct highest perf value.
Signed-off-by: Perry Yuan <Perry.Yuan@amd.com>
---
arch/x86/kernel/cpu/amd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
index 0c0b09796ced..ff2075f26ef4 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
@@ -1152,7 +1152,8 @@ u32 amd_get_highest_perf(void)
struct cpuinfo_x86 *c = &boot_cpu_data;
if (c->x86 == 0x17 && ((c->x86_model >= 0x30 && c->x86_model < 0x40) ||
- (c->x86_model >= 0x70 && c->x86_model < 0x80)))
+ (c->x86_model >= 0x70 && c->x86_model < 0x80) ||
+ (c->x86_model >= 0xa0 && c->x86_model < 0xb0)))
return 166;
if (c->x86 == 0x19 && ((c->x86_model >= 0x20 && c->x86_model < 0x30) ||
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] cpufreq: amd_pstate: fix the highest perf query for new AMD processors
2022-06-14 3:52 [PATCH] cpufreq: amd_pstate: fix the highest perf query for new AMD processors Perry Yuan
@ 2022-06-14 4:02 ` Mario Limonciello
2022-06-14 8:41 ` Huang Rui
1 sibling, 0 replies; 4+ messages in thread
From: Mario Limonciello @ 2022-06-14 4:02 UTC (permalink / raw)
To: Perry Yuan, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
Dave Hansen, x86, H. Peter Anvin, Tom Lendacky, Jane Malalane,
Kim Phillips, Tony Luck, linux-kernel
Cc: Ray.Huang, Jinzhou.Su, Li.Meng, linux-pm
On 6/13/22 22:52, Perry Yuan wrote:
> In order to get the corrent highest perf for some new AMD processors,
> the amd_get_highest_perf() call will check the CPU model and
> return correct highest perf value.
>
> Signed-off-by: Perry Yuan <Perry.Yuan@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
> ---
> arch/x86/kernel/cpu/amd.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
> index 0c0b09796ced..ff2075f26ef4 100644
> --- a/arch/x86/kernel/cpu/amd.c
> +++ b/arch/x86/kernel/cpu/amd.c
> @@ -1152,7 +1152,8 @@ u32 amd_get_highest_perf(void)
> struct cpuinfo_x86 *c = &boot_cpu_data;
>
> if (c->x86 == 0x17 && ((c->x86_model >= 0x30 && c->x86_model < 0x40) ||
> - (c->x86_model >= 0x70 && c->x86_model < 0x80)))
> + (c->x86_model >= 0x70 && c->x86_model < 0x80) ||
> + (c->x86_model >= 0xa0 && c->x86_model < 0xb0)))
> return 166;
>
> if (c->x86 == 0x19 && ((c->x86_model >= 0x20 && c->x86_model < 0x30) ||
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] cpufreq: amd_pstate: fix the highest perf query for new AMD processors
2022-06-14 3:52 [PATCH] cpufreq: amd_pstate: fix the highest perf query for new AMD processors Perry Yuan
2022-06-14 4:02 ` Mario Limonciello
@ 2022-06-14 8:41 ` Huang Rui
2022-06-14 8:48 ` Yuan, Perry
1 sibling, 1 reply; 4+ messages in thread
From: Huang Rui @ 2022-06-14 8:41 UTC (permalink / raw)
To: Yuan, Perry
Cc: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen,
x86@kernel.org, H. Peter Anvin, Lendacky, Thomas,
Limonciello, Mario, Jane Malalane, Phillips, Kim, Tony Luck,
linux-kernel@vger.kernel.org, Su, Jinzhou (Joe),
Meng, Li (Jassmine), linux-pm@vger.kernel.org
On Tue, Jun 14, 2022 at 11:52:28AM +0800, Yuan, Perry wrote:
> In order to get the corrent highest perf for some new AMD processors,
> the amd_get_highest_perf() call will check the CPU model and
> return correct highest perf value.
>
You needs to change the prefix of the subject, because it's not the
amd-pstate driver.
x86/amd: Fix the highest perf query for new AMD processors
Thanks,
Ray
> Signed-off-by: Perry Yuan <Perry.Yuan@amd.com>
> ---
> arch/x86/kernel/cpu/amd.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
> index 0c0b09796ced..ff2075f26ef4 100644
> --- a/arch/x86/kernel/cpu/amd.c
> +++ b/arch/x86/kernel/cpu/amd.c
> @@ -1152,7 +1152,8 @@ u32 amd_get_highest_perf(void)
> struct cpuinfo_x86 *c = &boot_cpu_data;
>
> if (c->x86 == 0x17 && ((c->x86_model >= 0x30 && c->x86_model < 0x40) ||
> - (c->x86_model >= 0x70 && c->x86_model < 0x80)))
> + (c->x86_model >= 0x70 && c->x86_model < 0x80) ||
> + (c->x86_model >= 0xa0 && c->x86_model < 0xb0)))
> return 166;
>
> if (c->x86 == 0x19 && ((c->x86_model >= 0x20 && c->x86_model < 0x30) ||
> --
> 2.25.1
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] cpufreq: amd_pstate: fix the highest perf query for new AMD processors
2022-06-14 8:41 ` Huang Rui
@ 2022-06-14 8:48 ` Yuan, Perry
0 siblings, 0 replies; 4+ messages in thread
From: Yuan, Perry @ 2022-06-14 8:48 UTC (permalink / raw)
To: Huang, Ray
Cc: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen,
x86@kernel.org, H. Peter Anvin, Lendacky, Thomas,
Limonciello, Mario, Jane Malalane, Phillips, Kim, Tony Luck,
linux-kernel@vger.kernel.org, Su, Jinzhou (Joe),
Meng, Li (Jassmine), linux-pm@vger.kernel.org
[AMD Official Use Only - General]
Hi Ray.
> -----Original Message-----
> From: Huang, Ray <Ray.Huang@amd.com>
> Sent: Tuesday, June 14, 2022 4:42 PM
> To: Yuan, Perry <Perry.Yuan@amd.com>
> Cc: Thomas Gleixner <tglx@linutronix.de>; Ingo Molnar <mingo@redhat.com>;
> Borislav Petkov <bp@alien8.de>; Dave Hansen <dave.hansen@linux.intel.com>;
> x86@kernel.org; H. Peter Anvin <hpa@zytor.com>; Lendacky, Thomas
> <Thomas.Lendacky@amd.com>; Limonciello, Mario
> <Mario.Limonciello@amd.com>; Jane Malalane <jane.malalane@citrix.com>;
> Phillips, Kim <kim.phillips@amd.com>; Tony Luck <tony.luck@intel.com>; linux-
> kernel@vger.kernel.org; Su, Jinzhou (Joe) <Jinzhou.Su@amd.com>; Meng, Li
> (Jassmine) <Li.Meng@amd.com>; linux-pm@vger.kernel.org
> Subject: Re: [PATCH] cpufreq: amd_pstate: fix the highest perf query for new
> AMD processors
>
> On Tue, Jun 14, 2022 at 11:52:28AM +0800, Yuan, Perry wrote:
> > In order to get the corrent highest perf for some new AMD processors,
> > the amd_get_highest_perf() call will check the CPU model and return
> > correct highest perf value.
> >
>
> You needs to change the prefix of the subject, because it's not the amd-pstate
> driver.
>
> x86/amd: Fix the highest perf query for new AMD processors
>
> Thanks,
> Ray
Thanks for reminding me that.
Will update the title as below. Sending V2.
x86/cpu/amd: fix the highest perf query for new AMD processors
Perry.
>
> > Signed-off-by: Perry Yuan <Perry.Yuan@amd.com>
> > ---
> > arch/x86/kernel/cpu/amd.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
> > index 0c0b09796ced..ff2075f26ef4 100644
> > --- a/arch/x86/kernel/cpu/amd.c
> > +++ b/arch/x86/kernel/cpu/amd.c
> > @@ -1152,7 +1152,8 @@ u32 amd_get_highest_perf(void)
> > struct cpuinfo_x86 *c = &boot_cpu_data;
> >
> > if (c->x86 == 0x17 && ((c->x86_model >= 0x30 && c->x86_model < 0x40)
> ||
> > - (c->x86_model >= 0x70 && c->x86_model < 0x80)))
> > + (c->x86_model >= 0x70 && c->x86_model < 0x80)
> ||
> > + (c->x86_model >= 0xa0 && c->x86_model < 0xb0)))
> > return 166;
> >
> > if (c->x86 == 0x19 && ((c->x86_model >= 0x20 && c->x86_model < 0x30)
> > ||
> > --
> > 2.25.1
> >
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-06-14 8:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-14 3:52 [PATCH] cpufreq: amd_pstate: fix the highest perf query for new AMD processors Perry Yuan
2022-06-14 4:02 ` Mario Limonciello
2022-06-14 8:41 ` Huang Rui
2022-06-14 8:48 ` Yuan, Perry
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.