Skip to contentSkip to conversation

x86/Intel: add further support for Ivy Bridge CPU models

PATCH In review Jan Beulich 2 participants 3 messages Sep 17, 2012 – Oct 1, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/Intel: add further support for Ivy Bridge CPU models

And some initial Haswell ones at once.

xen/arch/x86/acpi/cpu_idle.c +6 -2
@@ -105,11 +105,15 @@ static void do_get_hw_residencies(void *
 
     switch ( c->x86_model )
     {
-    /* Ivy bridge */
-    case 0x3A:
     /* Sandy bridge */
     case 0x2A:
     case 0x2D:
+    /* Ivy bridge */
+    case 0x3A:
+    case 0x3E:
+    /* Haswell */
+    case 0x3c:
+    case 0x45:
         GET_PC2_RES(hw_res->pc2);
         GET_CC7_RES(hw_res->cc7);
         /* fall through */
xen/arch/x86/hvm/vmx/vmx.c +3 -1
@@ -1731,7 +1731,9 @@ static const struct lbr_info *last_branc
         /* Sandy Bridge */
         case 42: case 45:
         /* Ivy Bridge */
-        case 58:
+        case 58: case 62:
+        /* Haswell */
+        case 60: case 69:
             return nh_lbr;
             break;
         /* Atom */
xen/arch/x86/hvm/vmx/vpmu_core2.c +1 -0
@@ -747,6 +747,7 @@ int vmx_vpmu_initialise(struct vcpu *v, 
         case 46:
         case 47:
         case 58:
+        case 62:
             ret = core2_vpmu_initialise(v, vpmu_flags);
             if ( !ret )
                 vpmu->arch_vpmu_ops = &core2_vpmu_ops;

x86/Intel: add further support for Ivy Bridge CPU models

And some initial Haswell ones at once.

xen/arch/x86/acpi/cpu_idle.c +6 -2
@@ -105,11 +105,15 @@ static void do_get_hw_residencies(void *
 
     switch ( c->x86_model )
     {
-    /* Ivy bridge */
-    case 0x3A:
     /* Sandy bridge */
     case 0x2A:
     case 0x2D:
+    /* Ivy bridge */
+    case 0x3A:
+    case 0x3E:
+    /* Haswell */
+    case 0x3c:
+    case 0x45:
         GET_PC2_RES(hw_res->pc2);
         GET_CC7_RES(hw_res->cc7);
         /* fall through */
xen/arch/x86/hvm/vmx/vmx.c +3 -1
@@ -1731,7 +1731,9 @@ static const struct lbr_info *last_branc
         /* Sandy Bridge */
         case 42: case 45:
         /* Ivy Bridge */
-        case 58:
+        case 58: case 62:
+        /* Haswell */
+        case 60: case 69:
             return nh_lbr;
             break;
         /* Atom */
xen/arch/x86/hvm/vmx/vpmu_core2.c +1 -0
@@ -747,6 +747,7 @@ int vmx_vpmu_initialise(struct vcpu *v, 
         case 46:
         case 47:
         case 58:
+        case 62:
             ret = core2_vpmu_initialise(v, vpmu_flags);
             if ( !ret )
                 vpmu->arch_vpmu_ops = &core2_vpmu_ops;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw

Ping: [PATCH] x86/Intel: add further support for Ivy Bridge CPU models

x86/Intel: add further support for Ivy Bridge CPU models

And some initial Haswell ones at once.

xen/arch/x86/acpi/cpu_idle.c +6 -2
@@ -128,11 +128,15 @@ static void do_get_hw_residencies(void *
 
     switch ( c->x86_model )
     {
-    /* Ivy bridge */
-    case 0x3A:
     /* Sandy bridge */
     case 0x2A:
     case 0x2D:
+    /* Ivy bridge */
+    case 0x3A:
+    case 0x3E:
+    /* Haswell */
+    case 0x3c:
+    case 0x45:
         GET_PC2_RES(hw_res->pc2);
         GET_CC7_RES(hw_res->cc7);
         /* fall through */
xen/arch/x86/hvm/vmx/vmx.c +3 -1
@@ -1746,7 +1746,9 @@ static const struct lbr_info *last_branc
         /* Sandy Bridge */
         case 42: case 45:
         /* Ivy Bridge */
-        case 58:
+        case 58: case 62:
+        /* Haswell */
+        case 60: case 69:
             return nh_lbr;
             break;
         /* Atom */
xen/arch/x86/hvm/vmx/vpmu_core2.c +1 -0
@@ -747,6 +747,7 @@ int vmx_vpmu_initialise(struct vcpu *v, 
         case 46:
         case 47:
         case 58:
+        case 62:
             ret = core2_vpmu_initialise(v, vpmu_flags);
             if ( !ret )
                 vpmu->arch_vpmu_ops = &core2_vpmu_ops;

x86/Intel: add further support for Ivy Bridge CPU models

And some initial Haswell ones at once.

xen/arch/x86/acpi/cpu_idle.c +6 -2
@@ -128,11 +128,15 @@ static void do_get_hw_residencies(void *
 
     switch ( c->x86_model )
     {
-    /* Ivy bridge */
-    case 0x3A:
     /* Sandy bridge */
     case 0x2A:
     case 0x2D:
+    /* Ivy bridge */
+    case 0x3A:
+    case 0x3E:
+    /* Haswell */
+    case 0x3c:
+    case 0x45:
         GET_PC2_RES(hw_res->pc2);
         GET_CC7_RES(hw_res->cc7);
         /* fall through */
xen/arch/x86/hvm/vmx/vmx.c +3 -1
@@ -1746,7 +1746,9 @@ static const struct lbr_info *last_branc
         /* Sandy Bridge */
         case 42: case 45:
         /* Ivy Bridge */
-        case 58:
+        case 58: case 62:
+        /* Haswell */
+        case 60: case 69:
             return nh_lbr;
             break;
         /* Atom */
xen/arch/x86/hvm/vmx/vpmu_core2.c +1 -0
@@ -747,6 +747,7 @@ int vmx_vpmu_initialise(struct vcpu *v, 
         case 46:
         case 47:
         case 58:
+        case 62:
             ret = core2_vpmu_initialise(v, vpmu_flags);
             if ( !ret )
                 vpmu->arch_vpmu_ops = &core2_vpmu_ops;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw

Re: Ping: [PATCH] x86/Intel: add further support for Ivy Bridge CPU models

Quoted 46 lines · Jan Beulich

x86/Intel: add further support for Ivy Bridge CPU models

And some initial Haswell ones at once.

xen/arch/x86/acpi/cpu_idle.c +6 -2
@@ -128,11 +128,15 @@ static void do_get_hw_residencies(void *
 
     switch ( c->x86_model )
     {
-    /* Ivy bridge */
-    case 0x3A:
     /* Sandy bridge */
     case 0x2A:
     case 0x2D:
+    /* Ivy bridge */
+    case 0x3A:
+    case 0x3E:
+    /* Haswell */
+    case 0x3c:
+    case 0x45:
         GET_PC2_RES(hw_res->pc2);
         GET_CC7_RES(hw_res->cc7);
         /* fall through */
xen/arch/x86/hvm/vmx/vmx.c +3 -1
@@ -1746,7 +1746,9 @@ static const struct lbr_info *last_branc
         /* Sandy Bridge */
         case 42: case 45:
         /* Ivy Bridge */
-        case 58:
+        case 58: case 62:
+        /* Haswell */
+        case 60: case 69:
             return nh_lbr;
             break;
         /* Atom */

xen/arch/x86/hvm/vmx/vpmu_core2.c int vmx_vpmu_initialise(struct vcpu *v, · line 753

Quoted 7 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +1 -0
@@ -747,6 +747,7 @@ int vmx_vpmu_initialise(struct vcpu *v,
         case 46:
         case 47:
         case 58:
+        case 62:
             ret = core2_vpmu_initialise(v, vpmu_flags);
             if ( !ret )
                 vpmu->arch_vpmu_ops = &core2_vpmu_ops;

Looks good to me.

--
Jun
Intel Open Source Technology Center