[RFT 2/2] Revert "iommu/vt-d: Remove device comparison in context_setup_pass_through_cb"
Luca Coelho
luciano.coelho at intel.com
Wed Mar 12 11:49:43 UTC 2025
This reverts commit 64f792981e35e191eb619f6f2fefab76cc7d6112.
Signed-off-by: Luca Coelho <luciano.coelho at intel.com>
---
drivers/iommu/intel/iommu.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c
index 4d8d4593c9c8..cc46098f875b 100644
--- a/drivers/iommu/intel/iommu.c
+++ b/drivers/iommu/intel/iommu.c
@@ -4378,6 +4378,9 @@ static int context_setup_pass_through_cb(struct pci_dev *pdev, u16 alias, void *
{
struct device *dev = data;
+ if (dev != &pdev->dev)
+ return 0;
+
return context_setup_pass_through(dev, PCI_BUS_NUM(alias), alias & 0xff);
}
--
2.47.2
More information about the Intel-gfx-trybot
mailing list