cpufreq: amd_pstate: fix the highest perf query for new AMD processors
PATCH 1/1 cpufreq: amd_pstate: fix the highest perf query for new AMD processors
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.
--- arch/x86/kernel/cpu/amd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/x86/kernel/cpu/amd.c +2 -1
@@ -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) ||
Signature · 1 line
2.25.1
Quoted 5 lines · Perry Yuan
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 <[email protected]>
Quoted 18 lines
--- arch/x86/kernel/cpu/amd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)arch/x86/kernel/cpu/amd.c +2
-1@@ -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) ||
Quoted 4 lines · Perry
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
Quoted 22 lines
Signed-off-by Perry Yuan <[email protected]>--- arch/x86/kernel/cpu/amd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)arch/x86/kernel/cpu/amd.c +2
-1@@ -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) ||Signature · 1 line
2.25.1
[AMD Official Use Only - General]
Hi Ray.
Quoted 21 lines
-----Original Message-----
From: Huang, Ray <[email protected]>
Sent: Tuesday, June 14, 2022 4:42 PM
To: Yuan, Perry <[email protected]>
Cc: Thomas Gleixner <[email protected]>; Ingo Molnar <[email protected]>; Borislav Petkov <[email protected]>; Dave Hansen <[email protected]>; [email protected]; H. Peter Anvin <[email protected]>; Lendacky, Thomas <[email protected]>; Limonciello, Mario <[email protected]>; Jane Malalane <[email protected]>; Phillips, Kim <[email protected]>; Tony Luck <[email protected]>; linux- [email protected]; Su, Jinzhou (Joe) <[email protected]>; Meng, Li (Jassmine) <[email protected]>; [email protected]
Subject: Re: [PATCH] cpufreq:amd_pstate: fix the highest perf query for new AMD processorsQuoted 4 lines · Perry
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.
Quoted 7 lines
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.
Quoted 26 lines
Quoted 11 lines
Signed-off-by Perry Yuan <[email protected]>--- arch/x86/kernel/cpu/amd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)arch/x86/kernel/cpu/amd.c +0
-0arch/x86/kernel/cpu/amd.c u32 amd_get_highest_perf(void) · line 1154
Quoted 3 lines
arch/x86/kernel/cpu/amd.c +0
-0@@ -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;Quoted 6 lines
arch/x86/kernel/cpu/amd.c +0
-0if (c->x86 == 0x19 && ((c->x86_model >= 0x20 && c->x86_model < 0x30)||
--
2.25.1