arm64: Invalidate the TLB when replacing pmd entries during boot
authorCatalin Marinas <catalin.marinas@arm.com>
Tue, 4 Feb 2014 16:01:31 +0000 (16:01 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 5 Feb 2014 10:30:51 +0000 (10:30 +0000)
commita55f9929a9b257f84b6cc7b2397379cabd744a22
tree4fe9688f44d89185d32d95cb0e446be57e441b04
parentccc9e244eb1b9654915634827322932cbafd8244
arm64: Invalidate the TLB when replacing pmd entries during boot

With the 64K page size configuration, __create_page_tables in head.S
maps enough memory to get started but using 64K pages rather than 512M
sections with a single pgd/pud/pmd entry pointing to a pte table.
create_mapping() may override the pgd/pud/pmd table entry with a block
(section) one if the RAM size is more than 512MB and aligned correctly.
For the end of this block to be accessible, the old TLB entry must be
invalidated.

Cc: <stable@vger.kernel.org>
Reported-by: Mark Salter <msalter@redhat.com>
Tested-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/mmu.c