]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ARM: 8415/1: early fixmap support for earlycon
authorStefan Agner <stefan@agner.ch>
Wed, 12 Aug 2015 23:01:52 +0000 (00:01 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 18 Aug 2015 13:00:29 +0000 (14:00 +0100)
commita5f4c561b3b19a9bc43a81da6382b0098ebbc1fb
tree80905f24141bfc42c6506f65168d0188a2060b69
parentefaa6e266ba70439da00e7f1c8a218e243ae140a
ARM: 8415/1: early fixmap support for earlycon

Add early fixmap support, initially to support permanent, fixed
mapping support for early console. A temporary, early pte is
created which is migrated to a permanent mapping in paging_init.
This is also needed since the attributes may change as the memory
types are initialized. The 3MiB range of fixmap spans two pte
tables, but currently only one pte is created for early fixmap
support.

Re-add FIX_KMAP_BEGIN to the index calculation in highmem.c since
the index for kmap does not start at zero anymore. This reverts
4221e2e6b316 ("ARM: 8031/1: fixmap: remove FIX_KMAP_BEGIN and
FIX_KMAP_END") to some extent.

Cc: Mark Salter <msalter@redhat.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Laura Abbott <lauraa@codeaurora.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig
arch/arm/include/asm/fixmap.h
arch/arm/kernel/setup.c
arch/arm/mm/highmem.c
arch/arm/mm/mmu.c