Re: [RFC 6/7] iommu/vt-d: convert the intel iommu driver to the dma-iommu ops api

2019-05-05 Thread Lu Baolu
Hi, On 5/6/19 1:03 AM, Tom Murphy wrote: On Sun, May 5, 2019 at 3:44 AM Lu Baolu wrote: Hi, On 5/4/19 9:23 PM, Tom Murphy wrote: static int intel_iommu_add_device(struct device *dev) { + struct dmar_domain *dmar_domain; + struct iommu_domain *domain; struct intel_iommu *iom

Re: [RFC 6/7] iommu/vt-d: convert the intel iommu driver to the dma-iommu ops api

2019-05-05 Thread Tom Murphy via iommu
On Sun, May 5, 2019 at 3:44 AM Lu Baolu wrote: > > Hi, > > On 5/4/19 9:23 PM, Tom Murphy wrote: > > static int intel_iommu_add_device(struct device *dev) > > { > > + struct dmar_domain *dmar_domain; > > + struct iommu_domain *domain; > > struct intel_iommu *iommu; > > struct

Re: [RFC 6/7] iommu/vt-d: convert the intel iommu driver to the dma-iommu ops api

2019-05-04 Thread Lu Baolu
Hi, On 5/4/19 9:23 PM, Tom Murphy wrote: static int intel_iommu_add_device(struct device *dev) { + struct dmar_domain *dmar_domain; + struct iommu_domain *domain; struct intel_iommu *iommu; struct iommu_group *group; - struct iommu_domain *domain; + dma_

[RFC 6/7] iommu/vt-d: convert the intel iommu driver to the dma-iommu ops api

2019-05-04 Thread Tom Murphy via iommu
Convert the intel iommu driver to the dma-iommu api to allow us to remove the iova handling code and the reserved region code Signed-off-by: Tom Murphy --- drivers/iommu/Kconfig | 1 + drivers/iommu/intel-iommu.c | 405 ++-- include/linux/intel-iommu.h |