Skip to content

Commit 64f7929

Browse files
snitsjoergroedel
authored andcommitted
iommu/vt-d: Remove device comparison in context_setup_pass_through_cb
Remove the device comparison check in context_setup_pass_through_cb. pci_for_each_dma_alias already makes a decision on whether the callback function should be called for a device. With the check in place it will fail to create context entries for aliases as it walks up to the root bus. Fixes: 2031c46 ("iommu/vt-d: Add support for static identity domain") Closes: https://lore.kernel.org/linux-iommu/82499eb6-00b7-4f83-879a-e97b4144f576@linux.intel.com/ Cc: stable@vger.kernel.org Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com> Link: https://lore.kernel.org/r/20250224180316.140123-1-jsnitsel@redhat.com Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent c5b0320 commit 64f7929

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/iommu/intel/iommu.c

-3
Original file line numberDiff line numberDiff line change
@@ -4378,9 +4378,6 @@ static int context_setup_pass_through_cb(struct pci_dev *pdev, u16 alias, void *
43784378
{
43794379
struct device *dev = data;
43804380

4381-
if (dev != &pdev->dev)
4382-
return 0;
4383-
43844381
return context_setup_pass_through(dev, PCI_BUS_NUM(alias), alias & 0xff);
43854382
}
43864383

0 commit comments

Comments
 (0)