bus/pci: check IOMMU addressing limitation just once
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Fri, 5 Oct 2018 12:45:24 +0000 (13:45 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 28 Oct 2018 21:06:15 +0000 (22:06 +0100)
commitf74d50a7dfccb928e7b4ac75af7817703be5697b
tree21b9e35a004306e48fe7d9d4976638f10e8eb61d
parent1df21702873dab6ed95cfc5b7828553afd39fcde
bus/pci: check IOMMU addressing limitation just once

Current code checks if IOMMU hardware reports enough addressing
bits for using IOVA mode but it repeats the same check for any
PCI device present. This is not necessary because the IOMMU hardware
is the same for all of them.

This patch only checks the IOMMU using first PCI device found.

Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
drivers/bus/pci/linux/pci.c