mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/3] cpufreq: amd-pstate: Capacity Aware Scheduling on hybrid platforms
@ 2026-11-25 17:20 Vishal Badole
  2026-11-25 17:20 ` [PATCH v2 1/3] cpufreq: amd-pstate: Finalize prefcore before registration Vishal Badole
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Vishal Badole @ 2026-11-25 17:20 UTC (permalink / raw)
  To: ray.huang, mario.limonciello, rafael, viresh.kumar, perry.yuan,
	kprateek.nayak, hansg, ilpo.jarvinen, platform-driver-x86,
	linux-pm, linux-kernel
  Cc: Vishal Badole

This series enables Capacity Aware Scheduling (CAS) for AMD heterogeneous
processors.

amd-pstate does not export per-CPU capacity today, so the scheduler treats
all cores as equal and places tasks without regard to core strength.

Patch 1 moves the HFI check before amd-pstate driver registration, making
the preferred-core scheduling decision before per-CPU initialization.

Patch 2 makes amd-pstate publish asymmetric per-CPU capacities via the arch
hybrid capacity scaling interface. CAS is enabled by default on supported
hardware and can be turned off with the "amd_cas=disable" boot parameter.

Patch 3 makes amd-hfi stand down when CAS is active, since both manage the
same scheduler state. HFI initialization is deferred until amd-pstate has
established the CAS state.

Changes since v1:
- Add a preparation patch to finalize prefcore before driver registration.
- Select the reference CPU from all online CPUs instead of assuming CPU 0.
  Scale by maximum frequency when available for both CPUs, or by effective
  highest performance otherwise.
- Update the reference when a stronger CPU is initialized and rescale
  existing CPUs, including offline CPUs with retained policy data.
- Move the public AMD P-state header to arch/x86/include/asm/amd/.
- Defer HFI initialization to a late initcall for the CAS state check.
- Link to v1:
  https://lore.kernel.org/all/20261114150310.1377654-1-Vishal.Badole@amd.com/

Krishnamoorthi M (1):
  platform/x86/amd: hfi: Stand down when amd-pstate CAS is active

Vishal Badole (2):
  cpufreq: amd-pstate: Finalize prefcore before registration
  cpufreq: amd-pstate: Set asymmetric CPU capacity on hybrid platforms

 MAINTAINERS                           |   1 +
 arch/x86/include/asm/amd/amd-pstate.h |  16 +++
 arch/x86/kernel/acpi/cppc.c           |   4 +-
 drivers/cpufreq/amd-pstate.c          | 157 ++++++++++++++++++++++++--
 drivers/platform/x86/amd/hfi/hfi.c    |   9 +-
 5 files changed, 177 insertions(+), 10 deletions(-)
 create mode 100644 arch/x86/include/asm/amd/amd-pstate.h

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-25 17:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 17:20 [PATCH v2 0/3] cpufreq: amd-pstate: Capacity Aware Scheduling on hybrid platforms Vishal Badole
2026-11-25 17:20 ` [PATCH v2 1/3] cpufreq: amd-pstate: Finalize prefcore before registration Vishal Badole
2026-11-25 17:20 ` [PATCH v2 2/3] cpufreq: amd-pstate: Set asymmetric CPU capacity on hybrid platforms Vishal Badole
2026-11-25 17:20 ` [PATCH v2 3/3] platform/x86/amd: hfi: Stand down when amd-pstate CAS is active Vishal Badole

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®