]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 18:10:25 +0000 (10:10 -0800)
commit94d71e0fa95644fb5fe4c6eba73f552511d83f8e
treee7ac36c7be4bca91d9ae74ac0d8ff8e4439d0764
parentb7c845dde8ae87f335f8c7ae4b7bc45f34ff3446
iommu/amd: Split init_iommu_group() from iommu_init_device()

commit 25b11ce2a3607d7c39a2ca121eea0c67c722b34e upstream.

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>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/amd_iommu.c