1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/arch/powerpc/include/asm/book3s/64
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
..
hash-4k.h powerpc/mm/book3s: Split radix and hash MAX_PHYSMEM limit 2020-09-15 22:13:22 +10:00
hash-64k.h powerpc/mm/book3s: Split radix and hash MAX_PHYSMEM limit 2020-09-15 22:13:22 +10:00
hash-pkey.h powerpc/book3s64/kuap: Use Key 3 for kernel mapping with hash translation 2020-12-04 01:01:25 +11:00
hash.h powerpc/s64: Clarify that radix lacks DEBUG_PAGEALLOC 2021-10-22 15:22:02 +11:00
hugetlb.h hugetlb: allow to free gigantic pages regardless of the configuration 2019-05-14 09:47:47 -07:00
kexec.h powerpc/book3s64/kexec: Clear CIABR on kexec 2020-12-07 23:26:01 +11:00
kup.h powerpc/bug: Provide better flexibility to WARN_ON/__WARN_FLAGS() with asm goto 2021-08-15 13:49:24 +10:00
mmu-hash.h powerpc: Remove duplicate includes 2021-03-24 14:09:30 +11:00
mmu.h powerpc/book3s64/radix: Add H_RPT_INVALIDATE pgsize encodings to mmu_psize_def 2021-06-21 22:48:18 +10:00
pgalloc.h powerpc/mm/radix: Fix PTE/PMD fragment count for early page table mappings 2020-07-20 22:57:56 +10:00
pgtable-4k.h powerpc/mm: remove pmd_huge/pud_huge stubs and include hugetlb.h 2019-12-01 12:59:08 -08:00
pgtable-64k.h powerpc/mm: remove pmd_huge/pud_huge stubs and include hugetlb.h 2019-12-01 12:59:08 -08:00
pgtable.h powerpc/s64: Clarify that radix lacks DEBUG_PAGEALLOC 2021-10-22 15:22:02 +11:00
pkeys.h powerpc/kuap: Allow kernel thread to access userspace after kthread_use_mm 2021-02-06 23:13:04 +11:00
radix-4k.h powerpc/book3s/radix-4k.h: delete duplicated word 2020-07-27 00:01:31 +10:00
radix-64k.h powerpc/mm/64: Document the sizes of/sizes mapped by Pxx_INDEX_SIZE 2019-04-20 22:02:11 +10:00
radix.h powerpc/s64: Clarify that radix lacks DEBUG_PAGEALLOC 2021-10-22 15:22:02 +11:00
slice.h powerpc/mm: define subarch SLB_ADDR_LIMIT_DEFAULT 2019-05-03 01:20:23 +10:00
tlbflush-hash.h powerpc/hash64: Restrict page table lookup using init_mm with __flush_hash_table_range 2020-05-05 21:20:14 +10:00
tlbflush-radix.h powerpc/book3s64/mm: update flush_tlb_range to flush page walk cache 2021-07-08 11:48:23 -07:00
tlbflush.h powerpc: remove unneeded semicolons 2021-02-09 00:10:50 +11:00