Skip to content

sh: Physically contiguous memory reservation rework

Magnus Damm linux-sh 1 version In review

Get series with b4
b4 am 20110106101549.1617.28207.sendpatchset@t400s

Versions newest first

  1. v1 Latest8 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8sh: Add new memblock reservation code for mem_initarch/sh/include/asm/device.h arch/sh/mm/consistent.c+37 -00 replies
2/8sh: Convert sh7366 to mem_initarch/sh/include/cpu-sh4/cpu/sh7366.h arch/sh/kernel/cpu/sh4a/setup-sh7366.c+15 -40 replies
3/8sh: Convert sh7343 and se7343 to mem_initarch/sh/boards/mach-se/7343/setup.c arch/sh/include/cpu-sh4/cpu/sh7343.h arch/sh/kernel/cpu/sh4a/setup-sh7343.c+17 -40 replies
4/8sh: Convert sh7722, Migo-R and se7722 to mem_initarch/sh/boards/mach-migor/setup.c arch/sh/boards/mach-se/7722/setup.c arch/sh/include/cpu-sh4/cpu/sh7722.h +1 more+18 -60 replies
5/8sh: Convert sh7723 and AP325RXA to mem_initarch/sh/boards/mach-ap325rxa/setup.c arch/sh/include/cpu-sh4/cpu/sh7723.h arch/sh/kernel/cpu/sh4a/setup-sh7723.c+17 -60 replies
6/8sh: Convert sh7724, Ecovec, se7724 and kfr2r09 to mem_initarch/sh/boards/mach-ecovec24/setup.c arch/sh/boards/mach-kfr2r09/setup.c arch/sh/boards/mach-se/7724/setup.c +2 more+36 -130 replies
7/8sh: Remove old physically contiguous reservation codearch/sh/include/asm/device.h arch/sh/mm/consistent.c+0 -350 replies
8/8sh: Move new memblock reservation code to drivers/sharch/sh/mm/consistent.c drivers/sh/Makefile drivers/sh/memchunk.c+79 -582 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/08] sh: Physically contiguous memory reservation rework

sh: Physically contiguous memory reservation rework

[PATCH 01/08] sh: Add new memblock reservation code for mem_init [PATCH 02/08] sh: Convert sh7366 to mem_init
[PATCH 03/08] sh: Convert sh7343 and se7343 to mem_init [PATCH 04/08] sh: Convert sh7722, Migo-R and se7722 to mem_init [PATCH 05/08] sh: Convert sh7723 and AP325RXA to mem_init [PATCH 06/08] sh: Convert sh7724, Ecovec, se7724 and kfr2r09 to mem_init [PATCH 07/08] sh: Remove old physically contiguous reservation code [PATCH 08/08] sh: Move new memblock reservation code to drivers/sh

These patches convert the SH-Mobile processors in the SH architecture to make use of memblock for physically contiguous memory reservation.

With these patches applied the physically contiguous memory is excluded from the system memory - this can be determined by /proc/iomem contents.

Excluding the physically contiguous memory from main system memory is not a requirement for the SH architecture, but after converting the SH side we can easily tie in the same implementation for ARM where this is a hardware requirement.

---

Compile time tested for all SH-Mobile processors. Runtime tested on sh7724 and Ecovec using mplayer (VEU over UIO).

 arch/sh/boards/mach-ap325rxa/setup.c   |    9 +-
 arch/sh/boards/mach-ecovec24/setup.c   |   10 ++
 arch/sh/boards/mach-kfr2r09/setup.c    |    9 +-
 arch/sh/boards/mach-migor/setup.c      |    9 +-
 arch/sh/boards/mach-se/7343/setup.c    |    2 
 arch/sh/boards/mach-se/7722/setup.c    |    1 
 arch/sh/boards/mach-se/7724/setup.c    |   10 ++
 arch/sh/include/asm/device.h           |    4 -
 arch/sh/include/cpu-sh4/cpu/sh7343.h   |    6 +
 arch/sh/include/cpu-sh4/cpu/sh7366.h   |    6 +
 arch/sh/include/cpu-sh4/cpu/sh7722.h   |    2 
 arch/sh/include/cpu-sh4/cpu/sh7723.h   |    2 
 arch/sh/include/cpu-sh4/cpu/sh7724.h   |    2 
 arch/sh/kernel/cpu/sh4a/setup-sh7343.c |   13 ++-
 arch/sh/kernel/cpu/sh4a/setup-sh7366.c |   13 ++-
 arch/sh/kernel/cpu/sh4a/setup-sh7722.c |   12 ++-
 arch/sh/kernel/cpu/sh4a/setup-sh7723.c |   12 ++-
 arch/sh/kernel/cpu/sh4a/setup-sh7724.c |   18 ++--
 arch/sh/mm/consistent.c                |  126 ++++++++------------------------
 drivers/sh/Makefile                    |    1 
 drivers/sh/memchunk.c                  |   78 +++++++++++++++++++
 21 files changed, 219 insertions(+), 126 deletions(-)