iommu/amd: Split init_iommu_group() from iommu_init_device()
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 19 Sep 2014 16:03:13 +0000 (10:03 -0600)
committerJoerg Roedel <jroedel@suse.de>
Thu, 25 Sep 2014 14:39:07 +0000 (16:39 +0200)
commit25b11ce2a3607d7c39a2ca121eea0c67c722b34e
tree82ad9200a08180f07e1751f1ac0d537aa27adc33
parentf096c061f5525d1b35a65b793057b52061dcb486
iommu/amd: Split init_iommu_group() from iommu_init_device()

For a PCI device, aliases from the IVRS table won't be populated
into dma_alias_devfn until after iommu_init_device() is called on
each device.  We therefore want to split init_iommu_group() to
be called from a separate loop immediately following.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Cc: stable@vger.kernel.org # 3.17
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c