iommu/amd: Don't call early_amd_iommu_init() when AMD IOMMU is disabled
authorJoerg Roedel <jroedel@suse.de>
Wed, 17 Mar 2021 09:10:36 +0000 (10:10 +0100)
committerJoerg Roedel <jroedel@suse.de>
Thu, 18 Mar 2021 09:46:42 +0000 (10:46 +0100)
commit9f81ca8d1fd68f5697c201f26632ed622e9e462f
tree71274f0650ffe8f11a1ec2adaac3ddfe5235a468
parent072a03e0a0b1bc22eb5970727877264657c61fd3
iommu/amd: Don't call early_amd_iommu_init() when AMD IOMMU is disabled

Don't even try to initialize the AMD IOMMU hardware when amd_iommu=off has been
passed on the kernel command line.

References: https://bugzilla.kernel.org/show_bug.cgi?id=212133
References: https://bugzilla.suse.com/show_bug.cgi?id=1183132
Cc: stable@vger.kernel.org # v5.11
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Link: https://lore.kernel.org/r/20210317091037.31374-3-joro@8bytes.org
Acked-by: Huang Rui <ray.huang@amd.com>
drivers/iommu/amd/init.c