]> www.infradead.org Git - users/hch/misc.git/commit
iommu/vt-d: Remove device comparison in context_setup_pass_through_cb
authorJerry Snitselaar <jsnitsel@redhat.com>
Fri, 28 Feb 2025 10:27:25 +0000 (18:27 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 28 Feb 2025 11:19:00 +0000 (12:19 +0100)
commit64f792981e35e191eb619f6f2fefab76cc7d6112
treebffb76cf40913aced6cba220e2c30420b55df669
parentc5b0320bbf79548fbf058a3925a07c8f281beeab
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: 2031c469f816 ("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>
drivers/iommu/intel/iommu.c