Skip to content

Commit f297e27

Browse files
rmurphy-armjoergroedel
authored andcommitted
iommu/vt-d: Drop IOVA cookie management
The core code bakes its own cookies now. Reviewed-by: Lu Baolu <[email protected]> Signed-off-by: Robin Murphy <[email protected]> Link: https://lore.kernel.org/r/e9dbe3b6108f8538e17e0c5f59f8feeb714f51a4.1628682048.git.robin.murphy@arm.com Signed-off-by: Joerg Roedel <[email protected]>
1 parent 229496a commit f297e27

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/iommu/intel/iommu.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,10 +1979,6 @@ static void domain_exit(struct dmar_domain *domain)
19791979
/* Remove associated devices and clear attached or cached domains */
19801980
domain_remove_dev_info(domain);
19811981

1982-
/* destroy iovas */
1983-
if (domain->domain.type == IOMMU_DOMAIN_DMA)
1984-
iommu_put_dma_cookie(&domain->domain);
1985-
19861982
if (domain->pgd) {
19871983
struct page *freelist;
19881984

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

4547-
if (type == IOMMU_DOMAIN_DMA &&
4548-
iommu_get_dma_cookie(&dmar_domain->domain))
4549-
return NULL;
4550-
45514543
domain = &dmar_domain->domain;
45524544
domain->geometry.aperture_start = 0;
45534545
domain->geometry.aperture_end =

0 commit comments

Comments
 (0)