[PATCH v2 4/4] iommu/dma: Make PCI window reservation generic

Joerg Roedel joro at 8bytes.org
Wed Mar 22 08:19:47 PDT 2017


On Thu, Mar 16, 2017 at 05:00:19PM +0000, Robin Murphy wrote:
> Now that we're applying the IOMMU API reserved regions to our IOVA
> domains, we shouldn't need to privately special-case PCI windows, or
> indeed anything else which isn't specific to our iommu-dma layer.
> However, since those aren't IOMMU-specific either, rather than start
> duplicating code into IOMMU drivers let's transform the existing
> function into an iommu_get_resv_regions() helper that they can share.
> 
> Signed-off-by: Robin Murphy <robin.murphy at arm.com>
> ---
> 
> Notes:
>     v2:
>     - New
> 
>  drivers/iommu/arm-smmu-v3.c |  2 ++
>  drivers/iommu/arm-smmu.c    |  2 ++
>  drivers/iommu/dma-iommu.c   | 38 ++++++++++++++++++++++++++++----------
>  include/linux/dma-iommu.h   |  5 +++++
>  4 files changed, 37 insertions(+), 10 deletions(-)

Applied patches 2-4 to my arm/core branch, thanks.




More information about the linux-arm-kernel mailing list