summaryrefslogtreecommitdiff
path: root/drivers/iommu/intel/iommu.h
diff options
context:
space:
mode:
authorLu Baolu <baolu.lu@linux.intel.com>2023-12-18 15:34:42 +0800
committerJoerg Roedel <jroedel@suse.de>2023-12-19 14:32:26 +0100
commit1903ef8f0d77680e6eb36bd0cc3ea3aa6e95a050 (patch)
tree5a50ef5ffd1e1188757af9c3c29bc0764f3df033 /drivers/iommu/intel/iommu.h
parent2cc14f52aeb78ce3f29677c2de1f06c0e91471ab (diff)
downloadlinux-1903ef8f0d77680e6eb36bd0cc3ea3aa6e95a050.tar.gz
linux-1903ef8f0d77680e6eb36bd0cc3ea3aa6e95a050.tar.bz2
linux-1903ef8f0d77680e6eb36bd0cc3ea3aa6e95a050.zip
iommu/vt-d: Refactor device_to_iommu() to retrieve iommu directly
The device_to_iommu() helper was originally designed to look up the DMAR ACPI table to retrieve the iommu device and the request ID for a given device. However, it was also being used in other places where there was no need to lookup the ACPI table at all. Retrieve the iommu device directly from the per-device iommu private data in functions called after device is probed. Rename the original device_to_iommu() function to a more meaningful name, device_lookup_iommu(), to avoid mis-using it. Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Link: https://lore.kernel.org/r/20231116015048.29675-2-baolu.lu@linux.intel.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel/iommu.h')
-rw-r--r--drivers/iommu/intel/iommu.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iommu/intel/iommu.h b/drivers/iommu/intel/iommu.h
index 65d37a138c75..f8f956ce43c5 100644
--- a/drivers/iommu/intel/iommu.h
+++ b/drivers/iommu/intel/iommu.h
@@ -897,7 +897,6 @@ int dmar_ir_support(void);
void *alloc_pgtable_page(int node, gfp_t gfp);
void free_pgtable_page(void *vaddr);
void iommu_flush_write_buffer(struct intel_iommu *iommu);
-struct intel_iommu *device_to_iommu(struct device *dev, u8 *bus, u8 *devfn);
struct iommu_domain *intel_nested_domain_alloc(struct iommu_domain *parent,
const struct iommu_user_data *user_data);