Skip to content

DISCONTIGMEM support for PPC32

Jonathan Neuschäfer linux-mm linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6powerpc/mm/32: Use pfn_valid to check if pointer is in RAMarch/powerpc/mm/pgtable_32.c+1 -13 replies
2/6powerpc: numa: Fix overshift on PPC32arch/powerpc/mm/numa.c+2 -20 replies
3/6powerpc: numa: Use the right #ifdef guards around functionsarch/powerpc/mm/numa.c+4 -00 replies
4/6powerpc: numa: Restrict fake NUMA enulation to CONFIG_NUMA systemsarch/powerpc/mm/numa.c+2 -10 replies
5/6powerpc: Implement DISCONTIGMEM and allow selection on PPC32arch/powerpc/Kconfig arch/powerpc/include/asm/mmzone.h arch/powerpc/mm/numa.c+32 -12 replies
6/6powerpc: wii: Don't rely on reserved memory hack if DISCONTIGMEM is setarch/powerpc/platforms/embedded6xx/wii.c+7 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] DISCONTIGMEM support for PPC32

This patchset adds support for DISCONTIGMEM on 32-bit PowerPC. This is required to properly support the Nintendo Wii's memory layout, in which there are two blocks of RAM and MMIO in the middle.

Previously, this memory layout was handled by code that joins the two RAM blocks into one, reserves the MMIO hole, and permits allocations of reserved memory in ioremap. This hack didn't work with resource-based allocation (as used for example in the GPIO driver for Wii[1]), however.

After this patchset, users of the Wii can either select CONFIG_FLATMEM to get the old behaviour, or CONFIG_DISCONTIGMEM to get the new behaviour.

Some parts of this patchset are probably not ideal (I'm thinking of my implementation of pfn_to_nid here), and will require some discussion/ changes.

[1]: https://www.spinics.net/lists/devicetree/msg213956.html

Jonathan NeuschA?fer (6):
powerpc/mm/32: Use pfn_valid to check if pointer is in RAM
powerpc: numa: Fix overshift on PPC32
powerpc: numa: Use the right #ifdef guards around functions
powerpc: numa: Restrict fake NUMA enulation to CONFIG_NUMA systems
powerpc: Implement DISCONTIGMEM and allow selection on PPC32
powerpc: wii: Don't rely on reserved memory hack if DISCONTIGMEM is
set

 arch/powerpc/Kconfig                     |  5 ++++-
 arch/powerpc/include/asm/mmzone.h        | 21 +++++++++++++++++++++
 arch/powerpc/mm/numa.c                   | 18 +++++++++++++++---
 arch/powerpc/mm/pgtable_32.c             |  2 +-
 arch/powerpc/platforms/embedded6xx/wii.c | 10 +++++++---
 5 files changed, 48 insertions(+), 8 deletions(-)
Signature · 7 lines
2.16.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>