]> www.infradead.org Git - users/hch/block.git/commit
RDMA/umem: Prevent UMEM ODP creation with SWIOTLB
authorLeon Romanovsky <leonro@nvidia.com>
Wed, 31 Jan 2024 11:58:56 +0000 (13:58 +0200)
committerLeon Romanovsky <leon@kernel.org>
Thu, 3 Oct 2024 16:05:53 +0000 (19:05 +0300)
commit488bee668b46205b8e7bc1b2136796e60d019d56
treed880e55ad1d9aebef90385b300fe7776ce26ebc3
parent08cf6acb46031bc5de47d182debf81ae04187bf8
RDMA/umem: Prevent UMEM ODP creation with SWIOTLB

RDMA UMEM never supported DMA addresses returned from SWIOTLB, as these
addresses should be programmed to the hardware which is not aware that
it is bounce buffers and not real ones.

Instead of silently leave broken system for the users who didn't
know it, let's be explicit and return an error to them.

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/core/umem_odp.c
drivers/iommu/dma-iommu.c