* [PATCH] mwait_idle: Skylake Client Support
@ 2015-11-30 9:49 Jan Beulich
2015-11-30 9:51 ` Andrew Cooper
0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2015-11-30 9:49 UTC (permalink / raw)
To: xen-devel; +Cc: Andrew Cooper, Keir Fraser, Eric Shelton
[-- Attachment #1: Type: text/plain, Size: 2619 bytes --]
Skylake Client CPU idle Power states (C-states)
are similar to the previous generation, Broadwell.
However, Skylake does get its own table with updated
worst-case latency and average energy-break-even residency values.
Signed-off-by: Len Brown <len.brown@intel.com>
[Linux commit 493f133f47750aa5566fafa9403617e3f0506f8c]
mwait_idle: Skylake Client Support - updated
Addition of PC9 state, and minor tweaks to existing PC6 and PC8 states.
Signed-off-by: Len Brown <len.brown@intel.com>
[Linux commit 135919a3a80565070b9645009e65f73e72c661c0]
Signed-off-by: Jan Beulich <jbeulich@suse.com>
--- unstable.orig/xen/arch/x86/cpu/mwait-idle.c 2015-05-18 11:45:57.000000000 +0200
+++ unstable/xen/arch/x86/cpu/mwait-idle.c 2015-11-30 10:47:19.000000000 +0100
@@ -477,6 +477,58 @@ static const struct cpuidle_state bdw_cs
{}
};
+static const struct cpuidle_state skl_cstates[] = {
+ {
+ .name = "C1-SKL",
+ .flags = MWAIT2flg(0x00),
+ .exit_latency = 2,
+ .target_residency = 2,
+ },
+ {
+ .name = "C1E-SKL",
+ .flags = MWAIT2flg(0x01),
+ .exit_latency = 10,
+ .target_residency = 20,
+ },
+ {
+ .name = "C3-SKL",
+ .flags = MWAIT2flg(0x10) | CPUIDLE_FLAG_TLB_FLUSHED,
+ .exit_latency = 70,
+ .target_residency = 100,
+ },
+ {
+ .name = "C6-SKL",
+ .flags = MWAIT2flg(0x20) | CPUIDLE_FLAG_TLB_FLUSHED,
+ .exit_latency = 85,
+ .target_residency = 200,
+ },
+ {
+ .name = "C7s-SKL",
+ .flags = MWAIT2flg(0x33) | CPUIDLE_FLAG_TLB_FLUSHED,
+ .exit_latency = 124,
+ .target_residency = 800,
+ },
+ {
+ .name = "C8-SKL",
+ .flags = MWAIT2flg(0x40) | CPUIDLE_FLAG_TLB_FLUSHED,
+ .exit_latency = 200,
+ .target_residency = 800,
+ },
+ {
+ .name = "C9-SKL",
+ .flags = MWAIT2flg(0x50) | CPUIDLE_FLAG_TLB_FLUSHED,
+ .exit_latency = 480,
+ .target_residency = 5000,
+ },
+ {
+ .name = "C10-SKL",
+ .flags = MWAIT2flg(0x60) | CPUIDLE_FLAG_TLB_FLUSHED,
+ .exit_latency = 890,
+ .target_residency = 5000,
+ },
+ {}
+};
+
static const struct cpuidle_state atom_cstates[] = {
{
.name = "C1E-ATM",
@@ -685,6 +737,11 @@ static const struct idle_cpu idle_cpu_bd
.disable_promotion_to_c1e = 1,
};
+static const struct idle_cpu idle_cpu_skl = {
+ .state_table = skl_cstates,
+ .disable_promotion_to_c1e = 1,
+};
+
static const struct idle_cpu idle_cpu_avn = {
.state_table = avn_cstates,
.disable_promotion_to_c1e = 1,
@@ -720,6 +777,8 @@ static const struct x86_cpu_id intel_idl
ICPU(0x47, bdw),
ICPU(0x4f, bdw),
ICPU(0x56, bdw),
+ ICPU(0x4e, skl),
+ ICPU(0x5e, skl),
{}
};
[-- Attachment #2: mwait-idle-Skylake.patch --]
[-- Type: text/plain, Size: 2651 bytes --]
mwait_idle: Skylake Client Support
Skylake Client CPU idle Power states (C-states)
are similar to the previous generation, Broadwell.
However, Skylake does get its own table with updated
worst-case latency and average energy-break-even residency values.
Signed-off-by: Len Brown <len.brown@intel.com>
[Linux commit 493f133f47750aa5566fafa9403617e3f0506f8c]
mwait_idle: Skylake Client Support - updated
Addition of PC9 state, and minor tweaks to existing PC6 and PC8 states.
Signed-off-by: Len Brown <len.brown@intel.com>
[Linux commit 135919a3a80565070b9645009e65f73e72c661c0]
Signed-off-by: Jan Beulich <jbeulich@suse.com>
--- unstable.orig/xen/arch/x86/cpu/mwait-idle.c 2015-05-18 11:45:57.000000000 +0200
+++ unstable/xen/arch/x86/cpu/mwait-idle.c 2015-11-30 10:47:19.000000000 +0100
@@ -477,6 +477,58 @@ static const struct cpuidle_state bdw_cs
{}
};
+static const struct cpuidle_state skl_cstates[] = {
+ {
+ .name = "C1-SKL",
+ .flags = MWAIT2flg(0x00),
+ .exit_latency = 2,
+ .target_residency = 2,
+ },
+ {
+ .name = "C1E-SKL",
+ .flags = MWAIT2flg(0x01),
+ .exit_latency = 10,
+ .target_residency = 20,
+ },
+ {
+ .name = "C3-SKL",
+ .flags = MWAIT2flg(0x10) | CPUIDLE_FLAG_TLB_FLUSHED,
+ .exit_latency = 70,
+ .target_residency = 100,
+ },
+ {
+ .name = "C6-SKL",
+ .flags = MWAIT2flg(0x20) | CPUIDLE_FLAG_TLB_FLUSHED,
+ .exit_latency = 85,
+ .target_residency = 200,
+ },
+ {
+ .name = "C7s-SKL",
+ .flags = MWAIT2flg(0x33) | CPUIDLE_FLAG_TLB_FLUSHED,
+ .exit_latency = 124,
+ .target_residency = 800,
+ },
+ {
+ .name = "C8-SKL",
+ .flags = MWAIT2flg(0x40) | CPUIDLE_FLAG_TLB_FLUSHED,
+ .exit_latency = 200,
+ .target_residency = 800,
+ },
+ {
+ .name = "C9-SKL",
+ .flags = MWAIT2flg(0x50) | CPUIDLE_FLAG_TLB_FLUSHED,
+ .exit_latency = 480,
+ .target_residency = 5000,
+ },
+ {
+ .name = "C10-SKL",
+ .flags = MWAIT2flg(0x60) | CPUIDLE_FLAG_TLB_FLUSHED,
+ .exit_latency = 890,
+ .target_residency = 5000,
+ },
+ {}
+};
+
static const struct cpuidle_state atom_cstates[] = {
{
.name = "C1E-ATM",
@@ -685,6 +737,11 @@ static const struct idle_cpu idle_cpu_bd
.disable_promotion_to_c1e = 1,
};
+static const struct idle_cpu idle_cpu_skl = {
+ .state_table = skl_cstates,
+ .disable_promotion_to_c1e = 1,
+};
+
static const struct idle_cpu idle_cpu_avn = {
.state_table = avn_cstates,
.disable_promotion_to_c1e = 1,
@@ -720,6 +777,8 @@ static const struct x86_cpu_id intel_idl
ICPU(0x47, bdw),
ICPU(0x4f, bdw),
ICPU(0x56, bdw),
+ ICPU(0x4e, skl),
+ ICPU(0x5e, skl),
{}
};
[-- Attachment #3: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mwait_idle: Skylake Client Support
2015-11-30 9:49 [PATCH] mwait_idle: Skylake Client Support Jan Beulich
@ 2015-11-30 9:51 ` Andrew Cooper
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cooper @ 2015-11-30 9:51 UTC (permalink / raw)
To: Jan Beulich, xen-devel; +Cc: Keir Fraser, Eric Shelton
On 30/11/15 09:49, Jan Beulich wrote:
> Skylake Client CPU idle Power states (C-states)
> are similar to the previous generation, Broadwell.
> However, Skylake does get its own table with updated
> worst-case latency and average energy-break-even residency values.
>
> Signed-off-by: Len Brown <len.brown@intel.com>
> [Linux commit 493f133f47750aa5566fafa9403617e3f0506f8c]
>
> mwait_idle: Skylake Client Support - updated
>
> Addition of PC9 state, and minor tweaks to existing PC6 and PC8 states.
>
> Signed-off-by: Len Brown <len.brown@intel.com>
> [Linux commit 135919a3a80565070b9645009e65f73e72c661c0]
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-11-30 9:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-30 9:49 [PATCH] mwait_idle: Skylake Client Support Jan Beulich
2015-11-30 9:51 ` Andrew Cooper
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.