Consolidate identity mapping code in idmap.c
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 4 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 4 patches the cover letter announces are in this archive.
Reviews trailers per patch
| Patch | Dave Martin |
|---|---|
| Series | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/4] Consolidate identity mapping code in idmap.c
Quoted 14 lines · Will Deacon
Hello,
This patch series consolidates the identity mapping code into
idmap.c, where a single set of page tables (idmap_pgd) are allocated and populated at init time for use by subsystems such as soft reboot, kexec and CPU suspend.A new linker section (.idmap.text) is introduced so that code which needs to be identity mapped can be annotated with
__idmapor, if written in assembly, placed there explicitly.CPU suspend, cpu_*_reset and
setup_mm_for_rebootare all updated to work with the new mapping code.
Quoted 6 lines
This is currently based on 3.2-rc2, but will be based on Russell's reset branch when it comes to merging (where the prototype of
setup_mm_for_reboothas changed slightly). Furthermore, I have rebased my kexec series against this which I will post separately.Comments welcome.
I haven't exhaustively checked every detail, but this looks like a cleaner, more scalabale and more robust way to handle code which needs to be identity-mapped compared with what we had previously; so I'm in favour of it.
FWIW
Quoted 53 lines
Cheers,
Will
Will Deacon (4):
ARM: idmap: populate identity map pgd at init time using .init.text
ARM: suspend: useidmap_pgdinstead ofsuspend_pgd
ARM: proc-*.S: placecpu_resetfunctions into .idmap.text section
ARM: idmap: useidmap_pgdwhen setting up mm for rebootarch/arm/include/asm/idmap.h | 11 ++++++++ arch/arm/kernel/sleep.S | 2 + arch/arm/kernel/suspend.c | 17 ++---------- arch/arm/kernel/vmlinux.lds.S | 1 + arch/arm/mm/idmap.c | 49 ++++++++++++++++++++++++++++++------- arch/arm/mm/proc-arm1020.S | 3 ++ arch/arm/mm/proc-arm1020e.S | 3 ++ arch/arm/mm/proc-arm1022.S | 3 ++ arch/arm/mm/proc-arm1026.S | 3 ++ arch/arm/mm/proc-arm6_7.S | 4 +++ arch/arm/mm/proc-arm720.S | 3 ++ arch/arm/mm/proc-arm740.S | 3 ++ arch/arm/mm/proc-arm7tdmi.S | 3 ++ arch/arm/mm/proc-arm920.S | 3 ++ arch/arm/mm/proc-arm922.S | 3 ++ arch/arm/mm/proc-arm925.S | 3 ++ arch/arm/mm/proc-arm926.S | 3 ++ arch/arm/mm/proc-arm940.S | 3 ++ arch/arm/mm/proc-arm946.S | 3 ++ arch/arm/mm/proc-arm9tdmi.S | 3 ++ arch/arm/mm/proc-fa526.S | 3 ++ arch/arm/mm/proc-feroceon.S | 3 ++ arch/arm/mm/proc-mohawk.S | 3 ++ arch/arm/mm/proc-sa110.S | 3 ++ arch/arm/mm/proc-sa1100.S | 3 ++ arch/arm/mm/proc-v6.S | 3 ++ arch/arm/mm/proc-v7.S | 2 + arch/arm/mm/proc-xsc3.S | 3 ++ arch/arm/mm/proc-xscale.S | 3 ++ include/asm-generic/vmlinux.lds.h | 6 ++++ 30 files changed, 135 insertions(+), 23 deletions(-) create mode 100644 arch/arm/include/asm/idmap.hSignature · 7 lines
1.7.4.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel