linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] arm: add early_ioremap support
@ 2014-07-09  9:39 Leif Lindholm
  2014-07-09  9:39 ` [PATCH 1/2] arm: use generic fixmap.h Leif Lindholm
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Leif Lindholm @ 2014-07-09  9:39 UTC (permalink / raw)
  To: linux-arm-kernel

early_ioremap()/early_memremap() create temporary virtual mappings
in the fixmap region during boot time. Part of the support now exists
in core code, but depends on the generic fixmap support.

This set converts arm to use the generic fixmap support, and adds the
architecture-specific part of early_ioremap support.

The fixmap/kmap changes in 3.15 complicated things slightly compared
to previous iterations of these patches - this version works around
that by introducing local macros in arm/mm/highmem.c.

Tested on TC2 and software models, with/without LPAE.

Mark Salter (2):
  arm: use generic fixmap.h
  arm: add early_ioremap support

 arch/arm/Kconfig              |   11 ++++++
 arch/arm/include/asm/Kbuild   |    1 +
 arch/arm/include/asm/fixmap.h |   45 +++++++++++++--------
 arch/arm/include/asm/io.h     |    1 +
 arch/arm/kernel/setup.c       |    3 ++
 arch/arm/mm/Makefile          |    1 +
 arch/arm/mm/early_ioremap.c   |   86 +++++++++++++++++++++++++++++++++++++++++
 arch/arm/mm/highmem.c         |   13 ++++---
 arch/arm/mm/init.c            |    2 +-
 arch/arm/mm/mmu.c             |    2 +
 10 files changed, 143 insertions(+), 22 deletions(-)
 create mode 100644 arch/arm/mm/early_ioremap.c

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 17+ messages in thread
* [PATCH 0/2] arm: add early_ioremap() support
@ 2013-06-25 17:46 Leif Lindholm
  2013-06-25 17:46 ` [PATCH 2/2] arm: add early_ioremap support Leif Lindholm
  0 siblings, 1 reply; 17+ messages in thread
From: Leif Lindholm @ 2013-06-25 17:46 UTC (permalink / raw)
  To: linux-arm-kernel

x86 and ia64 have the early_ioremap()/early_iounmap() functions, which are
useful for supporting things like UEFI, ACPI and SMBIOS, where configuration
tables need to be parsed before proper memory management is available,
regardless of highmem status.

This patchset implements a restricted form of early_ioremap(), available
before paging_init() only. Like the x86 code on which it is based, it
(p)re-uses the fixmap regions for its virtual mapping range. Up to 7
simultaneous mappings of up to 128KB can be accommodated in the available
fixmap space.

Leif Lindholm (2):
  Documentation: arm: early_ioremap
  arm: add early_ioremap support

 Documentation/arm/00-INDEX          |    2 +
 Documentation/arm/early_ioremap.txt |   12 ++
 arch/arm/Kconfig                    |    7 +
 arch/arm/include/asm/fixmap.h       |   31 +++-
 arch/arm/include/asm/io.h           |   13 ++
 arch/arm/kernel/setup.c             |    3 +
 arch/arm/mm/Makefile                |    1 +
 arch/arm/mm/early_ioremap.c         |  273 +++++++++++++++++++++++++++++++++++
 arch/arm/mm/mmu.c                   |    2 +
 9 files changed, 342 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/arm/early_ioremap.txt
 create mode 100644 arch/arm/mm/early_ioremap.c

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2014-07-25 19:56 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-09  9:39 [PATCH 0/2] arm: add early_ioremap support Leif Lindholm
2014-07-09  9:39 ` [PATCH 1/2] arm: use generic fixmap.h Leif Lindholm
2014-07-09 20:49   ` Mark Salter
2014-07-18 14:33     ` Leif Lindholm
2014-07-25 19:56       ` Kees Cook
2014-07-22 16:39   ` Tomasz Figa
2014-07-09  9:39 ` [PATCH 2/2] arm: add early_ioremap support Leif Lindholm
2014-07-09  9:49   ` Russell King - ARM Linux
2014-07-09 11:48     ` Leif Lindholm
2014-07-22 16:48   ` Tomasz Figa
2014-07-22 17:11     ` Rob Herring
2014-07-22 17:27       ` Tomasz Figa
2014-07-09  9:42 ` [PATCH 0/2] " Russell King - ARM Linux
2014-07-09  9:58   ` Leif Lindholm
2014-07-09  9:47 ` Will Deacon
2014-07-09 10:02   ` Leif Lindholm
  -- strict thread matches above, loose matches on Subject: below --
2013-06-25 17:46 [PATCH 0/2] arm: add early_ioremap() support Leif Lindholm
2013-06-25 17:46 ` [PATCH 2/2] arm: add early_ioremap support Leif Lindholm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).