]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
iommu/dma: Resurrect the "forcedac" option
authorRobin Murphy <robin.murphy@arm.com>
Fri, 5 Mar 2021 16:32:34 +0000 (16:32 +0000)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Mon, 24 May 2021 23:46:33 +0000 (17:46 -0600)
commitbf1716c2bbd0a996220ad8c788b6c6e5d53ba468
treefe118585e45902dd8d3e8ce5ff68aa4802820489
parentda9a695a0cf939051ec84a0a332f9e946f11e926
iommu/dma: Resurrect the "forcedac" option

BugLink: https://bugs.launchpad.net/bugs/1929455
[ Upstream commit 3542dcb15cef66c0b9e6c3b33168eb657e0d9520 ]

In converting intel-iommu over to the common IOMMU DMA ops, it quietly
lost the functionality of its "forcedac" option. Since this is a handy
thing both for testing and for performance optimisation on certain
platforms, reimplement it under the common IOMMU parameter namespace.

For the sake of fixing the inadvertent breakage of the Intel-specific
parameter, remove the dmar_forcedac remnants and hook it up as an alias
while documenting the transition to the new common parameter.

Fixes: c588072bba6b ("iommu/vt-d: Convert intel iommu driver to the iommu ops")
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: John Garry <john.garry@huawei.com>
Link: https://lore.kernel.org/r/7eece8e0ea7bfbe2cd0e30789e0d46df573af9b0.1614961776.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
Documentation/admin-guide/kernel-parameters.txt
drivers/iommu/dma-iommu.c
drivers/iommu/intel/iommu.c
include/linux/dma-iommu.h