]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iommu/amd: Update to use PCI DMA aliases
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 3 Jul 2014 15:51:24 +0000 (09:51 -0600)
committerJoerg Roedel <jroedel@suse.de>
Fri, 4 Jul 2014 10:35:58 +0000 (12:35 +0200)
commitc1931090a22b96b223f2a3b8420076f044da7531
tree6b74b9b25e6edf33e631001e321061c435d37bf1
parent104a1c13ac66e40cf8c6ae74d76ff14ff24b9b01
iommu/amd: Update to use PCI DMA aliases

AMD-Vi already has a concept of an alias provided via the IVRS table.
Now that PCI-core also understands aliases, we need to incorporate
both aspects when programming the IOMMU.  IVRS is generally quite
reliable, so we continue to prefer it when an alias is present.  For
cases where we have an IVRS alias that does not match the PCI alias
or where PCI does not report an alias, report the mismatch to allow
us to collect more quirks and dynamically incorporate the alias into
the device alias quirks where possible.

This should allow AMD-Vi to work with devices like Marvell and Ricoh
with DMA function alias quirks unknown to the BIOS.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Cc: Joerg Roedel <joro@8bytes.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c