Skip to content

RFC Add ioremap_exec enhancements

Dave Gerlach linux-arch linux-arm-kernel linux-devicetree linux-omap lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2asm-generic: io: Add exec versions of ioremaparch/arm/include/asm/io.h include/asm-generic/iomap.h+7 -01 reply
2/2lib: devres: Add exec versions of devm_ioremap_resource and friendsinclude/linux/device.h include/linux/io.h lib/devres.c+147 -61 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/2] Add ioremap_exec enhancements

Hi,

Some platforms need the ability to ioremap memory for use with small chunks of code, like in certain PM applications that run from sram.

This series provides a common way to call an arch's ioremap_exec, which currently only exists for ARM, so that we can use it in the generic sram driver in a forthcoming patch.

This patch is part of a patch series split into several smaller sets for introducing suspend on AM335x. I plan to use it to copy several pieces of ASM code from an EMIF driver and the SoC PM code to run from SRAM on the SoC. I have pushed a branch here [1] based on v3.18-rc6 with all required patches so that the higher level plan for these patches can be seen.

Regards,
Dave

[1] https://github.com/dgerlach/linux-pm/tree/rfc-pm-am335x-v3.18-rc6

Russ Dill (2):
asm-generic: io: Add exec versions of ioremap
lib: devres: Add exec versions of devm_ioremap_resource and friends

 arch/arm/include/asm/io.h   |   2 +
 include/asm-generic/iomap.h |   5 ++
 include/linux/device.h      |  19 ++++++-
 include/linux/io.h          |   9 +++-
 lib/devres.c                | 125 ++++++++++++++++++++++++++++++++++++++++++--
 5 files changed, 154 insertions(+), 6 deletions(-)
Signature · 1 line
2.1.0