]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Keep track of amd_iommu_irq_remap state
authorJoerg Roedel <jroedel@suse.de>
Wed, 17 Mar 2021 09:10:37 +0000 (10:10 +0100)
committerJoerg Roedel <jroedel@suse.de>
Thu, 18 Mar 2021 09:46:49 +0000 (10:46 +0100)
commitc186226267d2c10b933075c1df870b750d52e82b
treed62618dcfc582d352dda0bfb64e4a866d12a8d80
parent42cc69554ec614d3fa52f414fa81e4160fec0409
iommu/amd: Keep track of amd_iommu_irq_remap state

The amd_iommu_irq_remap variable is set to true in amd_iommu_prepare().
But if initialization fails it is not set to false. Fix that and
correctly keep track of whether irq remapping is enabled or not.

References: https://bugzilla.kernel.org/show_bug.cgi?id=212133
References: https://bugzilla.suse.com/show_bug.cgi?id=1183132
Fixes: 2f024562edcd ("iommu/amd: Stop irq_remapping_select() matching when remapping is disabled")
Cc: stable@vger.kernel.org # v5.11
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Link: https://lore.kernel.org/r/20210317091037.31374-4-joro@8bytes.org
Acked-by: Huang Rui <ray.huang@amd.com>
drivers/iommu/amd/init.c