2009-04-07 22:21:55

by Robert Schwebel

[permalink] [raw]
Subject: Identifying Intel Atom Z500PT

Does anyone have an idea how to properly identify an Atom Z500PT cpu?
The get_model_name() mechanics in arch/x86/kernel/cpu/common.c uses
cpuid() to find out about the brand id, which is "Genuine Intel(R) CPU"
with family 6 and model 28.

Below is the output of /proc/cpuinfo on that box:

root@phyCORE:~ cat /proc/cpuinfo | grep model | head -n 2
model : 28
model name : Genuine Intel(R) CPU @ 1.10GHz
root@phyCORE:~ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Genuine Intel(R) CPU @ 1.10GHz
stepping : 2
cpu MHz : 416.000
cache size : 512 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl vmx est tm2 ssse3 xtpr pdcm lahf_lm tpr_shadow vnmi flexpriority
bogomips : 2194.69
clflush size : 64
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Genuine Intel(R) CPU @ 1.10GHz
stepping : 2
cpu MHz : 416.000
cache size : 512 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 1
initial apicid : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl vmx est tm2 ssse3 xtpr pdcm lahf_lm tpr_shadow vnmi flexpriority
bogomips : 2194.51
clflush size : 64
power management:

--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |


2009-04-08 00:56:30

by Thomas Gleixner

[permalink] [raw]
Subject: Re: Identifying Intel Atom Z500PT

On Wed, 8 Apr 2009, Robert Schwebel wrote:

> Does anyone have an idea how to properly identify an Atom Z500PT cpu?
> The get_model_name() mechanics in arch/x86/kernel/cpu/common.c uses
> cpuid() to find out about the brand id, which is "Genuine Intel(R) CPU"
> with family 6 and model 28.

AFAICT cpuid() is the way to get the model name. If it returns
"Genuine Intel(R) CPU" then the kernel merily prints that info.

Consult your board vendor / BIOS tinkerer^Wdeveloper

Thanks,

tglx

2009-04-08 06:57:17

by Robert Schwebel

[permalink] [raw]
Subject: Re: Identifying Intel Atom Z500PT

On Wed, Apr 08, 2009 at 02:56:04AM +0200, Thomas Gleixner wrote:
> > Does anyone have an idea how to properly identify an Atom Z500PT cpu?
> > The get_model_name() mechanics in arch/x86/kernel/cpu/common.c uses
> > cpuid() to find out about the brand id, which is "Genuine Intel(R) CPU"
> > with family 6 and model 28.
>
> AFAICT cpuid() is the way to get the model name. If it returns
> "Genuine Intel(R) CPU" then the kernel merily prints that info.
>
> Consult your board vendor / BIOS tinkerer^Wdeveloper

Ah, that comes from the BIOS, good to know. Do you know any document
that shows what's the intended string for a Z500PT? I searched the intel
site but didn't find anything useful.

rsc
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |

2009-04-08 17:46:27

by Michael Riepe

[permalink] [raw]
Subject: Re: Identifying Intel Atom Z500PT

Hi!

Robert Schwebel wrote:
> Does anyone have an idea how to properly identify an Atom Z500PT cpu?
> The get_model_name() mechanics in arch/x86/kernel/cpu/common.c uses
> cpuid() to find out about the brand id, which is "Genuine Intel(R) CPU"
> with family 6 and model 28.

Family 6, model 28, stepping 2 seems to be common to all current Atoms
-- my 330 reports the same. There are some flags, however, that
currently only appear in the Z series, e.g. vmx is not available on the
230/330/N270. To differentiate between the latter, you could look for
64-bit support (which is missing in the N270) and the number of cores.
Besides that, the 230/330 models lack the speedstep feature.

I don't know if there's a way to distinguish a -P model from a -PT
model. But from a software point of view, they should be identical anyway.

> Below is the output of /proc/cpuinfo on that box:
>
> root@phyCORE:~ cat /proc/cpuinfo | grep model | head -n 2
> model : 28
> model name : Genuine Intel(R) CPU @ 1.10GHz

Strange - the 330 reports:

model name : Intel(R) Atom(TM) CPU 330 @ 1.60GHz

(running 2.6.29).

--
Michael "Tired" Riepe <[email protected]>
X-Tired: Each morning I get up I die a little

2009-04-08 18:25:24

by Robert Schwebel

[permalink] [raw]
Subject: Re: Identifying Intel Atom Z500PT

Hi Michael,

On Wed, Apr 08, 2009 at 07:46:11PM +0200, Michael Riepe wrote:
> Robert Schwebel wrote:
> > Does anyone have an idea how to properly identify an Atom Z500PT cpu?
> > The get_model_name() mechanics in arch/x86/kernel/cpu/common.c uses
> > cpuid() to find out about the brand id, which is "Genuine Intel(R) CPU"
> > with family 6 and model 28.
>
> Family 6, model 28, stepping 2 seems to be common to all current Atoms
> -- my 330 reports the same. There are some flags, however, that
> currently only appear in the Z series, e.g. vmx is not available on the
> 230/330/N270. To differentiate between the latter, you could look for
> 64-bit support (which is missing in the N270) and the number of cores.
> Besides that, the 230/330 models lack the speedstep feature.
>
> I don't know if there's a way to distinguish a -P model from a -PT
> model. But from a software point of view, they should be identical anyway.

Yup, should not matter from the software side.

> > Below is the output of /proc/cpuinfo on that box:
> >
> > root@phyCORE:~ cat /proc/cpuinfo | grep model | head -n 2
> > model : 28
> > model name : Genuine Intel(R) CPU @ 1.10GHz
>
> Strange - the 330 reports:
>
> model name : Intel(R) Atom(TM) CPU 330 @ 1.60GHz
>
> (running 2.6.29).

Looks like the model name string comes from the BIOS, I suppose I'll
have to talk to the BIOS guys in order to resolve that issue.

rsc
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |