mbox series

Second round of amd-pstate 6.12 content

Message ID da6db097-d4a7-425f-8e61-084a2fe15770@amd.com
State New
Headers show
Series Second round of amd-pstate 6.12 content | expand

Pull-request

ssh://git@gitolite.kernel.org/pub/scm/linux/kernel/git/superm1/linux.git tags/amd-pstate-v6.12-2024-09-09

Message

Mario Limonciello Sept. 9, 2024, 3:51 p.m. UTC
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://git@gitolite.kernel.org/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() to 
amd_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() into 
amd_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 for 
`amd_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(-)

Comments

Mario Limonciello Sept. 11, 2024, 2:48 p.m. UTC | #1
On 9/11/2024 09:43, Rafael J. Wysocki wrote:
> On Mon, Sep 9, 2024 at 6:38 PM Rafael J. Wysocki <rafael@kernel.org> wrote:
>>
>> Hi Mario,
>>
>> On Mon, Sep 9, 2024 at 5:52 PM Mario Limonciello
>> <mario.limonciello@amd.com> wrote:
>>>
>>> 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://git@gitolite.kernel.org/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() to
>>> amd_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() into
>>> amd_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 for
>>> `amd_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(-)
>>
>> 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!

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!