Re: [PATCH 5/6] iommu/amd: Add support for non-pci devices

2016-01-07 Thread Joerg Roedel
On Tue, Jan 05, 2016 at 05:07:23AM -0500, Wan Zongshun wrote: > -static inline u16 get_device_id(struct device *dev) > +static inline int match_hid_uid(struct device *dev, > + struct acpihid_map_entry *entry) > +{ > + const char *hid, *uid; > + > + hid = acpi_dev

[PATCH 5/6] iommu/amd: Add support for non-pci devices

2016-01-04 Thread Wan Zongshun
From: Wan Zongshun 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