On 2/24/22 9:04 PM, Jason Gunthorpe wrote:
On Mon, Feb 14, 2022 at 10:56:58AM +0800, Lu Baolu wrote:

diff --git a/drivers/iommu/intel/debugfs.c b/drivers/iommu/intel/debugfs.c
index db7a0ca73626..ed796eea4581 100644
--- a/drivers/iommu/intel/debugfs.c
+++ b/drivers/iommu/intel/debugfs.c
@@ -344,7 +344,8 @@ static void pgtable_walk_level(struct seq_file *m, struct 
dma_pte *pde,
static int show_device_domain_translation(struct device *dev, void *data)
  {
-       struct dmar_domain *domain = find_domain(dev);
+       struct device_domain_info *info = dev_iommu_priv_get(dev);
+       struct dmar_domain *domain = info->domain;

It might be nice to someday call 'struct device_domain_info' something
clearer since it is now the dev_iommu_priv..

I have the same idea. :-) I will rename it later.


Reviewed-by: Jason Gunthorpe <[email protected]>

Jason

Best regards,
baolu
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Reply via email to