OSDN Git Service

iommu/io-pgtable-fast: optimize statically allocated pages
authorShiraz Hashim <shashim@codeaurora.org>
Wed, 15 Feb 2017 11:13:01 +0000 (16:43 +0530)
committerShiraz Hashim <shashim@codeaurora.org>
Wed, 1 Mar 2017 06:32:07 +0000 (12:02 +0530)
commit2e87440c3e6fbc711714d1109818f8e3c0f1d2a7
tree33eaec4b94e310b9525dd9c42b16c030418af03f
parentd72462d943ee499ac17a485bdacca60c0db31c04
iommu/io-pgtable-fast: optimize statically allocated pages

Presently fastmap iommu feature allocates page tables for
full 4GB virtual address space. This can be optimized to
consider virtual address range [base, size] needed by
client and prepare page tables only for applicable
region.

Change-Id: Ie6c23cb8e1702a823567e126f452b1e72d851f71
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
drivers/iommu/arm-smmu.c
drivers/iommu/dma-mapping-fast.c
drivers/iommu/io-pgtable-fast.c
drivers/iommu/io-pgtable.h
include/linux/io-pgtable-fast.h