From: "Jan Beulich" Subject: [PATCH 3/3] x86/mwait_idle: initial C8, C9, C10 support Date: Thu, 29 Aug 2013 14:12:28 +0100 Message-ID: <521F64DC02000078000EF70D@nat28.tlf.novell.com> References: <521F631602000078000EF6F9@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartC1F281AC.1__=" Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VF21i-00066D-33 for xen-devel@lists.xenproject.org; Thu, 29 Aug 2013 13:12:42 +0000 In-Reply-To: <521F631602000078000EF6F9@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Len Brown , Keir Fraser , Jun Nakajima List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartC1F281AC.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Allow mwait_idle to utilize C8, C9, C10 when they are present on... "Fourth Generation Intel(R) Core(TM) Processors", which are based on Intel(R) microarchitecture code name Haswell. Signed-off-by: Len Brown Signed-off-by: Jan Beulich --- a/xen/arch/x86/cpu/mwait-idle.c +++ b/xen/arch/x86/cpu/mwait-idle.c @@ -252,6 +252,24 @@ static const struct cpuidle_state hsw_cs .exit_latency =3D 166, .target_residency =3D 500, }, + { + .name =3D "C8-HSW", + .flags =3D MWAIT2flg(0x40) | CPUIDLE_FLAG_TLB_FLUSHED, + .exit_latency =3D 300, + .target_residency =3D 900, + }, + { + .name =3D "C9-HSW", + .flags =3D MWAIT2flg(0x50) | CPUIDLE_FLAG_TLB_FLUSHED, + .exit_latency =3D 600, + .target_residency =3D 1800, + }, + { + .name =3D "C10-HSW", + .flags =3D MWAIT2flg(0x60) | CPUIDLE_FLAG_TLB_FLUSHED, + .exit_latency =3D 2600, + .target_residency =3D 7700, + }, {} }; =20 --=__PartC1F281AC.1__= Content-Type: text/plain; name="x86-mwait-idle-C8+.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-mwait-idle-C8+.patch" x86/mwait_idle: initial C8, C9, C10 support=0A=0AAllow mwait_idle to = utilize C8, C9, C10 when they are present on...=0A"Fourth Generation = Intel(R) Core(TM) Processors", which are based on=0AIntel(R) microarchitect= ure code name Haswell.=0A=0ASigned-off-by: Len Brown = =0ASigned-off-by: Jan Beulich =0A=0A--- a/xen/arch/x86/c= pu/mwait-idle.c=0A+++ b/xen/arch/x86/cpu/mwait-idle.c=0A@@ -252,6 +252,24 = @@ static const struct cpuidle_state hsw_cs=0A .exit_latency =3D = 166,=0A .target_residency =3D 500,=0A },=0A+ {=0A+ = .name =3D "C8-HSW",=0A+ .flags =3D MWAIT2flg(0x40) | CPUIDLE_FLAG_T= LB_FLUSHED,=0A+ .exit_latency =3D 300,=0A+ .target_res= idency =3D 900,=0A+ },=0A+ {=0A+ .name =3D "C9-HSW",=0A+ = .flags =3D MWAIT2flg(0x50) | CPUIDLE_FLAG_TLB_FLUSHED,=0A+ = .exit_latency =3D 600,=0A+ .target_residency =3D 1800,=0A+ = },=0A+ {=0A+ .name =3D "C10-HSW",=0A+ .flags =3D = MWAIT2flg(0x60) | CPUIDLE_FLAG_TLB_FLUSHED,=0A+ .exit_latency =3D = 2600,=0A+ .target_residency =3D 7700,=0A+ },=0A {}=0A = };=0A =0A --=__PartC1F281AC.1__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__PartC1F281AC.1__=--