]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RMDA/sw: Don't allow drivers using dma_virt_ops on highmem configs
authorChristoph Hellwig <hch@lst.de>
Fri, 6 Nov 2020 18:19:32 +0000 (19:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Nov 2020 12:29:05 +0000 (13:29 +0100)
commit4c954fe28af154a90c2fb34737aa190fd4d0cdb2
tree5f5a3cd7e78cbef03a945e49fcf52f33d02805d2
parent1a358c4e9bb2af62f195a5ae6c5cce3c5a379e18
RMDA/sw: Don't allow drivers using dma_virt_ops on highmem configs

[ Upstream commit b1e678bf290db5a76f1b6a9f7c381310e03440d6 ]

dma_virt_ops requires that all pages have a kernel virtual address.
Introduce a INFINIBAND_VIRT_DMA Kconfig symbol that depends on !HIGHMEM
and make all three drivers depend on the new symbol.

Also remove the ARCH_DMA_ADDR_T_64BIT dependency, which has been obsolete
since commit 4965a68780c5 ("arch: define the ARCH_DMA_ADDR_T_64BIT config
symbol in lib/Kconfig")

Fixes: 551199aca1c3 ("lib/dma-virt: Add dma_virt_ops")
Link: https://lore.kernel.org/r/20201106181941.1878556-2-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/Kconfig
drivers/infiniband/sw/rdmavt/Kconfig
drivers/infiniband/sw/rxe/Kconfig
drivers/infiniband/sw/siw/Kconfig