]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC
authorLaura Abbott <labbott@fedoraproject.org>
Sat, 6 Feb 2016 00:24:47 +0000 (16:24 -0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 16 Feb 2016 15:40:30 +0000 (15:40 +0000)
commite55cc26c1c8426535318aa92c3b7085090d34b9b
treedef928e193b847e4035a6d895efafc9f9b881896
parent59022f5e6097da24f2e29ab4dcdda531a252272b
arm64: Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC

ARCH_SUPPORTS_DEBUG_PAGEALLOC provides a hook to map and unmap
pages for debugging purposes. This requires memory be mapped
with PAGE_SIZE mappings since breaking down larger mappings
at runtime will lead to TLB conflicts. Check if debug_pagealloc
is enabled at runtime and if so, map everyting with PAGE_SIZE
pages. Implement the functions to actually map/unmap the
pages at runtime.

Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Laura Abbott <labbott@fedoraproject.org>
[catalin.marinas@arm.com: static annotation block_mappings_allowed() and #ifdef]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/Kconfig
arch/arm64/mm/mmu.c
arch/arm64/mm/pageattr.c