Skip to contentSkip to conversation

AMD Pstate Enhancement And Issue Fixs

PATCH Superseded Perry Yuan 2 participants 3 messages Jul 9, 2022 – Jul 11, 2022

v2 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Perry Yuan

author
#0 lore raw

v2 cover AMD Pstate Enhancement And Issue Fixs

Hello,

This patchsets adds support for precision boost hardware control for AMD processors.

Meanwhile the patchset fixs lowest perf query and desired perf scope issues. Update transition delay and latency default value to meet SMU firmware requirement. and do some code cleanups,
It also exports cpufreq cpu release and acquire for coming amd-pstate epp mode driver

The patch series are tested on the AMD mobile and EYPC server systems

v1->v2:
- add two new patches to remove the acpi_disabled check
- fix some typos in the commit info
- move the clamp_t() into amd_pstate_update() function
- rebased to 5.19-rc5

[1]:https://patchwork.kernel.org/project/linux-pm/list/?series=657510

Perry Yuan (14):
x86/msr: Add the MSR definition for AMD CPPC hardware control.
cpufreq: amd-pstate: enable AMD Precision Boost mode switch
cpufreq: amd-pstate: cleanup the unused and duplicated headers
declaration
cpufreq: amd-pstate: prefetch cppc_req_cached value in
amd_pstate_cpu_init()
cpufreq: amd-pstate: simplify cpudata pointer assignment
cpufreq: amd_pstate: fix wrong lowest perf fetch
cpufreq: amd_pstate: map desired perf into pstate scope for powersave
governor
cpufreq: amd-pstate: fix white-space
cpufreq: amd-pstate: update pstate frequency transition delay time
cpufreq: cpufreq: export cpufreq cpu release and acquire
cpufreq: amd-pstate: add ACPI disabled check in acpi_cpc_valid()
cpufreq: amd_pstate: update transition delay time to 1ms
arch_topology: remove the acpi_disabled check
cpufreq: CPPC: remove the acpi_disabled check

 arch/x86/include/asm/msr-index.h |  3 ++
 drivers/acpi/cppc_acpi.c         |  3 ++
 drivers/base/arch_topology.c     |  2 +-
 drivers/cpufreq/amd-pstate.c     | 57 +++++++++++++++++++-------------
 drivers/cpufreq/cppc_cpufreq.c   |  2 +-
 drivers/cpufreq/cpufreq.c        |  2 ++
 6 files changed, 44 insertions(+), 25 deletions(-)
Signature · 1 line
2.25.1
#1 lore raw
Quoted 11 lines · Perry Yuan

Hello,

This patchsets adds support for precision boost hardware control for AMD processors.

Meanwhile the patchset fixs lowest perf query and desired perf scope issues. Update transition delay and latency default value to meet SMU firmware requirement. and do some code cleanups,
It also exports cpufreq cpu release and acquire for coming amd-pstate epp mode driver

The patch series are tested on the AMD mobile and EYPC server systems

Please use "--thread=shallow" option while generating patches with git, these should be part of a single thread.

Signature · 1 line
viresh
#2 lore raw

[AMD Official Use Only - General]

Quoted 30 lines

-----Original Message-----
From: Viresh Kumar <[email protected]>
Sent: Monday, July 11, 2022 8:30 AM
To: Yuan, Perry <[email protected]>
Cc: [email protected]; Huang, Ray <[email protected]>; Sharma, Deepak <[email protected]>; Limonciello, Mario <[email protected]>; Fontenot, Nathan <[email protected]>; Deucher, Alexander <[email protected]>; Su, Jinzhou (Joe) <[email protected]>; Huang, Shimmer <[email protected]>; Du, Xiaojian <[email protected]>; Meng, Li (Jassmine) <[email protected]>; linux- [email protected]; [email protected]
Subject: Re: [PATCH v2 00/14] AMD Pstate Enhancement And Issue Fixs

[CAUTION: External Email]

Quoted 6 lines · Perry Yuan

Hello,

This patchsets adds support for precision boost hardware control for AMD processors.

Meanwhile the patchset fixs lowest perf query and desired perf scope

issues.

Quoted 1 line

Update transition delay and latency default value to meet SMU firmware

requirement.

Quoted 4 lines

and do some code cleanups,
It also exports cpufreq cpu release and acquire for coming amd-pstate epp mode driver

Quoted 7 lines
Quoted 1 line

The patch series are tested on the AMD mobile and EYPC server systems

Please use "--thread=shallow" option while generating patches with git, these should be part of a single thread.

--
viresh

Got it, I will use this shallow thread in V3 patchset creating.

Perry.