diff options
author | Michael Neuling <mikey@neuling.org> | 2016-05-02 15:26:21 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-05-10 16:04:51 +1000 |
commit | 591feeef8353c8a0ee73e42ff1538cf436c5fd1d (patch) | |
tree | 224bfb9fbed30b06eede81bd82d0506d91f24bb3 /core/affinity.c | |
parent | 3ff350343a67cd1897f37684613468a5f849ac1b (diff) | |
download | skiboot-591feeef8353c8a0ee73e42ff1538cf436c5fd1d.zip skiboot-591feeef8353c8a0ee73e42ff1538cf436c5fd1d.tar.gz skiboot-591feeef8353c8a0ee73e42ff1538cf436c5fd1d.tar.bz2 |
Add base POWER9 support
Add PVR detection, chip id and other misc bits for POWER9.
POWER9 changes the location of the HILE and attn enable bits in the
HID0 register, so add these definitions also.
Signed-off-by: Michael Neuling <mikey@neuling.org>
[stewart@linux.vnet.ibm.com: Fix Numbus typo, hdata_to_dt build fixes]
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/affinity.c')
-rw-r--r-- | core/affinity.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/affinity.c b/core/affinity.c index df708a8..9f489d3 100644 --- a/core/affinity.c +++ b/core/affinity.c @@ -120,6 +120,8 @@ void add_core_associativity(struct cpu_thread *cpu) core_id = (cpu->pir >> 2) & 0x7; else if (proc_gen == proc_gen_p8) core_id = (cpu->pir >> 3) & 0xf; + else if (proc_gen == proc_gen_p9) + core_id = (cpu->pir >> 2) & 0x1f; else return; |