From: Vishal Badole <Vishal.Badole@amd.com>
To: <ray.huang@amd.com>, <mario.limonciello@amd.com>,
<rafael@kernel.org>, <viresh.kumar@linaro.org>,
<perry.yuan@amd.com>, <kprateek.nayak@amd.com>,
<hansg@kernel.org>, <ilpo.jarvinen@linux.intel.com>,
<tglx@kernel.org>, <mingo@redhat.com>, <bp@alien8.de>,
<dave.hansen@linux.intel.com>, <hpa@zytor.com>, <lenb@kernel.org>,
<peterz@infradead.org>, <ricardo.neri-calderon@linux.intel.com>,
<x86@kernel.org>, <platform-driver-x86@vger.kernel.org>,
<linux-pm@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-acpi@vger.kernel.org>
Cc: Vishal Badole <Vishal.Badole@amd.com>
Subject: [PATCH v3 0/3] cpufreq: amd-pstate: Capacity Aware Scheduling on hybrid platforms
Date: Fri, 4 Dec 2026 18:57:12 +0530 [thread overview]
Message-ID: <20261204132715.1668516-1-Vishal.Badole@amd.com> (raw)
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 v2:
- Select the reference by maximum frequency, with a CPPC fallback.
- Scale capacity using cached per-CPU maximum frequencies.
- Refresh the reference and online CPU capacities on hotplug.
- Add an SMP-safe topology helper and remove driver-side SMP checks.
- Link to v2:
https://lore.kernel.org/all/20261125172031.741740-1-Vishal.Badole@amd.com/
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/include/asm/topology.h | 6 +
arch/x86/kernel/acpi/cppc.c | 4 +-
drivers/cpufreq/amd-pstate.c | 191 ++++++++++++++++++++++++--
drivers/platform/x86/amd/hfi/hfi.c | 9 +-
6 files changed, 216 insertions(+), 11 deletions(-)
create mode 100644 arch/x86/include/asm/amd/amd-pstate.h
--
2.34.1
next reply other threads:[~2026-12-04 13:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 13:27 Vishal Badole [this message]
2026-12-04 13:27 ` [PATCH v3 1/3] cpufreq: amd-pstate: Finalize prefcore before registration Vishal Badole
2026-12-04 13:27 ` [PATCH v3 2/3] cpufreq: amd-pstate: Set asymmetric CPU capacity on hybrid platforms Vishal Badole
2026-12-04 22:37 ` Mario Limonciello
2026-12-04 13:27 ` [PATCH v3 3/3] platform/x86/amd: hfi: Stand down when amd-pstate CAS is active Vishal Badole
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261204132715.1668516-1-Vishal.Badole@amd.com \
--to=vishal.badole@amd.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hansg@kernel.org \
--cc=hpa@zytor.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=kprateek.nayak@amd.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mario.limonciello@amd.com \
--cc=mingo@redhat.com \
--cc=perry.yuan@amd.com \
--cc=peterz@infradead.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=ray.huang@amd.com \
--cc=ricardo.neri-calderon@linux.intel.com \
--cc=tglx@kernel.org \
--cc=viresh.kumar@linaro.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox