* [PATCH] intel_idle: Add Panther Lake C-states table
@ 2026-03-09 8:38 Artem Bityutskiy
2026-03-11 11:55 ` Rafael J. Wysocki
0 siblings, 1 reply; 2+ messages in thread
From: Artem Bityutskiy @ 2026-03-09 8:38 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: Linux PM Mailing List, Artem Bityutskiy
From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Panther Lake supports the following requestable C-states: C1, C1E, C6S, C10.
Add a custom table for them.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
---
drivers/idle/intel_idle.c | 42 +++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Based on latency analysis using the 'wult' tool, and power break even
analysis using the 'pbe' tool.
diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c
index 167eb72105baf..36f5766381172 100644
--- a/drivers/idle/intel_idle.c
+++ b/drivers/idle/intel_idle.c
@@ -994,6 +994,43 @@ static struct cpuidle_state mtl_l_cstates[] __initdata = {
.enter = NULL }
};
+static struct cpuidle_state ptl_cstates[] __initdata = {
+ {
+ .name = "C1",
+ .desc = "MWAIT 0x00",
+ .flags = MWAIT2flg(0x00),
+ .exit_latency = 1,
+ .target_residency = 1,
+ .enter = &intel_idle,
+ .enter_s2idle = intel_idle_s2idle, },
+ {
+ .name = "C1E",
+ .desc = "MWAIT 0x01",
+ .flags = MWAIT2flg(0x01) | CPUIDLE_FLAG_ALWAYS_ENABLE,
+ .exit_latency = 10,
+ .target_residency = 10,
+ .enter = &intel_idle,
+ .enter_s2idle = intel_idle_s2idle, },
+ {
+ .name = "C6S",
+ .desc = "MWAIT 0x21",
+ .flags = MWAIT2flg(0x21) | CPUIDLE_FLAG_TLB_FLUSHED,
+ .exit_latency = 300,
+ .target_residency = 300,
+ .enter = &intel_idle,
+ .enter_s2idle = intel_idle_s2idle, },
+ {
+ .name = "C10",
+ .desc = "MWAIT 0x60",
+ .flags = MWAIT2flg(0x60) | CPUIDLE_FLAG_TLB_FLUSHED,
+ .exit_latency = 370,
+ .target_residency = 2500,
+ .enter = &intel_idle,
+ .enter_s2idle = intel_idle_s2idle, },
+ {
+ .enter = NULL }
+};
+
static struct cpuidle_state gmt_cstates[] __initdata = {
{
.name = "C1",
@@ -1623,6 +1660,10 @@ static const struct idle_cpu idle_cpu_mtl_l __initconst = {
.state_table = mtl_l_cstates,
};
+static const struct idle_cpu idle_cpu_ptl __initconst = {
+ .state_table = ptl_cstates,
+};
+
static const struct idle_cpu idle_cpu_gmt __initconst = {
.state_table = gmt_cstates,
};
@@ -1737,6 +1778,7 @@ static const struct x86_cpu_id intel_idle_ids[] __initconst = {
X86_MATCH_VFM(INTEL_ALDERLAKE, &idle_cpu_adl),
X86_MATCH_VFM(INTEL_ALDERLAKE_L, &idle_cpu_adl_l),
X86_MATCH_VFM(INTEL_METEORLAKE_L, &idle_cpu_mtl_l),
+ X86_MATCH_VFM(INTEL_PANTHERLAKE_L, &idle_cpu_ptl),
X86_MATCH_VFM(INTEL_ATOM_GRACEMONT, &idle_cpu_gmt),
X86_MATCH_VFM(INTEL_SAPPHIRERAPIDS_X, &idle_cpu_spr),
X86_MATCH_VFM(INTEL_EMERALDRAPIDS_X, &idle_cpu_spr),
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] intel_idle: Add Panther Lake C-states table
2026-03-09 8:38 [PATCH] intel_idle: Add Panther Lake C-states table Artem Bityutskiy
@ 2026-03-11 11:55 ` Rafael J. Wysocki
0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2026-03-11 11:55 UTC (permalink / raw)
To: Artem Bityutskiy; +Cc: Rafael J. Wysocki, Linux PM Mailing List
On Mon, Mar 9, 2026 at 9:38 AM Artem Bityutskiy <dedekind1@gmail.com> wrote:
>
> From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
>
> Panther Lake supports the following requestable C-states: C1, C1E, C6S, C10.
> Add a custom table for them.
>
> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
> ---
> drivers/idle/intel_idle.c | 42 +++++++++++++++++++++++++++++++++++++++
> 1 file changed, 42 insertions(+)
>
> Based on latency analysis using the 'wult' tool, and power break even
> analysis using the 'pbe' tool.
>
> diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c
> index 167eb72105baf..36f5766381172 100644
> --- a/drivers/idle/intel_idle.c
> +++ b/drivers/idle/intel_idle.c
> @@ -994,6 +994,43 @@ static struct cpuidle_state mtl_l_cstates[] __initdata = {
> .enter = NULL }
> };
>
> +static struct cpuidle_state ptl_cstates[] __initdata = {
> + {
> + .name = "C1",
> + .desc = "MWAIT 0x00",
> + .flags = MWAIT2flg(0x00),
> + .exit_latency = 1,
> + .target_residency = 1,
> + .enter = &intel_idle,
> + .enter_s2idle = intel_idle_s2idle, },
> + {
> + .name = "C1E",
> + .desc = "MWAIT 0x01",
> + .flags = MWAIT2flg(0x01) | CPUIDLE_FLAG_ALWAYS_ENABLE,
> + .exit_latency = 10,
> + .target_residency = 10,
> + .enter = &intel_idle,
> + .enter_s2idle = intel_idle_s2idle, },
> + {
> + .name = "C6S",
> + .desc = "MWAIT 0x21",
> + .flags = MWAIT2flg(0x21) | CPUIDLE_FLAG_TLB_FLUSHED,
> + .exit_latency = 300,
> + .target_residency = 300,
> + .enter = &intel_idle,
> + .enter_s2idle = intel_idle_s2idle, },
> + {
> + .name = "C10",
> + .desc = "MWAIT 0x60",
> + .flags = MWAIT2flg(0x60) | CPUIDLE_FLAG_TLB_FLUSHED,
> + .exit_latency = 370,
> + .target_residency = 2500,
> + .enter = &intel_idle,
> + .enter_s2idle = intel_idle_s2idle, },
> + {
> + .enter = NULL }
> +};
> +
> static struct cpuidle_state gmt_cstates[] __initdata = {
> {
> .name = "C1",
> @@ -1623,6 +1660,10 @@ static const struct idle_cpu idle_cpu_mtl_l __initconst = {
> .state_table = mtl_l_cstates,
> };
>
> +static const struct idle_cpu idle_cpu_ptl __initconst = {
> + .state_table = ptl_cstates,
> +};
> +
> static const struct idle_cpu idle_cpu_gmt __initconst = {
> .state_table = gmt_cstates,
> };
> @@ -1737,6 +1778,7 @@ static const struct x86_cpu_id intel_idle_ids[] __initconst = {
> X86_MATCH_VFM(INTEL_ALDERLAKE, &idle_cpu_adl),
> X86_MATCH_VFM(INTEL_ALDERLAKE_L, &idle_cpu_adl_l),
> X86_MATCH_VFM(INTEL_METEORLAKE_L, &idle_cpu_mtl_l),
> + X86_MATCH_VFM(INTEL_PANTHERLAKE_L, &idle_cpu_ptl),
> X86_MATCH_VFM(INTEL_ATOM_GRACEMONT, &idle_cpu_gmt),
> X86_MATCH_VFM(INTEL_SAPPHIRERAPIDS_X, &idle_cpu_spr),
> X86_MATCH_VFM(INTEL_EMERALDRAPIDS_X, &idle_cpu_spr),
> --
Applied as 7.1 material, but I've added some motivation explanation to
the changelog, see:
https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/patch/?id=d51de21b4c3a34a2cc592319df63864e14b18b29
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-11 11:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-09 8:38 [PATCH] intel_idle: Add Panther Lake C-states table Artem Bityutskiy
2026-03-11 11:55 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox