x86: mwait-idle sync with recent Linux
cover x86: mwait-idle sync with recent Linux
1: support additional Broadwell model
2: update support for Silvermont Core in Baytrail SOC
3: add support for the Airmont Core in the Cherrytrail and Braswell SOCs
PATCH 1/3 x86: support additional Broadwell model
xen/arch/x86/cpu/mwait-idle.c +1 -0
@@ -683,6 +683,7 @@ static struct intel_idle_id {ICPU (0x46 , hsw),ICPU (0x4d , avn),ICPU (0x3d , bdw), +ICPU (0x47 , bdw),ICPU (0x4f , bdw), ICPU(0x56, bdw), {}
mwait-idle: support additional Broadwell model
xen/arch/x86/cpu/mwait-idle.c +1 -0
@@ -683,6 +683,7 @@ static struct intel_idle_id {ICPU (0x46 , hsw),ICPU (0x4d , avn),ICPU (0x3d , bdw), +ICPU (0x47 , bdw),ICPU (0x4f , bdw), ICPU(0x56, bdw), {}
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [PATCH 1/3] x86: support additional Broadwell model
The title (of course) was meant to be
"[PATCH 1/3] mwait-idle: support additional Broadwell model"
Jan
Quoted 15 lines
Quoted 1 line
Quoted 1 line · On 18.05.15 at 14:54, <[email protected]> wrote:
Signed-off-by Len Brown <[email protected]>[Linux commit bea57077e44ec9c1e6d3a3c142c8a3c0289e290d]Signed-off-by Jan Beulich <[email protected]>xen/arch/x86/cpu/mwait-idle.c +1
-0@@ -683,6 +683,7 @@ static struct intel_idle_id {ICPU (0x46 , hsw),ICPU (0x4d , avn),ICPU (0x3d , bdw), +ICPU (0x47 , bdw),ICPU (0x4f , bdw), ICPU(0x56, bdw), {}
PATCH 2/3 mwait-idle: update support for Silvermont Core in Baytrail SOC
In reply to Jan BeulichOn some Silvermont-Core/Baytrail-SOC systems,
C1E latency is higher than original specifications. Although C1E is still enumerated in CPUID.MWAIT.EDX, we delete the state from intel_idle to avoid latency impact.
Under some conditions, the latency of the C6N-BYT and C6S-BYT states may exceed the specified values of 40 and 140 usec, respectively. Increase those values to 300 and 500 usec; to assure
that the hardware does not violate constraints that may be set by the Linux PM_QOS sub-system.
Also increase the C7-BYT target residency to 4.0 ms from 1.5 ms.
xen/arch/x86/cpu/mwait-idle.c +3 -9
@@ -196,28 +196,22 @@ static const struct cpuidle_state byt_cs .target_residency = 1, }, { - .name = "C1E-BYT", - .flags = MWAIT2flg(0x01), - .exit_latency = 15, - .target_residency = 30, - }, - { .name = "C6N-BYT", .flags = MWAIT2flg(0x58) | CPUIDLE_FLAG_TLB_FLUSHED, - .exit_latency = 40, + .exit_latency = 300, .target_residency = 275, }, { .name = "C6S-BYT", .flags = MWAIT2flg(0x52) | CPUIDLE_FLAG_TLB_FLUSHED, - .exit_latency = 140, + .exit_latency = 500, .target_residency = 560, }, { .name = "C7-BYT", .flags = MWAIT2flg(0x60) | CPUIDLE_FLAG_TLB_FLUSHED, .exit_latency = 1200, - .target_residency = 1500, + .target_residency = 4000, }, { .name = "C7S-BYT",
mwait-idle: update support for Silvermont Core in Baytrail SOC
On some Silvermont-Core/Baytrail-SOC systems,
C1E latency is higher than original specifications. Although C1E is still enumerated in CPUID.MWAIT.EDX, we delete the state from intel_idle to avoid latency impact.
Under some conditions, the latency of the C6N-BYT and C6S-BYT states may exceed the specified values of 40 and 140 usec, respectively. Increase those values to 300 and 500 usec; to assure
that the hardware does not violate constraints that may be set by the Linux PM_QOS sub-system.
Also increase the C7-BYT target residency to 4.0 ms from 1.5 ms.
xen/arch/x86/cpu/mwait-idle.c +3 -9
@@ -196,28 +196,22 @@ static const struct cpuidle_state byt_cs .target_residency = 1, }, { - .name = "C1E-BYT", - .flags = MWAIT2flg(0x01), - .exit_latency = 15, - .target_residency = 30, - }, - { .name = "C6N-BYT", .flags = MWAIT2flg(0x58) | CPUIDLE_FLAG_TLB_FLUSHED, - .exit_latency = 40, + .exit_latency = 300, .target_residency = 275, }, { .name = "C6S-BYT", .flags = MWAIT2flg(0x52) | CPUIDLE_FLAG_TLB_FLUSHED, - .exit_latency = 140, + .exit_latency = 500, .target_residency = 560, }, { .name = "C7-BYT", .flags = MWAIT2flg(0x60) | CPUIDLE_FLAG_TLB_FLUSHED, .exit_latency = 1200, - .target_residency = 1500, + .target_residency = 4000, }, { .name = "C7S-BYT",
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
PATCH 3/3 mwait-idle: add support for the Airmont Core in the Cherrytrail and Braswell SOCs
In reply to Jan BeulichSupport C-states for the Airmont core in the Cherrytrail and Braswell SOCs. The states are similar to those of Silvermont in Baytrail, except both flavors of C6 states are faster.
xen/arch/x86/cpu/mwait-idle.c +41 -0
@@ -222,6 +222,40 @@ static const struct cpuidle_state byt_cs {} }; +static const struct cpuidle_state cht_cstates[] = { + { + .name ="C1-CHT" , + .flags =MWAIT2flg (0x00 ), + .exit_latency =1 , + .target_residency =1 , + }, + { + .name ="C6N-CHT" , + .flags =MWAIT2flg (0x58 ) |CPUIDLE_FLAG_TLB_FLUSHED , + .exit_latency =80 , + .target_residency =275 , + }, + { + .name ="C6S-CHT" , + .flags =MWAIT2flg (0x52 ) |CPUIDLE_FLAG_TLB_FLUSHED , + .exit_latency =200 , + .target_residency =560 , + }, + { + .name ="C7-CHT" , + .flags =MWAIT2flg (0x60 ) |CPUIDLE_FLAG_TLB_FLUSHED , + .exit_latency =1200 , + .target_residency =4000 , + }, + { + .name ="C7S-CHT" , + .flags =MWAIT2flg (0x64 ) |CPUIDLE_FLAG_TLB_FLUSHED , + .exit_latency =10000 , + .target_residency =20000 , + }, + {} +}; +static const struct cpuidle_state ivb_cstates[] = { { .name ="C1-IVB" ,
@@ -625,6 +659,12 @@ static const struct idle_cpu idle_cpu_by .byt_auto_demotion_disable_flag = 1, }; +static const struct idle_cpu idle_cpu_cht = { + .state_table = cht_cstates, + .disable_promotion_to_c1e =1 , + .byt_auto_demotion_disable_flag =1 , +}; +static const struct idle_cpu idle_cpu_ivb = { .state_table = ivb_cstates, .disable_promotion_to_c1e =1 ,
@@ -669,6 +709,7 @@ static struct intel_idle_id {ICPU (0x2d , snb),ICPU (0x36 , atom),ICPU (0x37 , byt), +ICPU (0x4c , cht),ICPU (0x3a , ivb),ICPU (0x3e , ivt), ICPU(0x3c, hsw),
mwait-idle: add support for the Airmont Core in the Cherrytrail and Braswell SOCs
Support C-states for the Airmont core in the Cherrytrail and Braswell SOCs. The states are similar to those of Silvermont in Baytrail, except both flavors of C6 states are faster.
xen/arch/x86/cpu/mwait-idle.c +41 -0
59 lines not on this page · raw message
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel