linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] oprofile: Add Support for Intel CPU Family 6 / Model 29
@ 2010-09-21  7:26 Jiri Olsa
  2010-09-21  8:20 ` Robert Richter
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Jiri Olsa @ 2010-09-21  7:26 UTC (permalink / raw)
  To: robert.richter; +Cc: linux-kernel, oprofile-list, tdm.rhbz, Jiri Olsa

This patch adds CPU type detection for dunnington processor (Family 6 / Model 29)
to be identified as core 2 family cpu type (wikipedia source).

I tested oprofile on Intel(R) Xeon(R) CPU E7440 reporting itself as model 29,
and it runs without an issue.

wbr,
jirka


Signed-off-by: Jiri Olsa <jolsa@redhat.com>
---
 arch/x86/oprofile/nmi_int.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c
index 009b819..f1575c9 100644
--- a/arch/x86/oprofile/nmi_int.c
+++ b/arch/x86/oprofile/nmi_int.c
@@ -674,6 +674,7 @@ static int __init ppro_init(char **cpu_type)
 	case 0x0f:
 	case 0x16:
 	case 0x17:
+	case 0x1d:
 		*cpu_type = "i386/core_2";
 		break;
 	case 0x1a:
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [PATCH] oprofile: Add Support for Intel CPU Family 6 / Model 29
  2010-09-21  7:26 [PATCH] oprofile: Add Support for Intel CPU Family 6 / Model 29 Jiri Olsa
@ 2010-09-21  8:20 ` Robert Richter
  2010-09-21 10:09   ` Andi Kleen
  2010-09-21 10:33 ` Robert Richter
  2010-09-21 11:21 ` [PATCH] oprofile: Add Support for Intel CPU Family 6 / Model 29 Arnd Bergmann
  2 siblings, 1 reply; 11+ messages in thread
From: Robert Richter @ 2010-09-21  8:20 UTC (permalink / raw)
  To: Jiri Olsa, Andi Kleen; +Cc: linux-kernel, oprofile-list, tdm.rhbz

On 21.09.10 03:26:35, Jiri Olsa wrote:
> This patch adds CPU type detection for dunnington processor (Family 6 / Model 29)
> to be identified as core 2 family cpu type (wikipedia source).
> 
> I tested oprofile on Intel(R) Xeon(R) CPU E7440 reporting itself as model 29,
> and it runs without an issue.
> 
> wbr,
> jirka
> 
> 
> Signed-off-by: Jiri Olsa <jolsa@redhat.com>

Andi,

found this spec:

 http://www.intel.com/Assets/en_US/PDF/specupdate/320336.pdf

Please ack.

Thanks,

-Robert

> ---
>  arch/x86/oprofile/nmi_int.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c
> index 009b819..f1575c9 100644
> --- a/arch/x86/oprofile/nmi_int.c
> +++ b/arch/x86/oprofile/nmi_int.c
> @@ -674,6 +674,7 @@ static int __init ppro_init(char **cpu_type)
>  	case 0x0f:
>  	case 0x16:
>  	case 0x17:
> +	case 0x1d:
>  		*cpu_type = "i386/core_2";
>  		break;
>  	case 0x1a:
> -- 
> 1.7.1
> 
> 

-- 
Advanced Micro Devices, Inc.
Operating System Research Center


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] oprofile: Add Support for Intel CPU Family 6 / Model 29
  2010-09-21  8:20 ` Robert Richter
@ 2010-09-21 10:09   ` Andi Kleen
  0 siblings, 0 replies; 11+ messages in thread
From: Andi Kleen @ 2010-09-21 10:09 UTC (permalink / raw)
  To: Robert Richter
  Cc: Jiri Olsa, Andi Kleen, linux-kernel, oprofile-list, tdm.rhbz

> On 21.09.10 03:26:35, Jiri Olsa wrote:
>> This patch adds CPU type detection for dunnington processor (Family 6 /
>> Model 29)
>> to be identified as core 2 family cpu type (wikipedia source).
>>
>> I tested oprofile on Intel(R) Xeon(R) CPU E7440 reporting itself as
>> model 29,
>> and it runs without an issue.
>>
>> wbr,
>> jirka
>>
>>
>> Signed-off-by: Jiri Olsa <jolsa@redhat.com>
>
> Andi,
>
> found this spec:
>
>  http://www.intel.com/Assets/en_US/PDF/specupdate/320336.pdf
>
> Please ack.

Acked-by: Andi Kleen <ak@linux.intel.com>

Thanks,
-Andi


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] oprofile: Add Support for Intel CPU Family 6 / Model 29
  2010-09-21  7:26 [PATCH] oprofile: Add Support for Intel CPU Family 6 / Model 29 Jiri Olsa
  2010-09-21  8:20 ` Robert Richter
@ 2010-09-21 10:33 ` Robert Richter
  2010-09-27  7:39   ` [GIT PULL] oprofile fixes Robert Richter
  2010-09-21 11:21 ` [PATCH] oprofile: Add Support for Intel CPU Family 6 / Model 29 Arnd Bergmann
  2 siblings, 1 reply; 11+ messages in thread
From: Robert Richter @ 2010-09-21 10:33 UTC (permalink / raw)
  To: Jiri Olsa, Ingo Molnar; +Cc: linux-kernel, oprofile-list, tdm.rhbz

On 21.09.10 03:26:35, Jiri Olsa wrote:
> This patch adds CPU type detection for dunnington processor (Family 6 / Model 29)
> to be identified as core 2 family cpu type (wikipedia source).
> 
> I tested oprofile on Intel(R) Xeon(R) CPU E7440 reporting itself as model 29,
> and it runs without an issue.
> 
> wbr,
> jirka
> 
> 
> Signed-off-by: Jiri Olsa <jolsa@redhat.com>

Applied to oprofile/urgent. Thanks Jiri.

Ingo,

please pull for tip/perf/urgent:

 git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile.git urgent

This should be ff-only, pull request see below.

Thanks,

-Robert

> ---
>  arch/x86/oprofile/nmi_int.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c
> index 009b819..f1575c9 100644
> --- a/arch/x86/oprofile/nmi_int.c
> +++ b/arch/x86/oprofile/nmi_int.c
> @@ -674,6 +674,7 @@ static int __init ppro_init(char **cpu_type)
>  	case 0x0f:
>  	case 0x16:
>  	case 0x17:
> +	case 0x1d:
>  		*cpu_type = "i386/core_2";
>  		break;
>  	case 0x1a:
> -- 
> 1.7.1
> 
> 

The following changes since commit 068e35eee9ef98eb4cab55181977e24995d273be:

  hw breakpoints: Fix pid namespace bug (2010-09-17 04:42:59 +0200)

are available in the git repository at:
  git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile.git urgent

Jiri Olsa (1):
      oprofile: Add Support for Intel CPU Family 6 / Model 29

 arch/x86/oprofile/nmi_int.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

-- 
Advanced Micro Devices, Inc.
Operating System Research Center


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] oprofile: Add Support for Intel CPU Family 6 / Model 29
  2010-09-21  7:26 [PATCH] oprofile: Add Support for Intel CPU Family 6 / Model 29 Jiri Olsa
  2010-09-21  8:20 ` Robert Richter
  2010-09-21 10:33 ` Robert Richter
@ 2010-09-21 11:21 ` Arnd Bergmann
  2010-09-21 14:13   ` Robert Richter
  2 siblings, 1 reply; 11+ messages in thread
From: Arnd Bergmann @ 2010-09-21 11:21 UTC (permalink / raw)
  To: Jiri Olsa; +Cc: robert.richter, linux-kernel, oprofile-list, tdm.rhbz

On Tuesday 21 September 2010, Jiri Olsa wrote:
> --- a/arch/x86/oprofile/nmi_int.c
> +++ b/arch/x86/oprofile/nmi_int.c
> @@ -674,6 +674,7 @@ static int __init ppro_init(char **cpu_type)
>         case 0x0f:
>         case 0x16:
>         case 0x17:
> +       case 0x1d:
>                 *cpu_type = "i386/core_2";
>                 break;
>         case 0x1a:

Just curious about the other missing IDs: this now supports all Core
microarchitecture CPUs, but only some Nehalem/Westmere ones.

There is support for 0x1a (Bloomfield/Gainestown) and 0x2e (Beckton), but
not for the much more common 0x1e (Lynnfield/Clarksfield/Jasper Forest),
0x25 (Clarkdale/Arrandale) and 0x26 (Gulftown/Westmere-EP).

Shouldn't those be added as well?

When you're there, it probably also wouldn't hurt to fill in the blanks
of some of the older CPUs like Tolopai (0x15) and newer Atoms (0x1c).

	Arnd

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] oprofile: Add Support for Intel CPU Family 6 / Model 29
  2010-09-21 11:21 ` [PATCH] oprofile: Add Support for Intel CPU Family 6 / Model 29 Arnd Bergmann
@ 2010-09-21 14:13   ` Robert Richter
  2010-09-21 14:38     ` Andi Kleen
  0 siblings, 1 reply; 11+ messages in thread
From: Robert Richter @ 2010-09-21 14:13 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Jiri Olsa, linux-kernel, oprofile-list, tdm.rhbz, Andi Kleen

On 21.09.10 07:21:05, Arnd Bergmann wrote:
> Just curious about the other missing IDs: this now supports all Core
> microarchitecture CPUs, but only some Nehalem/Westmere ones.
> 
> There is support for 0x1a (Bloomfield/Gainestown) and 0x2e (Beckton), but
> not for the much more common 0x1e (Lynnfield/Clarksfield/Jasper Forest),
> 0x25 (Clarkdale/Arrandale) and 0x26 (Gulftown/Westmere-EP).
> 
> Shouldn't those be added as well?
> 
> When you're there, it probably also wouldn't hurt to fill in the blanks
> of some of the older CPUs like Tolopai (0x15) and newer Atoms (0x1c).

Yes, would be nice to have also an update for the remaining
unsupported models. Andi?

Thanks,

-Robert

-- 
Advanced Micro Devices, Inc.
Operating System Research Center


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] oprofile: Add Support for Intel CPU Family 6 / Model 29
  2010-09-21 14:13   ` Robert Richter
@ 2010-09-21 14:38     ` Andi Kleen
  2010-09-22  7:26       ` Robert Richter
  0 siblings, 1 reply; 11+ messages in thread
From: Andi Kleen @ 2010-09-21 14:38 UTC (permalink / raw)
  To: Robert Richter
  Cc: Arnd Bergmann, Jiri Olsa, linux-kernel, oprofile-list, tdm.rhbz,
	Andi Kleen

> On 21.09.10 07:21:05, Arnd Bergmann wrote:
>> Just curious about the other missing IDs: this now supports all Core
>> microarchitecture CPUs, but only some Nehalem/Westmere ones.
>>
>> There is support for 0x1a (Bloomfield/Gainestown) and 0x2e (Beckton),
>> but
>> not for the much more common 0x1e (Lynnfield/Clarksfield/Jasper Forest),
>> 0x25 (Clarkdale/Arrandale) and 0x26 (Gulftown/Westmere-EP).
>>
>> Shouldn't those be added as well?

Westmere I still hold off because the oprofile user land
doesn't have the correct event list yet.

BTW I was thinking in this case to only add the model
numbers to the user code and just let it handle arch_perfmon
from the kernel.

This should work currently fine and avoid the problem
that you need to update user land and kernel in parallel
for a new cpu type.

>>
>> When you're there, it probably also wouldn't hurt to fill in the blanks
>> of some of the older CPUs like Tolopai (0x15) and newer Atoms (0x1c).
>
> Yes, would be nice to have also an update for the remaining
> unsupported models. Andi?

Yes would make sense. I'll ask around if there is a consolidated
list somewhere that could be used as a base.

-Andi


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] oprofile: Add Support for Intel CPU Family 6 / Model 29
  2010-09-21 14:38     ` Andi Kleen
@ 2010-09-22  7:26       ` Robert Richter
  2010-09-22  8:17         ` Arnd Bergmann
  0 siblings, 1 reply; 11+ messages in thread
From: Robert Richter @ 2010-09-22  7:26 UTC (permalink / raw)
  To: Andi Kleen
  Cc: Arnd Bergmann, Jiri Olsa, linux-kernel, oprofile-list, tdm.rhbz

On 21.09.10 10:38:04, Andi Kleen wrote:
> > On 21.09.10 07:21:05, Arnd Bergmann wrote:
> >> Just curious about the other missing IDs: this now supports all Core
> >> microarchitecture CPUs, but only some Nehalem/Westmere ones.
> >>
> >> There is support for 0x1a (Bloomfield/Gainestown) and 0x2e (Beckton),
> >> but
> >> not for the much more common 0x1e (Lynnfield/Clarksfield/Jasper Forest),
> >> 0x25 (Clarkdale/Arrandale) and 0x26 (Gulftown/Westmere-EP).

I also found reports for 0x2c (Gulftown/Westmere-EP?):

vendor_id       : GenuineIntel
cpu family      : 6
model           : 44
model name      : Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz

-Robert

> >>
> >> Shouldn't those be added as well?
> 
> Westmere I still hold off because the oprofile user land
> doesn't have the correct event list yet.
> 
> BTW I was thinking in this case to only add the model
> numbers to the user code and just let it handle arch_perfmon
> from the kernel.
> 
> This should work currently fine and avoid the problem
> that you need to update user land and kernel in parallel
> for a new cpu type.
> 
> >>
> >> When you're there, it probably also wouldn't hurt to fill in the blanks
> >> of some of the older CPUs like Tolopai (0x15) and newer Atoms (0x1c).
> >
> > Yes, would be nice to have also an update for the remaining
> > unsupported models. Andi?
> 
> Yes would make sense. I'll ask around if there is a consolidated
> list somewhere that could be used as a base.
> 
> -Andi
> 
> 

-- 
Advanced Micro Devices, Inc.
Operating System Research Center


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] oprofile: Add Support for Intel CPU Family 6 / Model 29
  2010-09-22  7:26       ` Robert Richter
@ 2010-09-22  8:17         ` Arnd Bergmann
  0 siblings, 0 replies; 11+ messages in thread
From: Arnd Bergmann @ 2010-09-22  8:17 UTC (permalink / raw)
  To: Robert Richter
  Cc: Andi Kleen, Jiri Olsa, linux-kernel, oprofile-list, tdm.rhbz

On Wednesday 22 September 2010, Robert Richter wrote:
> On 21.09.10 10:38:04, Andi Kleen wrote:
> > > On 21.09.10 07:21:05, Arnd Bergmann wrote:
> > >> Just curious about the other missing IDs: this now supports all Core
> > >> microarchitecture CPUs, but only some Nehalem/Westmere ones.
> > >>
> > >> There is support for 0x1a (Bloomfield/Gainestown) and 0x2e (Beckton),
> > >> but
> > >> not for the much more common 0x1e (Lynnfield/Clarksfield/Jasper Forest),
> > >> 0x25 (Clarkdale/Arrandale) and 0x26 (Gulftown/Westmere-EP).
> 
> I also found reports for 0x2c (Gulftown/Westmere-EP?):
> 
> vendor_id       : GenuineIntel
> cpu family      : 6
> model           : 44
> model name      : Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz
> 

Right, that seems to be the correct one, I must have been looking in the
wrong place.

	Arnd

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [GIT PULL] oprofile fixes
  2010-09-21 10:33 ` Robert Richter
@ 2010-09-27  7:39   ` Robert Richter
  2010-09-27  7:50     ` Ingo Molnar
  0 siblings, 1 reply; 11+ messages in thread
From: Robert Richter @ 2010-09-27  7:39 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: linux-kernel, oprofile-list

Ingo,

please pull for tip/perf/urgent:

 git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile.git urgent

Thanks,

-Robert

The following changes since commit 068e35eee9ef98eb4cab55181977e24995d273be:

  hw breakpoints: Fix pid namespace bug (2010-09-17 04:42:59 +0200)

are available in the git repository at:
  git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile.git urgent

Jiri Olsa (1):
      oprofile: Add Support for Intel CPU Family 6 / Model 29

 arch/x86/oprofile/nmi_int.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

-- 
Advanced Micro Devices, Inc.
Operating System Research Center


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [GIT PULL] oprofile fixes
  2010-09-27  7:39   ` [GIT PULL] oprofile fixes Robert Richter
@ 2010-09-27  7:50     ` Ingo Molnar
  0 siblings, 0 replies; 11+ messages in thread
From: Ingo Molnar @ 2010-09-27  7:50 UTC (permalink / raw)
  To: Robert Richter; +Cc: linux-kernel, oprofile-list


* Robert Richter <robert.richter@amd.com> wrote:

> Ingo,
> 
> please pull for tip/perf/urgent:
> 
>  git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile.git urgent
> 
> Thanks,
> 
> -Robert
> 
> The following changes since commit 068e35eee9ef98eb4cab55181977e24995d273be:
> 
>   hw breakpoints: Fix pid namespace bug (2010-09-17 04:42:59 +0200)
> 
> are available in the git repository at:
>   git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile.git urgent
> 
> Jiri Olsa (1):
>       oprofile: Add Support for Intel CPU Family 6 / Model 29
> 
>  arch/x86/oprofile/nmi_int.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)

Pulled, thanks Robert!

	Ingo

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-09-27  7:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-21  7:26 [PATCH] oprofile: Add Support for Intel CPU Family 6 / Model 29 Jiri Olsa
2010-09-21  8:20 ` Robert Richter
2010-09-21 10:09   ` Andi Kleen
2010-09-21 10:33 ` Robert Richter
2010-09-27  7:39   ` [GIT PULL] oprofile fixes Robert Richter
2010-09-27  7:50     ` Ingo Molnar
2010-09-21 11:21 ` [PATCH] oprofile: Add Support for Intel CPU Family 6 / Model 29 Arnd Bergmann
2010-09-21 14:13   ` Robert Richter
2010-09-21 14:38     ` Andi Kleen
2010-09-22  7:26       ` Robert Richter
2010-09-22  8:17         ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).