]> 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)
commit852c9313f798d2f810a4c766056ebde438186118
tree4fe9688f44d89185d32d95cb0e446be57e441b04
parentb8011ddccc935caa32b172bc95c29db30405983d
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