From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: [PATCH 1/5] mwait-idle: add SKX support Date: Wed, 08 Jun 2016 07:49:30 -0600 Message-ID: <57583E8A02000078000F31FD@prv-mh.provo.novell.com> References: <57583E0D02000078000F31F2@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part3F093D7A.1__=" Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAdrU-0006Dl-HY for xen-devel@lists.xenproject.org; Wed, 08 Jun 2016 13:49:36 +0000 In-Reply-To: <57583E0D02000078000F31F2@prv-mh.provo.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: xen-devel Cc: Andrew Cooper 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. --=__Part3F093D7A.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline SKX is similar to BDX Signed-off-by: Len Brown [Linux commit: f9e71657c2c0a8f1c50884ab45794be2854e158e] Signed-off-by: Jan Beulich --- a/xen/arch/x86/cpu/mwait-idle.c +++ b/xen/arch/x86/cpu/mwait-idle.c @@ -530,6 +530,28 @@ static struct cpuidle_state skl_cstates[ {} }; =20 +static const struct cpuidle_state skx_cstates[] =3D { + { + .name =3D "C1-SKX", + .flags =3D MWAIT2flg(0x00), + .exit_latency =3D 2, + .target_residency =3D 2, + }, + { + .name =3D "C1E-SKX", + .flags =3D MWAIT2flg(0x01), + .exit_latency =3D 10, + .target_residency =3D 20, + }, + { + .name =3D "C6-SKX", + .flags =3D MWAIT2flg(0x20) | CPUIDLE_FLAG_TLB_FLUSHED, + .exit_latency =3D 133, + .target_residency =3D 600, + }, + {} +}; + static const struct cpuidle_state atom_cstates[] =3D { { .name =3D "C1E-ATM", @@ -757,6 +779,11 @@ static const struct idle_cpu idle_cpu_sk .disable_promotion_to_c1e =3D 1, }; =20 +static const struct idle_cpu idle_cpu_skx =3D { + .state_table =3D skx_cstates, + .disable_promotion_to_c1e =3D 1, +}; + static const struct idle_cpu idle_cpu_avn =3D { .state_table =3D avn_cstates, .disable_promotion_to_c1e =3D 1, @@ -798,6 +825,7 @@ static const struct x86_cpu_id intel_idl ICPU(0x56, bdw), ICPU(0x4e, skl), ICPU(0x5e, skl), + ICPU(0x55, skx), ICPU(0x57, knl), {} }; --=__Part3F093D7A.1__= Content-Type: text/plain; name="x86-mwait-idle-SKX.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-mwait-idle-SKX.patch" mwait-idle: add SKX support=0A=0ASKX is similar to BDX=0A=0ASigned-off-by: = Len Brown =0A[Linux commit: f9e71657c2c0a8f1c50884ab45= 794be2854e158e]=0ASigned-off-by: Jan Beulich =0A=0A--- = a/xen/arch/x86/cpu/mwait-idle.c=0A+++ b/xen/arch/x86/cpu/mwait-idle.c=0A@@ = -530,6 +530,28 @@ static struct cpuidle_state skl_cstates[=0A {}=0A = };=0A =0A+static const struct cpuidle_state skx_cstates[] =3D {=0A+ = {=0A+ .name =3D "C1-SKX",=0A+ .flags =3D MWAIT2flg(0x00),= =0A+ .exit_latency =3D 2,=0A+ .target_residency = =3D 2,=0A+ },=0A+ {=0A+ .name =3D "C1E-SKX",=0A+ = .flags =3D MWAIT2flg(0x01),=0A+ .exit_latency =3D 10,=0A+ = .target_residency =3D 20,=0A+ },=0A+ {=0A+ .name =3D = "C6-SKX",=0A+ .flags =3D MWAIT2flg(0x20) | CPUIDLE_FLAG_TLB_FLUSH= ED,=0A+ .exit_latency =3D 133,=0A+ .target_residency = =3D 600,=0A+ },=0A+ {}=0A+};=0A+=0A static const struct cpuidle_state = atom_cstates[] =3D {=0A {=0A .name =3D "C1E-ATM",=0A@@ = -757,6 +779,11 @@ static const struct idle_cpu idle_cpu_sk=0A .disable_pr= omotion_to_c1e =3D 1,=0A };=0A =0A+static const struct idle_cpu idle_cpu_sk= x =3D {=0A+ .state_table =3D skx_cstates,=0A+ .disable_promotion_= to_c1e =3D 1,=0A+};=0A+=0A static const struct idle_cpu idle_cpu_avn =3D = {=0A .state_table =3D avn_cstates,=0A .disable_promotion_to_c1e = =3D 1,=0A@@ -798,6 +825,7 @@ static const struct x86_cpu_id intel_idl=0A = ICPU(0x56, bdw),=0A ICPU(0x4e, skl),=0A ICPU(0x5e, skl),=0A+ = ICPU(0x55, skx),=0A ICPU(0x57, knl),=0A {}=0A };=0A --=__Part3F093D7A.1__= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwOi8vbGlzdHMueGVuLm9y Zy94ZW4tZGV2ZWwK --=__Part3F093D7A.1__=--