iommu/amd: Fix interrupt remapping for aliased devices
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 22 Apr 2014 16:08:40 +0000 (10:08 -0600)
committerJiri Slaby <jslaby@suse.cz>
Mon, 9 Jun 2014 13:53:59 +0000 (15:53 +0200)
commit2109c87bce2b451d88dcecc91b3fa59da1026819
tree37fd32c44a5aa552823d360918b1e6f51365e563
parent92014a624d433fe66fc6c2e012b5d1320b39d69f
iommu/amd: Fix interrupt remapping for aliased devices

commit e028a9e6b8a637af09ac4114083280df4a7045f1 upstream.

An apparent cut and paste error prevents the correct flags from being
set on the alias device resulting in MSI on conventional PCI devices
failing to work.  This also produces error events from the IOMMU like:

AMD-Vi: Event logged [INVALID_DEVICE_REQUEST device=00:14.4 address=0x000000fdf8000000 flags=0x0a00]

Where 14.4 is a PCIe-to-PCI bridge with a device behind it trying to
use MSI interrupts.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/iommu/amd_iommu.c