Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5dcc609 authored by Aneesh Kumar K.V's avatar Aneesh Kumar K.V Committed by Michael Ellerman
Browse files

powerpc/mm/radix: Update PTCR on secondary CPUs

parent 7a0eedee
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -896,9 +896,13 @@ void __init hash__early_init_mmu(void)
void hash__early_init_mmu_secondary(void)
{
	/* Initialize hash table for that CPU */
	if (!firmware_has_feature(FW_FEATURE_LPAR))
	if (!firmware_has_feature(FW_FEATURE_LPAR)) {
		if (!cpu_has_feature(CPU_FTR_ARCH_300))
			mtspr(SPRN_SDR1, _SDR1);

		else
			mtspr(SPRN_PTCR,
			      __pa(partition_tb) | (PATB_SIZE_SHIFT - 12));
	}
	/* Initialize SLB */
	slb_initialize();
}