]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa482fa423c4a77a1009c9b795521333ffee9ed9
tree4fe9688f44d89185d32d95cb0e446be57e441b04
parent7923b334cfa2c6f823a3850907b06682af992692
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