iommu/amd: Return devid as alias for ACPI HID devices
authorArindam Nath <arindam.nath@amd.com>
Tue, 18 Sep 2018 10:10:58 +0000 (15:40 +0530)
committerJoerg Roedel <jroedel@suse.de>
Wed, 26 Sep 2018 07:41:11 +0000 (09:41 +0200)
commit5ebb1bc2d63d90dd204169e21fd7a0b4bb8c776e
treecdf359424d5976aaea14e033b34251812a772da4
parentbe9e6598aeb0db70a7927d6b3bb4d3d6fb1c3e18
iommu/amd: Return devid as alias for ACPI HID devices

ACPI HID devices do not actually have an alias for
them in the IVRS. But dev_data->alias is still used
for indexing into the IOMMU device table for devices
being handled by the IOMMU. So for ACPI HID devices,
we simply return the corresponding devid as an alias,
as parsed from IVRS table.

Signed-off-by: Arindam Nath <arindam.nath@amd.com>
Fixes: 2bf9a0a12749 ('iommu/amd: Add iommu support for ACPI HID devices')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c