]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf060308b5414642a9443aa93f4aac7a97a3729ff
treecdf359424d5976aaea14e033b34251812a772da4
parent515611c5122abca14adbae7fffd928ebcb39e1eb
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: a5c55ab15581 ('iommu/amd: Add iommu support for ACPI HID devices')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c