Second round of amd-pstate 6.12 content
Hi,
The following changes since commit 8cc214312cf8a0c3702edd1aa52e507262adccb9:
Merge branch 'pm-opp' into linux-next (2024-09-06 20:53:58 +0200)
are available in the Git repository at:
ssh://[email protected]/pub/scm/linux/kernel/git/superm1/linux.git tags/amd-pstate-v6.12-2024-09-09
for you to fetch changes up to e121c01c0422fc56033d0dfa1bf3f0366115d2d5:
cpufreq/amd-pstate-ut: Add test case for mode switches (2024-09-09
10:26:26 -0500)
----------------------------------------------------------------
second round of amd-pstate changes for 6.12:
* Move the calculation of the AMD boost numerator outside of amd-pstate, correcting acpi-cpufreq on systems with preferred cores
* Harden preferred core detection to avoid potential false positives
* Add extra unit test coverage for mode state machine
----------------------------------------------------------------
Mario Limonciello (13):
x86/amd: Move amd_get_highest_perf() from amd.c to cppc.c
ACPI: CPPC: Adjust return code for inline functions in
!CONFIG_ACPI_CPPC_LIB
x86/amd: Rename amd_get_highest_perf() toamd_get_boost_ratio_numerator()
ACPI: CPPC: Drop check for non zero perf ratio
ACPI: CPPC: Adjust debug messages in amd_set_max_freq_ratio() to warn x86/amd: Move amd_get_highest_perf() out of amd-pstate x86/amd: Detect preferred cores in amd_get_boost_ratio_numerator()
cpufreq: amd-pstate: Merge amd_pstate_highest_perf_set() intoamd_get_boost_ratio_numerator()
cpufreq: amd-pstate: Optimize amd_pstate_update_limits()
cpufreq: amd-pstate: Add documentation for amd_pstate_hw_prefcore
amd-pstate: Add missing documentation foramd_pstate_prefcore_ranking
cpufreq/amd-pstate: Export symbols for changing modes cpufreq/amd-pstate-ut: Add test case for mode switches
Documentation/admin-guide/pm/amd-pstate.rst | 15 ++++++++++++++- arch/x86/include/asm/processor.h | 3 --- arch/x86/kernel/acpi/cppc.c | 172 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------- arch/x86/kernel/cpu/amd.c | 16 ---------------- drivers/cpufreq/acpi-cpufreq.c | 12 +++++++++--- drivers/cpufreq/amd-pstate-ut.c | 41 ++++++++++++++++++++++++++++++++++++++++- drivers/cpufreq/amd-pstate.c | 151 +++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------------------------------------------- drivers/cpufreq/amd-pstate.h | 14 ++++++++++++++ include/acpi/cppc_acpi.h | 41 ++++++++++++++++++++++++++++------------- 9 files changed, 305 insertions(+), 160 deletions(-)
Hi Mario,
Quoted 46 lines · Mario Limonciello
Hi,
The following changes since commit
8cc214312cf8a0c3702edd1aa52e507262adccb9:Merge branch 'pm-opp' into linux-next (2024-09-06 20:53:58 +0200)are available in the Git repository at:
ssh://[email protected]/pub/scm/linux/kernel/git/superm1/linux.git tags/amd-pstate-v6.12-2024-09-09
for you to fetch changes up to
e121c01c0422fc56033d0dfa1bf3f0366115d2d5:cpufreq/amd-pstate-ut: Add test case for mode switches (2024-09-09
10:26:26 -0500)----------------------------------------------------------------
second round of amd-pstate changes for 6.12:* Move the calculation of the AMD boost numerator outside of amd-pstate, correcting acpi-cpufreq on systems with preferred cores
* Harden preferred core detection to avoid potential false positives
* Add extra unit test coverage for mode state machine----------------------------------------------------------------
Mario Limonciello (13):
x86/amd: Moveamd_get_highest_perf()fromamd.ctocppc.c
ACPI: CPPC: Adjust return code for inline functions in
!CONFIG_ACPI_CPPC_LIB
x86/amd: Renameamd_get_highest_perf()toamd_get_boost_ratio_numerator()
ACPI: CPPC: Drop check for non zero perf ratio
ACPI: CPPC: Adjust debug messages inamd_set_max_freq_ratio()to warn x86/amd: Moveamd_get_highest_perf()out of amd-pstate x86/amd: Detect preferred cores inamd_get_boost_ratio_numerator()
cpufreq: amd-pstate: Mergeamd_pstate_highest_perf_set()intoamd_get_boost_ratio_numerator()
cpufreq: amd-pstate: Optimizeamd_pstate_update_limits()
cpufreq: amd-pstate: Add documentation foramd_pstate_hw_prefcore
amd-pstate: Add missing documentation foramd_pstate_prefcore_ranking
cpufreq/amd-pstate: Export symbols for changing modes cpufreq/amd-pstate-ut: Add test case for mode switches
Quoted 14 lines
Documentation/admin-guide/pm/amd-pstate.rst | 15 ++++++++++++++- arch/x86/include/asm/processor.h | 3 --- arch/x86/kernel/acpi/cppc.c | 172 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------- arch/x86/kernel/cpu/amd.c | 16 ---------------- drivers/cpufreq/acpi-cpufreq.c | 12 +++++++++--- drivers/cpufreq/amd-pstate-ut.c | 41 ++++++++++++++++++++++++++++++++++++++++- drivers/cpufreq/amd-pstate.c | 151 +++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------------------------------------------- drivers/cpufreq/amd-pstate.h | 14 ++++++++++++++ include/acpi/cppc_acpi.h | 41 ++++++++++++++++++++++++++++------------- 9 files changed, 305 insertions(+), 160 deletions(-)
Pulled and added to the linux-next branch in linux-pm.git, thanks!
Quoted 66 lines · Rafael J. Wysocki
Hi Mario,
Quoted 46 lines · Mario Limonciello
Hi,
The following changes since commit
8cc214312cf8a0c3702edd1aa52e507262adccb9:Merge branch 'pm-opp' into linux-next (2024-09-06 20:53:58 +0200)are available in the Git repository at:
ssh://[email protected]/pub/scm/linux/kernel/git/superm1/linux.git tags/amd-pstate-v6.12-2024-09-09
for you to fetch changes up to
e121c01c0422fc56033d0dfa1bf3f0366115d2d5:cpufreq/amd-pstate-ut: Add test case for mode switches (2024-09-09
10:26:26 -0500)----------------------------------------------------------------
second round of amd-pstate changes for 6.12:* Move the calculation of the AMD boost numerator outside of amd-pstate, correcting acpi-cpufreq on systems with preferred cores
* Harden preferred core detection to avoid potential false positives
* Add extra unit test coverage for mode state machine----------------------------------------------------------------
Mario Limonciello (13):
x86/amd: Moveamd_get_highest_perf()fromamd.ctocppc.c
ACPI: CPPC: Adjust return code for inline functions in
!CONFIG_ACPI_CPPC_LIB
x86/amd: Renameamd_get_highest_perf()toamd_get_boost_ratio_numerator()
ACPI: CPPC: Drop check for non zero perf ratio
ACPI: CPPC: Adjust debug messages inamd_set_max_freq_ratio()to warn x86/amd: Moveamd_get_highest_perf()out of amd-pstate x86/amd: Detect preferred cores inamd_get_boost_ratio_numerator()
cpufreq: amd-pstate: Mergeamd_pstate_highest_perf_set()intoamd_get_boost_ratio_numerator()
cpufreq: amd-pstate: Optimizeamd_pstate_update_limits()
cpufreq: amd-pstate: Add documentation foramd_pstate_hw_prefcore
amd-pstate: Add missing documentation foramd_pstate_prefcore_ranking
cpufreq/amd-pstate: Export symbols for changing modes cpufreq/amd-pstate-ut: Add test case for mode switchesQuoted 14 lines
Documentation/admin-guide/pm/amd-pstate.rst | 15 ++++++++++++++- arch/x86/include/asm/processor.h | 3 --- arch/x86/kernel/acpi/cppc.c | 172 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------- arch/x86/kernel/cpu/amd.c | 16 ---------------- drivers/cpufreq/acpi-cpufreq.c | 12 +++++++++--- drivers/cpufreq/amd-pstate-ut.c | 41 ++++++++++++++++++++++++++++++++++++++++- drivers/cpufreq/amd-pstate.c | 151 +++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------------------------------------------- drivers/cpufreq/amd-pstate.h | 14 ++++++++++++++ include/acpi/cppc_acpi.h | 41 ++++++++++++++++++++++++++++------------- 9 files changed, 305 insertions(+), 160 deletions(-)
Quoted 1 line
Pulled and added to the linux-next branch in linux-pm.git, thanks!
And unpulled because it was based on the linux-next branch of the day.
Basically, please don't do this.
Please base your pull requests on top of mainline commits and if there are dependencies out-of-the-mainline dependencies you need to pull in, please ask for immutable branches to pull from.
Thanks!
Quoted 71 lines · Rafael J. Wysocki
Quoted 66 lines · Rafael J. Wysocki
Hi Mario,
Quoted 46 lines · Mario Limonciello
Hi,
The following changes since commit
8cc214312cf8a0c3702edd1aa52e507262adccb9:Merge branch 'pm-opp' into linux-next (2024-09-06 20:53:58 +0200)are available in the Git repository at:
ssh://[email protected]/pub/scm/linux/kernel/git/superm1/linux.git tags/amd-pstate-v6.12-2024-09-09
for you to fetch changes up to
e121c01c0422fc56033d0dfa1bf3f0366115d2d5:cpufreq/amd-pstate-ut: Add test case for mode switches (2024-09-09
10:26:26 -0500)----------------------------------------------------------------
second round of amd-pstate changes for 6.12:* Move the calculation of the AMD boost numerator outside of amd-pstate, correcting acpi-cpufreq on systems with preferred cores
* Harden preferred core detection to avoid potential false positives
* Add extra unit test coverage for mode state machine----------------------------------------------------------------
Mario Limonciello (13):
x86/amd: Moveamd_get_highest_perf()fromamd.ctocppc.c
ACPI: CPPC: Adjust return code for inline functions in
!CONFIG_ACPI_CPPC_LIB
x86/amd: Renameamd_get_highest_perf()toamd_get_boost_ratio_numerator()
ACPI: CPPC: Drop check for non zero perf ratio
ACPI: CPPC: Adjust debug messages inamd_set_max_freq_ratio()to warn x86/amd: Moveamd_get_highest_perf()out of amd-pstate x86/amd: Detect preferred cores inamd_get_boost_ratio_numerator()
cpufreq: amd-pstate: Mergeamd_pstate_highest_perf_set()intoamd_get_boost_ratio_numerator()
cpufreq: amd-pstate: Optimizeamd_pstate_update_limits()
cpufreq: amd-pstate: Add documentation foramd_pstate_hw_prefcore
amd-pstate: Add missing documentation foramd_pstate_prefcore_ranking
cpufreq/amd-pstate: Export symbols for changing modes cpufreq/amd-pstate-ut: Add test case for mode switchesQuoted 14 lines
Documentation/admin-guide/pm/amd-pstate.rst | 15 ++++++++++++++- arch/x86/include/asm/processor.h | 3 --- arch/x86/kernel/acpi/cppc.c | 172 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------- arch/x86/kernel/cpu/amd.c | 16 ---------------- drivers/cpufreq/acpi-cpufreq.c | 12 +++++++++--- drivers/cpufreq/amd-pstate-ut.c | 41 ++++++++++++++++++++++++++++++++++++++++- drivers/cpufreq/amd-pstate.c | 151 +++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------------------------------------------- drivers/cpufreq/amd-pstate.h | 14 ++++++++++++++ include/acpi/cppc_acpi.h | 41 ++++++++++++++++++++++++++++------------- 9 files changed, 305 insertions(+), 160 deletions(-)Quoted 1 line
Pulled and added to the linux-next branch in linux-pm.git, thanks!
And unpulled because it was based on the linux-next branch of the day.
Quoted 7 lines
Basically, please don't do this.
Please base your pull requests on top of mainline commits and if there are dependencies out-of-the-mainline dependencies you need to pull in, please ask for immutable branches to pull from.
Thanks!
Ah. That's what I did originally, but there was a conflict specifically because this got applied through another tree and I ran into problems when I tried to do a test merge before sending out the PR.
commit 5493f9714e4c ("cpufreq: amd-pstate: add check for cpufreq_cpu_get's return value")
So I figured it was better to rebase. In this case can you please make me an immutable branch and I'll redo the PR from that?
Thanks!
Quoted 85 lines · Mario Limonciello
Quoted 71 lines · Rafael J. Wysocki
Quoted 66 lines · Rafael J. Wysocki
Hi Mario,
Quoted 46 lines · Mario Limonciello
Hi,
The following changes since commit
8cc214312cf8a0c3702edd1aa52e507262adccb9:Merge branch 'pm-opp' into linux-next (2024-09-06 20:53:58 +0200)are available in the Git repository at:
ssh://[email protected]/pub/scm/linux/kernel/git/superm1/linux.git tags/amd-pstate-v6.12-2024-09-09
for you to fetch changes up to
e121c01c0422fc56033d0dfa1bf3f0366115d2d5:cpufreq/amd-pstate-ut: Add test case for mode switches (2024-09-09
10:26:26 -0500)----------------------------------------------------------------
second round of amd-pstate changes for 6.12:* Move the calculation of the AMD boost numerator outside of amd-pstate, correcting acpi-cpufreq on systems with preferred cores
* Harden preferred core detection to avoid potential false positives
* Add extra unit test coverage for mode state machine----------------------------------------------------------------
Mario Limonciello (13):
x86/amd: Moveamd_get_highest_perf()fromamd.ctocppc.c
ACPI: CPPC: Adjust return code for inline functions in
!CONFIG_ACPI_CPPC_LIB
x86/amd: Renameamd_get_highest_perf()toamd_get_boost_ratio_numerator()
ACPI: CPPC: Drop check for non zero perf ratio
ACPI: CPPC: Adjust debug messages inamd_set_max_freq_ratio()to warn x86/amd: Moveamd_get_highest_perf()out of amd-pstate x86/amd: Detect preferred cores inamd_get_boost_ratio_numerator()
cpufreq: amd-pstate: Mergeamd_pstate_highest_perf_set()intoamd_get_boost_ratio_numerator()
cpufreq: amd-pstate: Optimizeamd_pstate_update_limits()
cpufreq: amd-pstate: Add documentation foramd_pstate_hw_prefcore
amd-pstate: Add missing documentation foramd_pstate_prefcore_ranking
cpufreq/amd-pstate: Export symbols for changing modes cpufreq/amd-pstate-ut: Add test case for mode switchesQuoted 14 lines
Documentation/admin-guide/pm/amd-pstate.rst | 15 ++++++++++++++- arch/x86/include/asm/processor.h | 3 --- arch/x86/kernel/acpi/cppc.c | 172 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------- arch/x86/kernel/cpu/amd.c | 16 ---------------- drivers/cpufreq/acpi-cpufreq.c | 12 +++++++++--- drivers/cpufreq/amd-pstate-ut.c | 41 ++++++++++++++++++++++++++++++++++++++++- drivers/cpufreq/amd-pstate.c | 151 +++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------------------------------------------- drivers/cpufreq/amd-pstate.h | 14 ++++++++++++++ include/acpi/cppc_acpi.h | 41 ++++++++++++++++++++++++++++------------- 9 files changed, 305 insertions(+), 160 deletions(-)Quoted 1 line
Pulled and added to the linux-next branch in linux-pm.git, thanks!
And unpulled because it was based on the linux-next branch of the day.
Quoted 7 lines
Basically, please don't do this.
Please base your pull requests on top of mainline commits and if there are dependencies out-of-the-mainline dependencies you need to pull in, please ask for immutable branches to pull from.
Thanks!
Ah. That's what I did originally, but there was a conflict specifically because this got applied through another tree and I ran into problems when I tried to do a test merge before sending out the PR.
Quoted 5 lines
commit
5493f9714e4c("cpufreq: amd-pstate: add check for cpufreq_cpu_get's return value")So I figured it was better to rebase. In this case can you please make me an immutable branch and I'll redo the PR from that?
If I'm not mistaken, you can pull this:
git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git
tags/cpufreq-arm-updates-6.12
as per
https://lore.kernel.org/linux-pm/20240906054735.cbsjpwvpelgukppq@vireshk-i7/
and apply your changes on top of that merge.
Alternatively, I can just cherry pick them from the branch I have pulled and apply them myself, whichever you prefer.