]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
ARM: dma: add new fields to dma_iommu_mapping
authorSri Krishna chowdary <schowdary@nvidia.com>
Thu, 5 Jun 2014 09:53:49 +0000 (15:23 +0530)
committerPritesh Raithatha <praithatha@nvidia.com>
Mon, 11 Apr 2016 04:49:29 +0000 (10:19 +0530)
Add num_prefetch_page and gap_page.
if selected, prefetch/gap pages will be added for every dma
mapping request.

Also define alignment per mapping. This alignment will be used
to allocate/free iova during dma map/unmap requests.

Bug 1463797

Change-Id: I32b22930b4414e43223287a2555ec50fe3f4ce36
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/413266
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>
arch/arm/include/asm/dma-iommu.h

index 3c31ace4575c66834f0f83c59ca4bdd2020b4f6a..2ee31fabd9224ff338489396ecae6c581f437ac3 100644 (file)
@@ -23,6 +23,12 @@ struct dma_iommu_mapping {
 
        spinlock_t              lock;
        struct kref             kref;
+
+       bool                    gap_page;
+       int                     num_prefetch_page;
+       /* FIXME: currently only alignment of 2^n is supported. */
+       size_t                  alignment;
+
 };
 
 struct dma_iommu_mapping *