diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-05-16 15:57:35 +0100 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2024-01-08 12:33:01 +0000 |
commit | 7440a6b7d459e097ea7696136b631dec7901cd81 (patch) | |
tree | 0d80e1352a26a92ff267701f52e73cc4c8ac04a1 | |
parent | 963961200ad40c8eab626cb234dae1c86921646a (diff) |
arm64: text replication: update cnp support
Add changes for CNP (Common Not Private) support of kernel text
replication. Although text replication has only been tested on
dual-socket Ampere A1 systems, provided the different NUMA nodes
are not part of the same inner shareable domain, CNP should not
be a problem.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
-rw-r--r-- | arch/arm64/include/asm/mmu_context.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm64/include/asm/mmu_context.h b/arch/arm64/include/asm/mmu_context.h index 9dc5c1844768..f44106d83fe9 100644 --- a/arch/arm64/include/asm/mmu_context.h +++ b/arch/arm64/include/asm/mmu_context.h @@ -183,8 +183,7 @@ static inline void __cpu_replace_ttbr1(phys_addr_t pgd_phys, pgd_t *idmap, static inline void cpu_enable_swapper_cnp(void) { - __cpu_replace_ttbr1(virt_to_phys(lm_alias(swapper_pg_dir)), - idmap_pg_dir, true); + __cpu_replace_ttbr1(swapper_pg_dir_node_phys(), idmap_pg_dir, true); } static inline void cpu_replace_ttbr1(pgd_t *pgdp, pgd_t *idmap) |