Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/32: Allow fragmented physical memory

Since commit 9e849f231c3c ("powerpc/mm/32s: use generic mmu_mapin_ram()
for all blocks.") it is possible to map all blocks as RAM on any PPC32.

Remove related restrictions.

And remove call to wii_memory_fixups() which doesn't do anything else
than checks since commit 160985f3025b ("powerpc/wii: remove
wii_mmu_mapin_mem2()")

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/fc9a5b8ef49f6eb86e970d4c7ccfba9b407fd4eb.1661938317.git.christophe.leroy@csgroup.eu

authored by

Christophe Leroy and committed by
Michael Ellerman
b0e0d68b fc06755e

-9
-9
arch/powerpc/mm/init_32.c
··· 82 82 if (ppc_md.progress) 83 83 ppc_md.progress("MMU:enter", 0x111); 84 84 85 - if (memblock.memory.cnt > 1) { 86 - #ifndef CONFIG_WII 87 - memblock_enforce_memory_limit(memblock.memory.regions[0].size); 88 - pr_warn("Only using first contiguous memory region\n"); 89 - #else 90 - wii_memory_fixups(); 91 - #endif 92 - } 93 - 94 85 total_lowmem = total_memory = memblock_end_of_DRAM() - memstart_addr; 95 86 lowmem_end_addr = memstart_addr + total_lowmem; 96 87