WSL2-Linux-Kernel/arch/powerpc/mm/book3s64
Joel Stanley 4f703e7faa powerpc/s64: Clarify that radix lacks DEBUG_PAGEALLOC
The page_alloc.c code will call into __kernel_map_pages() when
DEBUG_PAGEALLOC is configured and enabled.

As the implementation assumes hash, this should crash spectacularly if
not for a bit of luck in __kernel_map_pages(). In this function
linear_map_hash_count is always zero, the for loop exits without doing
any damage.

There are no other platforms that determine if they support
debug_pagealloc at runtime. Instead of adding code to mm/page_alloc.c to
do that, this change turns the map/unmap into a noop when in radix
mode and prints a warning once.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
[mpe: Reformat if per Christophe's suggestion]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211013213438.675095-1-joel@jms.id.au
2021-10-22 15:22:02 +11:00
..
Makefile powerpc/book3s64/kuap/kuep: Add PPC_PKEY config on book3s64 2020-12-04 01:01:24 +11:00
hash_4k.c powerpc/book3s64/kuap: Use Key 3 for kernel mapping with hash translation 2020-12-04 01:01:25 +11:00
hash_64k.c powerpc/book3s64/kuap: Use Key 3 for kernel mapping with hash translation 2020-12-04 01:01:25 +11:00
hash_hugepage.c powerpc/book3s64/kuap: Use Key 3 for kernel mapping with hash translation 2020-12-04 01:01:25 +11:00
hash_hugetlbpage.c powerpc/mm: Move hpte_insert_repeating() prototype 2021-01-30 11:39:29 +11:00
hash_native.c powerpc/kexec: blacklist functions called in real mode for kprobe 2021-07-26 20:38:51 +10:00
hash_pgtable.c powerpc/mm/64s/hash: Add real-mode change_memory_range() for hash LPAR 2021-04-08 21:17:43 +10:00
hash_tlb.c mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
hash_utils.c powerpc/s64: Clarify that radix lacks DEBUG_PAGEALLOC 2021-10-22 15:22:02 +11:00
internal.h powerpc/mm/64s: Fix no previous prototype warning 2021-02-11 23:28:51 +11:00
iommu_api.c powerpc/mm/book3s64/iommu: fix some RCU-list locks 2021-01-31 22:35:49 +11:00
mmu_context.c powerpc/mm/book3s64: Fix a typo in mmu_context.c 2021-03-29 13:22:12 +11:00
pgtable.c powerpc: rename powerpc_debugfs_root to arch_debugfs_dir 2021-08-13 22:04:26 +10:00
pkeys.c powerpc/64s: Fold update_current_thread_[i]amr() into their only callers 2021-03-29 13:22:14 +11:00
radix_hugetlbpage.c powerpc/book3s64/mm: update flush_tlb_range to flush page walk cache 2021-07-08 11:48:23 -07:00
radix_pgtable.c powerpc/s64: Clarify that radix lacks DEBUG_PAGEALLOC 2021-10-22 15:22:02 +11:00
radix_tlb.c powerpc: rename powerpc_debugfs_root to arch_debugfs_dir 2021-08-13 22:04:26 +10:00
slb.c powerpc: Refactor verification of MSR_RI 2021-08-26 21:21:07 +10:00
subpage_prot.c mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00