Re: [V2,67/68] powerpc/mm/radix: Cputable update for radix
From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2016-04-28 14:10:06
On Sat, 2016-09-04 at 06:14:03 UTC, "Aneesh Kumar K.V" wrote:
With P9 Radix we need to do * set UPRT = 1 * set different TLB set count In this patch we delay the UPRT=1 to early mmu init. This help us to keep the cpu table setup and restore cpu callback the same across different MMU model. This also implies that a cpu_restore cur_cpu_spec callback won't set UPRT=1. We currently use that for secondary cpu init and on primary after we did an opal reinit for endian switch. In both the case we call early_mmu_init after the above operations. This set UPRT to correct value.
This probably needs a new subject and updated change log as it is mainly adding the setup code.
quoted hunk ↗ jump to hunk
diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c index 6c662b8de90d..e009722d5914 100644 --- a/arch/powerpc/kernel/cputable.c +++ b/arch/powerpc/kernel/cputable.c@@ -514,7 +514,7 @@ static struct cpu_spec __initdata cpu_specs[] = { .cpu_features = CPU_FTRS_POWER9, .cpu_user_features = COMMON_USER_POWER9, .cpu_user_features2 = COMMON_USER2_POWER9, - .mmu_features = MMU_FTRS_POWER9, + .mmu_features = MMU_FTRS_POWER9 | MMU_FTR_RADIX,
I think we discussed this before, but I want to drop this. That will mean the only way MMU_FTR_RADIX is enabled is via ibm,pa-features (in the next patch). cheers