OSDN Git Service

iommu/io-pgtable-arm: Optimize map by batching flushes
authorStepan Moskovchenko <stepanm@codeaurora.org>
Wed, 10 Jun 2015 03:23:04 +0000 (20:23 -0700)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:13:51 +0000 (11:13 -0700)
commit837edfc242e8802aabf0c8f33c75aca2b53cdc3b
treeec39ba98a4875033dd9d13233e702ce2d9a2fbb9
parent39bd6920174f249545bdae2b66b8d8198ffa893a
iommu/io-pgtable-arm: Optimize map by batching flushes

Currently, the page table is flushed after the installation of each
individual page table entry.  This is not terribly efficient since
virtual address ranges are often mapped with physically contiguous
chunks of page table memory.  Optimize the map operation by factoring
out the page table flushing so that contiguous ranges of page table
memory can be flushed in one go.

Change-Id: Ie80eb57ef50d253db6489a6f75824d4c746314c7
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
drivers/iommu/io-pgtable-arm.c