Skip to content

Commit

Permalink
Enabling (n-2) level compat mode for P9
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnupriya_r authored Apr 22, 2019
1 parent 83ae29f commit e43edc9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/htx64/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ int get_cpu_version(void)
if ((TempPvr == 0x4e || TempPvr == 0x4f) && (!strncmp(str,"POWER8",6))) {
pvr = 0x004b0000; // P9 running in P8 mode
}

if ((TempPvr == 0x4e || TempPvr == 0x4f) && (!strncmp(str,"POWER7",6))) {
pvr = 0x003f0000; // P9 running in P7 mode
}

return pvr;
}

Expand Down

0 comments on commit e43edc9

Please sign in to comment.