linux/arch/powerpc/mm
Kefeng Wang 1ff5c8e8c8 Revert "powerpc: Set max_mapnr correctly"
This reverts commit 602946ec2f.

If CONFIG_HIGHMEM is enabled, no highmem will be added with max_mapnr
set to max_low_pfn, see mem_init():

  for (pfn = highmem_mapnr; pfn < max_mapnr; ++pfn) {
        ...
        free_highmem_page();
  }

Now that virt_addr_valid() has been fixed in the previous commit, we can
revert the change to max_mapnr.

Fixes: 602946ec2f ("powerpc: Set max_mapnr correctly")
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reported-by: Erhard F. <erhard_f@mailbox.org>
[mpe: Update change log to reflect series reordering]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220406145802.538416-2-mpe@ellerman.id.au
2022-04-07 08:54:35 +10:00
..
book3s32 powerpc/32s: Fix kasan_init_region() for KASAN 2022-01-16 20:51:05 +11:00
book3s64 Merge branch 'akpm' (patches from Andrew) 2022-03-25 10:21:20 -07:00
kasan powerpc/kasan: Fix early region not updated correctly 2022-02-03 22:37:44 +11:00
nohash powerpc updates for 5.17 2022-01-14 15:17:26 +01:00
ptdump powerpc/ptdump: Fix sparse warning in hashpagetable.c 2022-02-02 20:32:11 +11:00
cacheflush.c
copro_fault.c powerpc/64s: Move hash MMU support code under CONFIG_PPC_64S_HASH_MMU 2021-12-09 22:41:13 +11:00
dma-noncoherent.c
drmem.c
fault.c powerpc: Move C prototypes out of asm-prototypes.h 2022-03-08 22:06:25 +11:00
hugetlbpage.c powerpc/mm: Update default hugetlb size early 2022-02-12 22:47:44 +11:00
init_32.c
init_64.c powerpc/mm: Update default hugetlb size early 2022-02-12 22:47:44 +11:00
init-common.c powerpc/kuep: Remove 'nosmep' boot time parameter except for book3s/64 2021-12-09 22:41:18 +11:00
ioremap_32.c
ioremap_64.c
ioremap.c powerpc: make memremap_compat_align 64s-only 2021-12-02 22:57:24 +11:00
maccess.c powerpc/inst: Optimise copy_inst_from_kernel_nofault() 2021-12-09 22:41:21 +11:00
Makefile
mem.c Revert "powerpc: Set max_mapnr correctly" 2022-04-07 08:54:35 +10:00
mmap.c powerpc/64s: Always define arch unmapped area calls 2021-12-09 22:40:24 +11:00
mmu_context.c powerpc/mm: Switch obsolete dssall to .long 2021-12-23 22:35:13 +11:00
mmu_decl.h
numa.c powerpc/numa: Handle partially initialized numa nodes 2022-03-31 23:23:18 +11:00
pageattr.c powerpc: Add set_memory_{p/np}() and remove set_memory_attr() 2022-02-12 22:47:42 +11:00
pgtable_32.c powerpc/32s: Enable STRICT_MODULE_RWX for the 603 core 2022-02-12 22:47:42 +11:00
pgtable_64.c powerpc/64s/radix: Fix huge vmap false positive 2021-12-20 12:13:32 +11:00
pgtable-frag.c
pgtable.c powerpc/fixmap: Fix VM debug warning on unmap 2022-01-24 17:29:05 +11:00
slice.c powerpc/64s: Always define arch unmapped area calls 2021-12-09 22:40:24 +11:00