android_kernel_xiaomi_sm8350/arch/powerpc/mm
Paul Mackerras fb6d73d301 [PATCH] powerpc: Fix sparsemem with memory holes [was Re: ppc64 oops..]
This patch should fix the crashes we have been seeing on 64-bit
powerpc systems with a memory hole when sparsemem is enabled.
I'd appreciate it if people who know more about NUMA and sparsemem
than me could look over it.

There were two bugs.  The first was that if NUMA was enabled but there
was no NUMA information for the machine, the setup_nonnuma() function
was adding a single region, assuming memory was contiguous.  The
second was that the loops in mem_init() and show_mem() assumed that
all pages within the span of a pgdat were valid (had a valid struct
page).

I also fixed the incorrect setting of num_physpages that Mike Kravetz
pointed out.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-15 16:57:12 -08:00
..
4xx_mmu.c
44x_mmu.c
fault.c [PATCH] powerpc: Nicer printing of address at oops 2005-11-07 12:37:28 +11:00
fsl_booke_mmu.c [PATCH] Update email address for Kumar 2005-11-13 18:14:10 -08:00
hash_low_32.S
hash_low_64.S [PATCH] ppc64: support 64k pages 2005-11-06 16:56:47 -08:00
hash_native_64.c [PATCH] ppc64: support 64k pages 2005-11-06 16:56:47 -08:00
hash_utils_64.c [PATCH] powerpc: merge code values for identifying platforms 2005-11-10 13:37:51 +11:00
hugetlbpage.c [PATCH] ppc64: Fix bug in SLB miss handler for hugepages 2005-11-07 07:53:23 -08:00
imalloc.c
init_32.c powerpc: Move some extern declarations from C code into headers 2005-11-10 15:53:40 +11:00
init_64.c powerpc: Move some extern declarations from C code into headers 2005-11-10 15:53:40 +11:00
lmb.c
Makefile
mem.c [PATCH] powerpc: Fix sparsemem with memory holes [was Re: ppc64 oops..] 2005-11-15 16:57:12 -08:00
mmap.c
mmu_context_32.c
mmu_context_64.c
mmu_decl.h
numa.c [PATCH] powerpc: Fix sparsemem with memory holes [was Re: ppc64 oops..] 2005-11-15 16:57:12 -08:00
pgtable_32.c powerpc: import a fix from arch/ppc/mm/pgtable.c 2005-10-31 14:40:03 +11:00
pgtable_64.c [PATCH] ppc64: Don't panic when early __ioremap fails 2005-11-10 11:26:06 +11:00
ppc_mmu_32.c [PATCH] ppc: Fix ppc32 build after 64K pages 2005-11-07 07:53:23 -08:00
slb_low.S [PATCH] ppc64: Fix bug in SLB miss handler for hugepages 2005-11-07 07:53:23 -08:00
slb.c [PATCH] ppc64: support 64k pages 2005-11-06 16:56:47 -08:00
stab.c [PATCH] powerpc: merge code values for identifying platforms 2005-11-10 13:37:51 +11:00
tlb_32.c
tlb_64.c [PATCH] ppc64: support 64k pages 2005-11-06 16:56:47 -08:00