(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

RDMA/umem: Derive DMA direction from IB access flags

Map non-writable user memory DMA_TO_DEVICE: when no write access is granted, the NIC only reads the pages and DMA_BIDIRECTIONAL is unnecessarily broad. Where the IOMMU enforces direction this prevents the device writing to read-only buffers; where it does not the mapping is still semantically correct. Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Link: https://patch.msgid.link/20260915140933.40580-8-yishaih@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>


Author Yishai Hadas Committer Leon Romanovsky Date Commit Parent 50b96c3e
+10 -3
1 changed file
+10 -3
1 changed file