|
@@ -246,7 +246,13 @@ static u16 get_alias(struct device *dev)
|
|
|
|
|
|
/* The callers make sure that get_device_id() does not fail here */
|
|
/* The callers make sure that get_device_id() does not fail here */
|
|
devid = get_device_id(dev);
|
|
devid = get_device_id(dev);
|
|
|
|
+
|
|
|
|
+ /* For ACPI HID devices, we simply return the devid as such */
|
|
|
|
+ if (!dev_is_pci(dev))
|
|
|
|
+ return devid;
|
|
|
|
+
|
|
ivrs_alias = amd_iommu_alias_table[devid];
|
|
ivrs_alias = amd_iommu_alias_table[devid];
|
|
|
|
+
|
|
pci_for_each_dma_alias(pdev, __last_alias, &pci_alias);
|
|
pci_for_each_dma_alias(pdev, __last_alias, &pci_alias);
|
|
|
|
|
|
if (ivrs_alias == pci_alias)
|
|
if (ivrs_alias == pci_alias)
|