iommu/amd: Add iommu support for ACPI HID devices
authorWan Zongshun <Vincent.Wan@amd.com>
Fri, 1 Apr 2016 13:06:03 +0000 (09:06 -0400)
committerJoerg Roedel <jroedel@suse.de>
Thu, 7 Apr 2016 11:29:42 +0000 (13:29 +0200)
commit2bf9a0a12749b2c45964020795859d4a1f228a1d
treeac8f9b80acc6e0015ce764379d19d0db73ac758b
parent7aba6cb9ee9db7849d0bf57891d9c7feb4e89457
iommu/amd: Add iommu support for ACPI HID devices

Current IOMMU driver make assumption that the downstream devices are PCI.
With the newly added ACPI-HID IVHD device entry support, this is no
longer true. This patch is to add dev type check and to distinguish the
pci and acpihid device code path.

Signed-off-by: Wan Zongshun <Vincent.Wan@amd.com>
Signed-off-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c