iommu/amd: Disable iommu only if amd_iommu=off is specified
authorBaoquan He <bhe@redhat.com>
Wed, 9 Aug 2017 08:33:44 +0000 (16:33 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 15 Aug 2017 16:14:41 +0000 (18:14 +0200)
commit20b46dff13bd1d250dc968b318f0fac3c996b3fa
treed4d901fc27c1d4e6b96cb3b5d309b4182efcbeb8
parentdaae2d25a4779b272a66ddd01f5810bcee822b9e
iommu/amd: Disable iommu only if amd_iommu=off is specified

It's ok to disable iommu early in normal kernel or in kdump kernel when
amd_iommu=off is specified. While we should not disable it in kdump kernel
when on-flight dma is still on-going.

Signed-off-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu_init.c