powerpc/mm: Update hid register on secondaries too
PATCH 1/1 powerpc/mm: Update hid register on secondaries too
We need to update on secondaries for the selected MMU mode.
Fixes ad410674f5606a ("powerpc/mm: Update the HID bit when switching from radix to hash")
Reported-by Michael Neuling <[email protected]>
Signed-off-by Aneesh Kumar K.V <[email protected]>
--- arch/powerpc/mm/hash_utils_64.c | 4 ++++ arch/powerpc/mm/pgtable-radix.c | 4 ++++ 2 files changed, 8 insertions(+)
arch/powerpc/mm/hash_utils_64.c +4 -0
@@ -1029,6 +1029,10 @@ void hash__early_init_mmu_secondary(void) {/* Initialize hash table for that CPU */ if (!firmware_has_feature (FW_FEATURE_LPAR )) { + +if (cpu_has_feature (CPU_FTR_POWER9_DD1 )) +update_hid_for_hash (); +if (!cpu_has_feature (CPU_FTR_ARCH_300 ))mtspr (SPRN_SDR1 , _SDR1);else
arch/powerpc/mm/pgtable-radix.c +4 -0
@@ -404,6 +404,10 @@ void radix__early_init_mmu_secondary(void)* update partition table control register and UPRT */ if (!firmware_has_feature (FW_FEATURE_LPAR )) { + +if (cpu_has_feature (CPU_FTR_POWER9_DD1 )) +update_hid_for_radix (); + lpcr =mfspr (SPRN_LPCR );mtspr (SPRN_LPCR , lpcr |LPCR_UPRT |LPCR_HR );
Signature · 1 line
2.10.2
Michael Ellerman
AppliedQuoted 6 lines · Aneesh Kumar K.V
We need to update on secondaries for the selected MMU mode.
Fixes ad410674f5606a ("powerpc/mm: Update the HID bit when switching from radix to hash")Reported-by Michael Neuling <[email protected]>Signed-off-by Aneesh Kumar K.V <[email protected]>
Applied to powerpc fixes, thanks.
https://git.kernel.org/powerpc/c/cac4a185405d4415eca269cae97643
cheers