aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/cputable.c
diff options
context:
space:
mode:
authorRussell Currey <ruscur@russell.cc>2017-02-16 21:01:35 -0500
committerMichael Ellerman <mpe@ellerman.id.au>2017-02-17 05:48:56 -0500
commit6ae3f8ad2017079292cb49c8959b527bcbcbefed (patch)
tree94a2ad57a64d519a5991a7866a379447da23d974 /arch/powerpc/kernel/cputable.c
parenta2391b35f1d9d5b51d43a9150c7239253565d5a6 (diff)
powerpc: Add POWER9 architected mode to cputable
PVR value of 0x0F000005 means we are arch v3.00 compliant (i.e. POWER9). Acked-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Russell Currey <ruscur@russell.cc> [mpe: Don't set num_pmcs, so we keep the PMU fields from the raw entry] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/cputable.c')
-rw-r--r--arch/powerpc/kernel/cputable.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c
index 6a82ef039c50..bb7a1890aeb7 100644
--- a/arch/powerpc/kernel/cputable.c
+++ b/arch/powerpc/kernel/cputable.c
@@ -386,6 +386,23 @@ static struct cpu_spec __initdata cpu_specs[] = {
386 .machine_check_early = __machine_check_early_realmode_p8, 386 .machine_check_early = __machine_check_early_realmode_p8,
387 .platform = "power8", 387 .platform = "power8",
388 }, 388 },
389 { /* 3.00-compliant processor, i.e. Power9 "architected" mode */
390 .pvr_mask = 0xffffffff,
391 .pvr_value = 0x0f000005,
392 .cpu_name = "POWER9 (architected)",
393 .cpu_features = CPU_FTRS_POWER9,
394 .cpu_user_features = COMMON_USER_POWER9,
395 .cpu_user_features2 = COMMON_USER2_POWER9,
396 .mmu_features = MMU_FTRS_POWER9,
397 .icache_bsize = 128,
398 .dcache_bsize = 128,
399 .oprofile_type = PPC_OPROFILE_INVALID,
400 .oprofile_cpu_type = "ppc64/ibm-compat-v1",
401 .cpu_setup = __setup_cpu_power9,
402 .cpu_restore = __restore_cpu_power9,
403 .flush_tlb = __flush_tlb_power9,
404 .platform = "power9",
405 },
389 { /* Power7 */ 406 { /* Power7 */
390 .pvr_mask = 0xffff0000, 407 .pvr_mask = 0xffff0000,
391 .pvr_value = 0x003f0000, 408 .pvr_value = 0x003f0000,