[PATCH V2] arm64: mm: Create gigabyte kernel logical mappings where possible

Catalin Marinas catalin.marinas at arm.com
Tue May 6 02:58:53 PDT 2014


On Fri, May 02, 2014 at 04:17:09PM +0100, Steve Capper wrote:
> 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 <steve.capper at linaro.org>

I think you need to patch kern_addr_valid as well for this (we recently
pushed a patch to detect pmd block mappings).

-- 
Catalin



More information about the linux-arm-kernel mailing list