lkml.org 
[lkml]   [2021]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 04/23] iommu/vt-d: Drop IOVA cookie management
    Date
    The core code bakes its own cookies now.

    Signed-off-by: Robin Murphy <robin.murphy@arm.com>
    ---
    drivers/iommu/intel/iommu.c | 8 --------
    1 file changed, 8 deletions(-)

    diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c
    index dd22fc7d5176..e2add5a0caef 100644
    --- a/drivers/iommu/intel/iommu.c
    +++ b/drivers/iommu/intel/iommu.c
    @@ -1980,10 +1980,6 @@ static void domain_exit(struct dmar_domain *domain)
    /* Remove associated devices and clear attached or cached domains */
    domain_remove_dev_info(domain);

    - /* destroy iovas */
    - if (domain->domain.type == IOMMU_DOMAIN_DMA)
    - iommu_put_dma_cookie(&domain->domain);
    -
    if (domain->pgd) {
    struct page *freelist;

    @@ -4544,10 +4540,6 @@ static struct iommu_domain *intel_iommu_domain_alloc(unsigned type)
    return NULL;
    }

    - if (type == IOMMU_DOMAIN_DMA &&
    - iommu_get_dma_cookie(&dmar_domain->domain))
    - return NULL;
    -
    domain = &dmar_domain->domain;
    domain->geometry.aperture_start = 0;
    domain->geometry.aperture_end =
    --
    2.25.1
    \
     
     \ /
      Last update: 2021-07-21 20:22    [W:3.174 / U:0.200 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site