]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: expand fixmap region to 3MB
authorRob Herring <robh@kernel.org>
Wed, 2 Jul 2014 07:01:15 +0000 (02:01 -0500)
committerKees Cook <keescook@chromium.org>
Thu, 16 Oct 2014 21:38:52 +0000 (14:38 -0700)
commit6416862f4cbb64c5bc04a9d6b12c7aefa4d6e1e1
tree6a6d69be0fd2110c6b66d3a595aa5de59bdee69e
parent77e18bd5b1e8492f41b3c62e42c8a6f643f4fd19
ARM: expand fixmap region to 3MB

With commit dd91f91d6fc1 ("ARM: 8031/2: change fixmap mapping region to
support 32 CPUs"), the fixmap region was expanded to 2MB, but it
precluded any other uses of the fixmap region. In order to support other
uses the fixmap region needs to be expanded beyond 2MB. Fortunately, the
adjacent 1MB range 0xffe00000-0xfff00000 is availabe.

Remove fixmap_page_table ptr and lookup the page table via the virtual
address so that the fixmap region can span more that one pmd. The 2nd
pmd is already created since it is shared with the vector page.

Signed-off-by: Rob Herring <robh@kernel.org>
[kees: fixed CONFIG_DEBUG_HIGHMEM get_fixmap() calls]
[kees: moved pte allocation outside of CONFIG_HIGHMEM]
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Documentation/arm/memory.txt
arch/arm/include/asm/fixmap.h
arch/arm/mm/highmem.c
arch/arm/mm/mmu.c