iommu/amd: Consolidate domain allocation/freeing
authorJoerg Roedel <jroedel@suse.de>
Wed, 27 May 2020 11:53:09 +0000 (13:53 +0200)
committerJoerg Roedel <jroedel@suse.de>
Fri, 29 May 2020 15:10:43 +0000 (17:10 +0200)
commit301441a0994689b56e98a0e8ecdc383b144ed258
tree91022fd81fd4c9cbdad64ef88948e33dc3420457
parent75b27745097dde18a0b8936d73cf72df61b2253b
iommu/amd: Consolidate domain allocation/freeing

Merge the allocation code paths of DMA and UNMANAGED domains and
remove code duplication.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Reviewed-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Link: https://lore.kernel.org/r/20200527115313.7426-7-joro@8bytes.org
drivers/iommu/amd_iommu.c