Skip to contentSkip to conversation

Add missing Intel models to VPMU.

PATCH Superseded Konrad Rzeszutek Wilk 6 participants 15 messages Mar 1, 2013 – Mar 5, 2013

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add missing Intel models to VPMU.

Looking at vmx_vpmu_initialise, I see:

741         case 15:
742         case 23:
743         case 26:
744         case 29:
745         case 42:
746         case 45:
747         case 46:
748         case 47:
749         case 58:
750         case 62:

Which means that we are missing '22' Merom-L"/"Conroe-L (thought we support the earlier Merom).

Also missing from the Westmere family:

case 37: /* 32 nm nehalem, "Clarkdale" */
case 44: /* 32 nm nehalem, "Gulftown" */

and from the Nehelem the
case 30: /* 45 nm nehalem, "Lynnfield" */

is missing?

Any reason? The Atom one's are also missing ..

Would Intel be OK with these two patches (attached as thread):

#1 lore raw

PATCH 1/2 x86/Intel: Provide comments for which model is what.

---
 xen/arch/x86/hvm/vmx/vpmu_core2.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
xen/arch/x86/hvm/vmx/vpmu_core2.c +10 -10
index 2cef2d6..6511605 100644
@@ -738,16 +738,16 @@ int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags)
     {
         switch ( cpu_model )
         {
-        case 15:
-        case 23:
-        case 26:
-        case 29:
-        case 42:
-        case 45:
-        case 46:
-        case 47:
-        case 58:
-        case 62:
+        case 15: /* original 65 nm celeron/pentium/core2/xeon, "Merom"/"Conroe" */
+        case 23: /* current 45 nm celeron/core2/xeon "Penryn"/"Wolfdale" */
+        case 26: /* 45 nm nehalem, "Bloomfield" */
+        case 29: /* six-core 45 nm xeon "Dunnington" */
+        case 42: /* SandyBridge */
+        case 45: /* SandyBridge, "Romely-EP" */
+        case 46: /* 45 nm nehalem-ex, "Beckton" */
+        case 47: /* 32 nm Xeon E7 */
+        case 58: /* IvyBridge */
+        case 62: /* IvyBridge EP */
             ret = core2_vpmu_initialise(v, vpmu_flags);
             if ( !ret )
                 vpmu->arch_vpmu_ops = &core2_vpmu_ops;
Signature · 1 line
1.8.0.2
#2 lore raw

Re: [PATCH 1/2] x86/Intel: Provide comments for which model is what.

xen/arch/x86/hvm/vmx/vpmu_core2.c int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags) · line 742

Quoted 2 lines · Konrad Rzeszutek Wilk
xen/arch/x86/hvm/vmx/vpmu_core2.c +2 -0
+        case 15: /* original 65 nm celeron/pentium/core2/xeon, "Merom"/"Conroe" */
+        case 23: /* current 45 nm celeron/core2/xeon "Penryn"/"Wolfdale" */

No opinion about the patch in general, but it might be better not to say "current" here, at least without attaching a date.

Tim.

Quoted 19 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +8 -0
+        case 26: /* 45 nm nehalem, "Bloomfield" */
+        case 29: /* six-core 45 nm xeon "Dunnington" */
+        case 42: /* SandyBridge */
+        case 45: /* SandyBridge, "Romely-EP" */
+        case 46: /* 45 nm nehalem-ex, "Beckton" */
+        case 47: /* 32 nm Xeon E7 */
+        case 58: /* IvyBridge */
+        case 62: /* IvyBridge EP */
             ret = core2_vpmu_initialise(v, vpmu_flags);
             if ( !ret )
                 vpmu->arch_vpmu_ops = &core2_vpmu_ops;
Signature · 7 lines
1.8.0.2


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

Re: [PATCH 1/2] x86/Intel: Provide comments for which model is what.

Quoted 6 lines · Tim Deegan

Review

Quoted 2 lines · Konrad Rzeszutek Wilk
(quoted diff) +2 -0
+        case 15: /* original 65 nm celeron/pentium/core2/xeon, "Merom"/"Conroe" */
+        case 23: /* current 45 nm celeron/core2/xeon "Penryn"/"Wolfdale" */

No opinion about the patch in general, but it might be better not to say "current" here, at least without attaching a date.

OK. How about this:

commit 7de84d0668df18977ebc9c299d6562676e76dbd5

Author: Konrad Rzeszutek Wilk <[email protected]>
Date:   Fri Mar 1 09:21:35 2013 -0500

x86/Intel: Provide comments for which model is what.

[v1: Tim suggested to remove 'current' from the comments]
xen/arch/x86/hvm/vmx/vpmu_core2.c +10 -10
index 2cef2d6..5d22a70 100644
@@ -738,16 +738,16 @@ int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags)
     {
         switch ( cpu_model )
         {
-        case 15:
-        case 23:
-        case 26:
-        case 29:
-        case 42:
-        case 45:
-        case 46:
-        case 47:
-        case 58:
-        case 62:
+        case 15: /* original 65 nm celeron/pentium/core2/xeon, "Merom"/"Conroe" */
+        case 23: /* 45 nm celeron/core2/xeon "Penryn"/"Wolfdale" */
+        case 26: /* 45 nm nehalem, "Bloomfield" */
+        case 29: /* six-core 45 nm xeon "Dunnington" */
+        case 42: /* SandyBridge */
+        case 45: /* SandyBridge, "Romely-EP" */
+        case 46: /* 45 nm nehalem-ex, "Beckton" */
+        case 47: /* 32 nm Xeon E7 */
+        case 58: /* IvyBridge */
+        case 62: /* IvyBridge EP */
             ret = core2_vpmu_initialise(v, vpmu_flags);
             if ( !ret )
                 vpmu->arch_vpmu_ops = &core2_vpmu_ops;
#4 lore raw

Re: [PATCH 1/2] x86/Intel: Provide comments for which model is what.

Quoted 2 lines
Quoted 1 line
Quoted 1 line · Konrad Rzeszutek Wilk

OK. How about this:

If you fiddle with this list as a whole, please also convert to hex numbers - (almost?) everywhere else we look at those model numbers, we already use their hex representation.

Quoted 43 lines

commit 7de84d0668df18977ebc9c299d6562676e76dbd5

Author: Konrad Rzeszutek Wilk <[email protected]>
Date:   Fri Mar 1 09:21:35 2013 -0500

x86/Intel: Provide comments for which model is what.

[v1: Tim suggested to remove 'current' from the comments]
xen/arch/x86/hvm/vmx/vpmu_core2.c +1 -10
index 2cef2d6..5d22a70 100644
@@ -738,16 +738,16 @@ int vmx_vpmu_initialise(struct vcpu *v, unsigned int 
 vpmu_flags)
     {
         switch ( cpu_model )
         {
-        case 15:
-        case 23:
-        case 26:
-        case 29:
-        case 42:
-        case 45:
-        case 46:
-        case 47:
-        case 58:
-        case 62:
+        case 15: /* original 65 nm celeron/pentium/core2/xeon, 

"Merom"/"Conroe" */

xen/arch/x86/hvm/vmx/vpmu_core2.c +9 -0
+        case 23: /* 45 nm celeron/core2/xeon "Penryn"/"Wolfdale" */
+        case 26: /* 45 nm nehalem, "Bloomfield" */
+        case 29: /* six-core 45 nm xeon "Dunnington" */
+        case 42: /* SandyBridge */
+        case 45: /* SandyBridge, "Romely-EP" */
+        case 46: /* 45 nm nehalem-ex, "Beckton" */
+        case 47: /* 32 nm Xeon E7 */
+        case 58: /* IvyBridge */
+        case 62: /* IvyBridge EP */
             ret = core2_vpmu_initialise(v, vpmu_flags);
             if ( !ret )
                 vpmu->arch_vpmu_ops = &core2_vpmu_ops;
#5 lore raw

Re: [PATCH 1/2] x86/Intel: Provide comments for which model is what.

In reply to Konrad Rzeszutek Wilk
Quoted 9 lines · Konrad Rzeszutek Wilk
Quoted 6 lines · Tim Deegan

Review

Quoted 2 lines · Konrad Rzeszutek Wilk
(quoted diff) +2 -0
+        case 15: /* original 65 nm celeron/pentium/core2/xeon, "Merom"/"Conroe" */
+        case 23: /* current 45 nm celeron/core2/xeon "Penryn"/"Wolfdale" */

No opinion about the patch in general, but it might be better not to say "current" here, at least without attaching a date.

OK. How about this:

Looks good to me, though I haven't checked the translations are correct. I guess you'll need an ack from Jun or Eddie.

Also CC'ing Dietmar Hahn, who's been working on vpmu most recently.

Tim.

Quoted 45 lines

commit 7de84d0668df18977ebc9c299d6562676e76dbd5

Author: Konrad Rzeszutek Wilk <[email protected]>
Date:   Fri Mar 1 09:21:35 2013 -0500

x86/Intel: Provide comments for which model is what.

[v1: Tim suggested to remove 'current' from the comments]
xen/arch/x86/hvm/vmx/vpmu_core2.c +10 -10
index 2cef2d6..5d22a70 100644
@@ -738,16 +738,16 @@ int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags)
     {
         switch ( cpu_model )
         {
-        case 15:
-        case 23:
-        case 26:
-        case 29:
-        case 42:
-        case 45:
-        case 46:
-        case 47:
-        case 58:
-        case 62:
+        case 15: /* original 65 nm celeron/pentium/core2/xeon, "Merom"/"Conroe" */
+        case 23: /* 45 nm celeron/core2/xeon "Penryn"/"Wolfdale" */
+        case 26: /* 45 nm nehalem, "Bloomfield" */
+        case 29: /* six-core 45 nm xeon "Dunnington" */
+        case 42: /* SandyBridge */
+        case 45: /* SandyBridge, "Romely-EP" */
+        case 46: /* 45 nm nehalem-ex, "Beckton" */
+        case 47: /* 32 nm Xeon E7 */
+        case 58: /* IvyBridge */
+        case 62: /* IvyBridge EP */
             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

#6 lore raw

PATCH 2/2 x86/Intel: Add missing Merom, Westmere, and Nehelem models.

In reply to Konrad Rzeszutek Wilk

Mainly 22 (Merom-L); 30 (Nehelem); and 37, 44 (Westmere).

Moving the 22 to be with the rest of the Nehelem models.

---
 xen/arch/x86/hvm/vmx/vpmu_core2.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
xen/arch/x86/hvm/vmx/vpmu_core2.c +12 -1
index 6511605..3791be9 100644
@@ -738,14 +738,25 @@ int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags)
     {
         switch ( cpu_model )
         {
+        /* Core2: */
         case 15: /* original 65 nm celeron/pentium/core2/xeon, "Merom"/"Conroe" */
+        case 22: /* single-core 65 nm celeron/core2solo "Merom-L"/"Conroe-L" */
         case 23: /* current 45 nm celeron/core2/xeon "Penryn"/"Wolfdale" */
-        case 26: /* 45 nm nehalem, "Bloomfield" */
         case 29: /* six-core 45 nm xeon "Dunnington" */
+
         case 42: /* SandyBridge */
         case 45: /* SandyBridge, "Romely-EP" */
+
+        /* Nehelem: */
+        case 26: /* 45 nm nehalem, "Bloomfield" */
+        case 30: /* 45 nm nehalem, "Lynnfield" */
         case 46: /* 45 nm nehalem-ex, "Beckton" */
+
+        /* Westmere: */
+        case 37: /* 32 nm nehalem, "Clarkdale" */
+        case 44: /* 32 nm nehalem, "Gulftown" */
         case 47: /* 32 nm Xeon E7 */
+
         case 58: /* IvyBridge */
         case 62: /* IvyBridge EP */
             ret = core2_vpmu_initialise(v, vpmu_flags);
Signature · 1 line
1.8.0.2
#7 lore raw

Re: [PATCH 2/2] x86/Intel: Add missing Merom, Westmere, and Nehelem models.

Quoted 1 line · Konrad Rzeszutek Wilk
          case 45: /* SandyBridge, "Romely-EP" */

S/Romely/Romley

#8 lore raw

Re: [PATCH 2/2] x86/Intel: Add missing Merom, Westmere, and Nehelem models.

In reply to Konrad Rzeszutek Wilk
Quoted 2 lines
Quoted 1 line
Quoted 1 line · Konrad Rzeszutek Wilk

Mainly 22 (Merom-L); 30 (Nehelem); and 37, 44 (Westmere).

Assuming Intel confirms this, I'm fine with adding those.

Quoted 7 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +1 -0
@@ -738,14 +738,25 @@ int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags)
     {
         switch ( cpu_model )
         {
+        /* Core2: */

xen/arch/x86/hvm/vmx/vpmu_core2.c int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags) · line 750

Quoted 10 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +4 -1
         case 15: /* original 65 nm celeron/pentium/core2/xeon, "Merom"/"Conroe" */
+        case 22: /* single-core 65 nm celeron/core2solo "Merom-L"/"Conroe-L" */
         case 23: /* current 45 nm celeron/core2/xeon "Penryn"/"Wolfdale" */
-        case 26: /* 45 nm nehalem, "Bloomfield" */
         case 29: /* six-core 45 nm xeon "Dunnington" */
+
         case 42: /* SandyBridge */
         case 45: /* SandyBridge, "Romely-EP" */
+
+        /* Nehelem: */

Nehalem

xen/arch/x86/hvm/vmx/vpmu_core2.c int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags) · line 762

Quoted 12 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +7 -0
+        case 26: /* 45 nm nehalem, "Bloomfield" */
+        case 30: /* 45 nm nehalem, "Lynnfield" */
         case 46: /* 45 nm nehalem-ex, "Beckton" */
+
+        /* Westmere: */
+        case 37: /* 32 nm nehalem, "Clarkdale" */
+        case 44: /* 32 nm nehalem, "Gulftown" */
         case 47: /* 32 nm Xeon E7 */
+
         case 58: /* IvyBridge */
         case 62: /* IvyBridge EP */
             ret = core2_vpmu_initialise(v, vpmu_flags);

I guess the main reason these weren't here is that no-one actively tested the code on them. Fujitsu has been completing this list as they ran into systems missing here yet they were able to test on...

Jan

#9 lore raw

Re: [PATCH 2/2] x86/Intel: Add missing Merom, Westmere, and Nehelem models.

Quoted 25 lines · Jan Beulich
Quoted 2 lines
Quoted 1 line
Quoted 1 line · Konrad Rzeszutek Wilk

Mainly 22 (Merom-L); 30 (Nehelem); and 37, 44 (Westmere).

Assuming Intel confirms this, I'm fine with adding those.

Quoted 7 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +1 -0
@@ -738,14 +738,25 @@ int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags)
     {
         switch ( cpu_model )
         {
+        /* Core2: */

xen/arch/x86/hvm/vmx/vpmu_core2.c int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags) · line 750

Quoted 10 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +4 -1
         case 15: /* original 65 nm celeron/pentium/core2/xeon, "Merom"/"Conroe" */
+        case 22: /* single-core 65 nm celeron/core2solo "Merom-L"/"Conroe-L" */
         case 23: /* current 45 nm celeron/core2/xeon "Penryn"/"Wolfdale" */
-        case 26: /* 45 nm nehalem, "Bloomfield" */
         case 29: /* six-core 45 nm xeon "Dunnington" */
+
         case 42: /* SandyBridge */
         case 45: /* SandyBridge, "Romely-EP" */
+
+        /* Nehelem: */

Nehalem

Quoted 16 lines

xen/arch/x86/hvm/vmx/vpmu_core2.c int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags) · line 762

Quoted 12 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +7 -0
+        case 26: /* 45 nm nehalem, "Bloomfield" */
+        case 30: /* 45 nm nehalem, "Lynnfield" */
         case 46: /* 45 nm nehalem-ex, "Beckton" */
+
+        /* Westmere: */
+        case 37: /* 32 nm nehalem, "Clarkdale" */
+        case 44: /* 32 nm nehalem, "Gulftown" */
         case 47: /* 32 nm Xeon E7 */
+
         case 58: /* IvyBridge */
         case 62: /* IvyBridge EP */
             ret = core2_vpmu_initialise(v, vpmu_flags);

I guess the main reason these weren't here is that no-one actively tested the code on them. Fujitsu has been completing this list as they ran into systems missing here yet they were able to test on...

The 44 has been definitly tested by me.

Quoted 9 lines

Jan

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

#10 lore raw

Re: [PATCH 2/2] x86/Intel: Add missing Merom, Westmere, and Nehelem models.

In reply to Jan Beulich
Quoted 4 lines · Jan Beulich
Quoted 2 lines
Quoted 1 line
Quoted 1 line · Konrad Rzeszutek Wilk

Mainly 22 (Merom-L); 30 (Nehelem); and 37, 44 (Westmere).

Assuming Intel confirms this, I'm fine with adding those.

The following URL, for example, has comprehensive information.
http://software.intel.com/en-us/articles/intel-architecture-and-processor-identification-with-cpuid-model-and-family-numbers

BTW, probably we should be using hexadecimal in the code?

Quoted 12 lines
Quoted 12 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +2 -1
@@ -738,14 +738,25 @@ int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags)
     {
         switch ( cpu_model )
         {
+        /* Core2: */
         case 15: /* original 65 nm celeron/pentium/core2/xeon, "Merom"/"Conroe" */
+        case 22: /* single-core 65 nm celeron/core2solo "Merom-L"/"Conroe-L" */
         case 23: /* current 45 nm celeron/core2/xeon "Penryn"/"Wolfdale" */
-        case 26: /* 45 nm nehalem, "Bloomfield" */
Quoted 11 lines

xen/arch/x86/hvm/vmx/vpmu_core2.c int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags) · line 750

Quoted 6 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +3 -0
         case 29: /* six-core 45 nm xeon "Dunnington" */
+
         case 42: /* SandyBridge */
         case 45: /* SandyBridge, "Romely-EP" */
+
+        /* Nehelem: */

Nehalem

Quoted 2 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +2 -0
+        case 26: /* 45 nm nehalem, "Bloomfield" */
+        case 30: /* 45 nm nehalem, "Lynnfield" */

+ Clarksfield, Jasper Forest

Quoted 4 lines

xen/arch/x86/hvm/vmx/vpmu_core2.c int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags) · line 756

Quoted 4 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +3 -0
         case 46: /* 45 nm nehalem-ex, "Beckton" */
+
+        /* Westmere: */
+        case 37: /* 32 nm nehalem, "Clarkdale" */

+ Arrandale

Quoted 1 line

xen/arch/x86/hvm/vmx/vpmu_core2.c int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags) · line 757

Quoted 1 line
xen/arch/x86/hvm/vmx/vpmu_core2.c +1 -0
+        case 44: /* 32 nm nehalem, "Gulftown" */

+ case 47: /* Westmere-EX */

Quoted 12 lines

xen/arch/x86/hvm/vmx/vpmu_core2.c int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags) · line 762

Quoted 5 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +1 -0
         case 47: /* 32 nm Xeon E7 */
+
         case 58: /* IvyBridge */
         case 62: /* IvyBridge EP */
             ret = core2_vpmu_initialise(v, vpmu_flags);

I guess the main reason these weren't here is that no-one actively tested the code on them. Fujitsu has been completing this list as they ran into systems missing here yet they were able to test on...

Jan

Signature · 2 lines
Jun
Intel Open Source Technology Center
#11 lore raw

Re: [PATCH 2/2] x86/Intel: Add missing Merom, Westmere, and Nehelem models.

In reply to Jan Beulich

Am Freitag 01 März 2013, 15:53:11 schrieb Jan Beulich:

Quoted 25 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line · Konrad Rzeszutek Wilk

Mainly 22 (Merom-L); 30 (Nehelem); and 37, 44 (Westmere).

Assuming Intel confirms this, I'm fine with adding those.

Quoted 7 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +1 -0
@@ -738,14 +738,25 @@ int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags)
     {
         switch ( cpu_model )
         {
+        /* Core2: */

xen/arch/x86/hvm/vmx/vpmu_core2.c int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags) · line 750

Quoted 10 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +4 -1
         case 15: /* original 65 nm celeron/pentium/core2/xeon, "Merom"/"Conroe" */
+        case 22: /* single-core 65 nm celeron/core2solo "Merom-L"/"Conroe-L" */
         case 23: /* current 45 nm celeron/core2/xeon "Penryn"/"Wolfdale" */
-        case 26: /* 45 nm nehalem, "Bloomfield" */
         case 29: /* six-core 45 nm xeon "Dunnington" */
+
         case 42: /* SandyBridge */
         case 45: /* SandyBridge, "Romely-EP" */
+
+        /* Nehelem: */

Nehalem

Quoted 16 lines

xen/arch/x86/hvm/vmx/vpmu_core2.c int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags) · line 762

Quoted 12 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +7 -0
+        case 26: /* 45 nm nehalem, "Bloomfield" */
+        case 30: /* 45 nm nehalem, "Lynnfield" */
         case 46: /* 45 nm nehalem-ex, "Beckton" */
+
+        /* Westmere: */
+        case 37: /* 32 nm nehalem, "Clarkdale" */
+        case 44: /* 32 nm nehalem, "Gulftown" */
         case 47: /* 32 nm Xeon E7 */
+
         case 58: /* IvyBridge */
         case 62: /* IvyBridge EP */
             ret = core2_vpmu_initialise(v, vpmu_flags);

I guess the main reason these weren't here is that no-one actively tested the code on them. Fujitsu has been completing this list as they ran into systems missing here yet they were able to test on...

Yes we did some extensions but only with processors we were able to test because we ran into trouble with some of these.

Dietmar.

Company details: http://ts.fujitsu.com/imprint.html

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

#12 lore raw

Re: [PATCH 2/2] x86/Intel: Add missing Merom, Westmere, and Nehelem models.

Quoted 43 lines · Dietmar Hahn

Am Freitag 01 März 2013, 15:53:11 schrieb Jan Beulich:

Quoted 25 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line · Konrad Rzeszutek Wilk

Mainly 22 (Merom-L); 30 (Nehelem); and 37, 44 (Westmere).

Assuming Intel confirms this, I'm fine with adding those.

Quoted 7 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +1 -0
@@ -738,14 +738,25 @@ int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags)
     {
         switch ( cpu_model )
         {
+        /* Core2: */

xen/arch/x86/hvm/vmx/vpmu_core2.c int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags) · line 750

Quoted 10 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +4 -1
         case 15: /* original 65 nm celeron/pentium/core2/xeon, "Merom"/"Conroe" */
+        case 22: /* single-core 65 nm celeron/core2solo "Merom-L"/"Conroe-L" */
         case 23: /* current 45 nm celeron/core2/xeon "Penryn"/"Wolfdale" */
-        case 26: /* 45 nm nehalem, "Bloomfield" */
         case 29: /* six-core 45 nm xeon "Dunnington" */
+
         case 42: /* SandyBridge */
         case 45: /* SandyBridge, "Romely-EP" */
+
+        /* Nehelem: */

Nehalem

Quoted 16 lines

xen/arch/x86/hvm/vmx/vpmu_core2.c int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags) · line 762

Quoted 12 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +7 -0
+        case 26: /* 45 nm nehalem, "Bloomfield" */
+        case 30: /* 45 nm nehalem, "Lynnfield" */
         case 46: /* 45 nm nehalem-ex, "Beckton" */
+
+        /* Westmere: */
+        case 37: /* 32 nm nehalem, "Clarkdale" */
+        case 44: /* 32 nm nehalem, "Gulftown" */
         case 47: /* 32 nm Xeon E7 */
+
         case 58: /* IvyBridge */
         case 62: /* IvyBridge EP */
             ret = core2_vpmu_initialise(v, vpmu_flags);

I guess the main reason these weren't here is that no-one actively tested the code on them. Fujitsu has been completing this list as they ran into systems missing here yet they were able to test on...

Quoted 2 lines

Yes we did some extensions but only with processors we were able to test because we ran into trouble with some of these.

What were those problems? Could you report them on xen-devel please?

#13 lore raw

Re: [PATCH 2/2] x86/Intel: Add missing Merom, Westmere, and Nehelem models.

Am Montag 04 März 2013, 13:01:51 schrieb Konrad Rzeszutek Wilk:

Quoted 44 lines · Dietmar Hahn
Quoted 43 lines

Am Freitag 01 März 2013, 15:53:11 schrieb Jan Beulich:

Quoted 41 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line · Konrad Rzeszutek Wilk

Mainly 22 (Merom-L); 30 (Nehelem); and 37, 44 (Westmere).

Assuming Intel confirms this, I'm fine with adding those.

Quoted 7 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +1 -0
@@ -738,14 +738,25 @@ int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags)
     {
         switch ( cpu_model )
         {
+        /* Core2: */

xen/arch/x86/hvm/vmx/vpmu_core2.c int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags) · line 750

Quoted 10 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +4 -1
         case 15: /* original 65 nm celeron/pentium/core2/xeon, "Merom"/"Conroe" */
+        case 22: /* single-core 65 nm celeron/core2solo "Merom-L"/"Conroe-L" */
         case 23: /* current 45 nm celeron/core2/xeon "Penryn"/"Wolfdale" */
-        case 26: /* 45 nm nehalem, "Bloomfield" */
         case 29: /* six-core 45 nm xeon "Dunnington" */
+
         case 42: /* SandyBridge */
         case 45: /* SandyBridge, "Romely-EP" */
+
+        /* Nehelem: */

Nehalem

xen/arch/x86/hvm/vmx/vpmu_core2.c int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags) · line 762

Quoted 12 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +7 -0
+        case 26: /* 45 nm nehalem, "Bloomfield" */
+        case 30: /* 45 nm nehalem, "Lynnfield" */
         case 46: /* 45 nm nehalem-ex, "Beckton" */
+
+        /* Westmere: */
+        case 37: /* 32 nm nehalem, "Clarkdale" */
+        case 44: /* 32 nm nehalem, "Gulftown" */
         case 47: /* 32 nm Xeon E7 */
