]> git.ipfire.org Git - thirdparty/linux.git/commit
arm64: topology: Handle AMU FIE setup on CPU hotplug
authorLifeng Zheng <zhenglifeng1@huawei.com>
Wed, 19 Nov 2025 08:13:56 +0000 (16:13 +0800)
committerWill Deacon <will@kernel.org>
Mon, 5 Jan 2026 21:11:49 +0000 (21:11 +0000)
commit6fd9be0b7b2e957d24b0490b989658c4d18d92c7
tree9c75d2eda75207d96e22cc3054ff7b614e9ba9a6
parent4221504c4328d4d9e57962bf530fa52913591139
arm64: topology: Handle AMU FIE setup on CPU hotplug

Currently, when a cpufreq policy is created, the AMU FIE setup process
checks all CPUs in the policy -- including those that are offline. If any
of these CPUs are offline at that time, their AMU capability flag hasn't
been verified yet, leading the check fail. As a result, AMU FIE is not
enabled, even if the CPUs that are online do support it.

Later, when the previously offline CPUs come online and report AMU support,
there's no mechanism in place to re-enable AMU FIE for the policy. This
leaves the entire frequency domain without AMU FIE, despite being eligible.

Restrict the initial AMU FIE check to only those CPUs that are online at
the time the policy is created, and allow CPUs that come online later to
join the policy with AMU FIE enabled.

Signed-off-by: Lifeng Zheng <zhenglifeng1@huawei.com>
Acked-by: Beata Michalska <beata.michalska@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/topology.c
drivers/base/arch_topology.c