public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* Subject: [cpuidle] Limitation: cannot model asymmetric C-state latencies on big.LITTLE SoCs
@ 2025-06-16  7:14 黄少波
  2025-06-16 11:29 ` Rafael J. Wysocki
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: 黄少波 @ 2025-06-16  7:14 UTC (permalink / raw)
  To: linux-pm; +Cc: rafael, lenb, deepthi, khilman

From: huangshaobo2075@phytium.com.cn
To: linux-pm@vger.kernel.org
Cc: rafael@kernel.org, lenb@kernel.org, deepthi@linux.vnet.ibm.com, khilman@kernel.org
Subject: [cpuidle] Limitation: cannot model asymmetric C-state latencies on big.LITTLE SoCs

Hi,

I'm working on an ARM64 platform with a big.LITTLE CPU topology. While parsing the ACPI tables,
I noticed that the C-state latency and residency values differ between the big and LITTLE cores,
as expected.

However, I found that the current cpuidle framework only allows a single global `cpuidle_driver`,
and all CPUs share the same `cpuidle_driver->states[]` array. As a result, only the first core to
initialize (usually a LITTLE core) sets up the C-states, and the same values are applied to all cores,
including the big ones. This leads to incorrect idle behavior on asymmetric platforms.

I believe this behavior was introduced by commit 46bcfad7a819
("cpuidle: Single/Global registration of idle states").

I understand this design was introduced in 2011 to simplify cpuidle and reduce memory usage:
https://lkml.org/lkml/2011/4/25/83

However, on today's heterogeneous SoCs, this global model no longer suffices. For proper modeling,
we need support for per-cluster or per-core cpuidle drivers, or at least some mechanism to allow
different idle state parameters per CPU.

Has there been any discussion or work toward lifting this limitation?

Thanks,

Shaobo Huang


信息安全声明:本邮件包含信息归发件人所在组织所有,发件人所在组织对该邮件拥有所有权利。请接收者注意保密,未经发件人书面许可,不得向任何第三方组织和个人透露本邮件所含信息。
Information Security Notice: The information contained in this mail is solely property of the sender's organization.This mail communication is confidential.Recipients named above are obligated to maintain secrecy and are not permitted to disclose the contents of this communication to others.

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

end of thread, other threads:[~2025-06-20 10:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-16  7:14 Subject: [cpuidle] Limitation: cannot model asymmetric C-state latencies on big.LITTLE SoCs 黄少波
2025-06-16 11:29 ` Rafael J. Wysocki
2025-06-17  2:49   ` 黄少波
2025-06-20 10:46   ` Sudeep Holla
2025-06-17 15:59 ` Pierre Gondois
2025-06-18  3:34   ` 黄少波
2025-06-20 10:38 ` Sudeep Holla

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