Skip to content

Commit

Permalink
Add all current Atom cpuids
Browse files Browse the repository at this point in the history
List of model numbers from Table 35-1 volume 3C of the January 2015
edition of the Intel Software Developers Manual.

No model specific decoding for any of these, so bundle them all
together as "atom".

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
  • Loading branch information
aegl authored and Andi Kleen committed Mar 12, 2015
1 parent f8e57bc commit 24c8e4c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions intel.c
Expand Up @@ -74,6 +74,11 @@ enum cputype select_intel_cputype(int family, int model)
return CPU_HASWELL_EPEX;
else if (model == 0x3d)
return CPU_BROADWELL;
else if (model == 0x1c || model == 0x26 || model == 0x27 ||
model == 0x35 || model == 0x36 || model == 0x36 ||
model == 0x37 || model == 0x4a || model == 0x4c ||
model == 0x4d || model == 0x5a || model == 0x5d)
return CPU_ATOM;
if (model > 0x1a) {
Eprintf("Family 6 Model %x CPU: only decoding architectural errors\n",
model);
Expand Down
2 changes: 2 additions & 0 deletions mcelog.c
Expand Up @@ -232,6 +232,7 @@ static char *cputype_name[] = {
[CPU_HASWELL] = "Haswell", /* Fill in better name */
[CPU_HASWELL_EPEX] = "Intel Xeon v3 (Haswell) EP/EX",
[CPU_BROADWELL] = "Broadwell",
[CPU_ATOM] = "ATOM",
};

static struct config_choice cpu_choices[] = {
Expand Down Expand Up @@ -273,6 +274,7 @@ static struct config_choice cpu_choices[] = {
{ "broadwell", CPU_BROADWELL },
{ "xeon-v2", CPU_IVY_BRIDGE_EPEX },
{ "xeon-v3", CPU_HASWELL_EPEX },
{ "atom", CPU_ATOM },
{ NULL }
};

Expand Down
1 change: 1 addition & 0 deletions mcelog.h
Expand Up @@ -120,6 +120,7 @@ enum cputype {
CPU_HASWELL,
CPU_HASWELL_EPEX,
CPU_BROADWELL,
CPU_ATOM,
};

enum option_ranges {
Expand Down

0 comments on commit 24c8e4c

Please sign in to comment.