From: Steve Capper Date: Tue, 6 May 2014 13:02:27 +0000 (+0100) Subject: arm64: mm: Create gigabyte kernel logical mappings where possible X-Git-Tag: omap-for-v3.16/fixes-against-rc1~91^2~10^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=206a2a73a62d37c8b8f6ddd3180c202b2e7298ab;p=pandora-kernel.git arm64: mm: Create gigabyte kernel logical mappings where possible We have the capability to map 1GB level 1 blocks when using a 4K granule. This patch adjusts the create_mapping logic s.t. when mapping physical memory on boot, we attempt to use a 1GB block if both the VA and PA start and end are 1GB aligned. This both reduces the levels of lookup required to resolve a kernel logical address, as well as reduces TLB pressure on cores that support 1GB TLB entries. Signed-off-by: Steve Capper Tested-by: Jungseok Lee [catalin.marinas@arm.com: s/prot_sect_kernel/PROT_SECT_NORMAL_EXEC/] Signed-off-by: Catalin Marinas --- Reading git-diff-tree failed