+
         case 58: /* IvyBridge */
         case 62: /* IvyBridge EP */
             ret = core2_vpmu_initialise(v, vpmu_flags);

I guess the main reason these weren't here is that no-one actively tested the code on them. Fujitsu has been completing this list as they ran into systems missing here yet they were able to test on...

Quoted 4 lines
Quoted 2 lines

Yes we did some extensions but only with processors we were able to test because we ran into trouble with some of these.

What were those problems? Could you report them on xen-devel please?

This is old stuff:
http://lists.xen.org/archives/html/xen-devel/2010-11/msg01157.html

Dietmar.

Signature · 1 line
Company details: http://ts.fujitsu.com/imprint.html
#14 lore raw

Re: [PATCH 2/2] x86/Intel: Add missing Merom, Westmere, and Nehelem models.

Quoted 45 lines · Dietmar Hahn

Am Montag 04 März 2013, 13:01:51 schrieb Konrad Rzeszutek Wilk:

Quoted 44 lines · Dietmar Hahn
Quoted 43 lines

Am Freitag 01 März 2013, 15:53:11 schrieb Jan Beulich:

Quoted 41 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line · Konrad Rzeszutek Wilk

Mainly 22 (Merom-L); 30 (Nehelem); and 37, 44 (Westmere).

Assuming Intel confirms this, I'm fine with adding those.

Quoted 7 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +1 -0
@@ -738,14 +738,25 @@ int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags)
     {
         switch ( cpu_model )
         {
+        /* Core2: */

xen/arch/x86/hvm/vmx/vpmu_core2.c int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags) · line 750

Quoted 10 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +4 -1
         case 15: /* original 65 nm celeron/pentium/core2/xeon, "Merom"/"Conroe" */
+        case 22: /* single-core 65 nm celeron/core2solo "Merom-L"/"Conroe-L" */
         case 23: /* current 45 nm celeron/core2/xeon "Penryn"/"Wolfdale" */
-        case 26: /* 45 nm nehalem, "Bloomfield" */
         case 29: /* six-core 45 nm xeon "Dunnington" */
+
         case 42: /* SandyBridge */
         case 45: /* SandyBridge, "Romely-EP" */
+
+        /* Nehelem: */

Nehalem

xen/arch/x86/hvm/vmx/vpmu_core2.c int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags) · line 762

Quoted 12 lines
xen/arch/x86/hvm/vmx/vpmu_core2.c +7 -0
+        case 26: /* 45 nm nehalem, "Bloomfield" */
+        case 30: /* 45 nm nehalem, "Lynnfield" */
         case 46: /* 45 nm nehalem-ex, "Beckton" */
+
+        /* Westmere: */
+        case 37: /* 32 nm nehalem, "Clarkdale" */
+        case 44: /* 32 nm nehalem, "Gulftown" */
         case 47: /* 32 nm Xeon E7 */
+
         case 58: /* IvyBridge */
         case 62: /* IvyBridge EP */
             ret = core2_vpmu_initialise(v, vpmu_flags);

I guess the main reason these weren't here is that no-one actively tested the code on them. Fujitsu has been completing this list as they ran into systems missing here yet they were able to test on...

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Yes we did some extensions but only with processors we were able to test because we ran into trouble with some of these.

What were those problems? Could you report them on xen-devel please?

This is old stuff:
http://lists.xen.org/archives/html/xen-devel/2010-11/msg01157.html

And it looks like it is part of the Xen tree now?

commit 3ed6a063d2a5f6197306b030e8c27c36d5f31aa1

Author: Keir Fraser <[email protected]>
Date:   Mon Nov 22 19:16:34 2010 +0000

x86 hvm: Fix VPMU issue on Nehalem cpus

Fix an issue on Nehalem cpus where performance counter overflows may lead to endless interrupt loops on this cpu.

Quoted 5 lines

Dietmar.

Signature · 1 line
Company details: http://ts.fujitsu.com/imprint.html