From: "Jan Beulich" Subject: [PATCH] x86/Intel: Broadwell doesn't have PKG_C{8, 9, 10}_RESIDENCY MSRs Date: Mon, 19 Sep 2016 01:51:59 -0600 Message-ID: <57DFB53F020000780010FD16@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part7640F30F.2__=" Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bltN1-0003bK-Vc for xen-devel@lists.xenproject.org; Mon, 19 Sep 2016 07:52:08 +0000 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 , Kevin Tian , 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. --=__Part7640F30F.2__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline According to https://lists.xenproject.org/archives/html/xen-devel/2016-09/msg01797.html= =20 this partially reverts commit 350bc1a9d4 ("x86: support newer Intel CPU models") to account for the appearant earlier mis-documentation. Signed-off-by: Jan Beulich --- a/xen/arch/x86/acpi/cpu_idle.c +++ b/xen/arch/x86/acpi/cpu_idle.c @@ -66,9 +66,9 @@ #define GET_PC3_RES(val) GET_HW_RES_IN_NS(0x3F8, val) #define GET_PC6_RES(val) GET_HW_RES_IN_NS(0x3F9, val) #define GET_PC7_RES(val) GET_HW_RES_IN_NS(0x3FA, val) -#define GET_PC8_RES(val) GET_HW_RES_IN_NS(0x630, val) -#define GET_PC9_RES(val) GET_HW_RES_IN_NS(0x631, val) -#define GET_PC10_RES(val) GET_HW_RES_IN_NS(0x632, val) +#define GET_PC8_RES(val) GET_HW_RES_IN_NS(0x630, val) /* some Haswells = only */ +#define GET_PC9_RES(val) GET_HW_RES_IN_NS(0x631, val) /* some Haswells = only */ +#define GET_PC10_RES(val) GET_HW_RES_IN_NS(0x632, val) /* some Haswells = only */ #define GET_CC1_RES(val) GET_HW_RES_IN_NS(0x660, val) /* Silvermont only = */ #define GET_CC3_RES(val) GET_HW_RES_IN_NS(0x3FC, val) #define GET_CC6_RES(val) GET_HW_RES_IN_NS(0x3FD, val) @@ -142,8 +142,6 @@ static void do_get_hw_residencies(void * { /* 4th generation Intel Core (Haswell) */ case 0x45: - /* Xeon E5/E7 v4 (Broadwell) */ - case 0x4F: GET_PC8_RES(hw_res->pc8); GET_PC9_RES(hw_res->pc9); GET_PC10_RES(hw_res->pc10); @@ -161,6 +159,7 @@ static void do_get_hw_residencies(void * /* Broadwell */ case 0x3D: case 0x47: + case 0x4F: case 0x56: /* Skylake */ case 0x4E: --=__Part7640F30F.2__= Content-Type: text/plain; name="x86-Broadwell-PC8-10.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-Broadwell-PC8-10.patch" x86/Intel: Broadwell doesn't have PKG_C{8,9,10}_RESIDENCY MSRs=0A=0AAccordi= ng to=0Ahttps://lists.xenproject.org/archives/html/xen-devel/2016-09/msg017= 97.html=0Athis partially reverts commit 350bc1a9d4 ("x86: support newer = Intel CPU=0Amodels") to account for the appearant earlier mis-documentation= .=0A=0ASigned-off-by: Jan Beulich =0A=0A--- a/xen/arch/x= 86/acpi/cpu_idle.c=0A+++ b/xen/arch/x86/acpi/cpu_idle.c=0A@@ -66,9 +66,9 = @@=0A #define GET_PC3_RES(val) GET_HW_RES_IN_NS(0x3F8, val)=0A #define = GET_PC6_RES(val) GET_HW_RES_IN_NS(0x3F9, val)=0A #define GET_PC7_RES(val) = GET_HW_RES_IN_NS(0x3FA, val)=0A-#define GET_PC8_RES(val) GET_HW_RES_IN_NS= (0x630, val)=0A-#define GET_PC9_RES(val) GET_HW_RES_IN_NS(0x631, = val)=0A-#define GET_PC10_RES(val) GET_HW_RES_IN_NS(0x632, val)=0A+#define = GET_PC8_RES(val) GET_HW_RES_IN_NS(0x630, val) /* some Haswells only = */=0A+#define GET_PC9_RES(val) GET_HW_RES_IN_NS(0x631, val) /* some = Haswells only */=0A+#define GET_PC10_RES(val) GET_HW_RES_IN_NS(0x632, val) = /* some Haswells only */=0A #define GET_CC1_RES(val) GET_HW_RES_IN_NS(0x66= 0, val) /* Silvermont only */=0A #define GET_CC3_RES(val) GET_HW_RES_IN_NS= (0x3FC, val)=0A #define GET_CC6_RES(val) GET_HW_RES_IN_NS(0x3FD, = val)=0A@@ -142,8 +142,6 @@ static void do_get_hw_residencies(void *=0A = {=0A /* 4th generation Intel Core (Haswell) */=0A case 0x45:=0A- = /* Xeon E5/E7 v4 (Broadwell) */=0A- case 0x4F:=0A GET_PC8_RES(h= w_res->pc8);=0A GET_PC9_RES(hw_res->pc9);=0A GET_PC10_RES(h= w_res->pc10);=0A@@ -161,6 +159,7 @@ static void do_get_hw_residencies(void = *=0A /* Broadwell */=0A case 0x3D:=0A case 0x47:=0A+ case = 0x4F:=0A case 0x56:=0A /* Skylake */=0A case 0x4E:=0A --=__Part7640F30F.2__= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --=__Part7640F30F.2__=--