diff options
| author | Yishai Hadas <yishaih@nvidia.com> | 2026-09-15 17:09:24 +0300 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2026-09-28 08:13:09 -0400 |
| commit | 50b96c3e3feb6161df4a1ac4975e885602c79bfd (patch) | |
| tree | bc9a87970979b1ccbc3c52ce61e819f1f4811d71 /tools/lib/python/kdoc/python_version.py | |
| parent | 2445d74c465ac0200f6464b24cb5eb76319c1be1 (diff) | |
RDMA/umem: Map CQ buffers DMA_FROM_DEVICE
For a CQ ring the device writes CQEs and the CPU only reads.
DMA_FROM_DEVICE is the correct direction. Use it explicitly in
ib_umem_get_cq_buf() and ib_umem_get_cq_buf_or_va() rather than deriving
it from the access flags: CQ callers pass IB_ACCESS_LOCAL_WRITE so that
get_user_pages() pins a writable private page (FOLL_WRITE), which the
device needs to DMA-write CQEs into. That flag would yield
DMA_BIDIRECTIONAL from the access-flag derivation, which is wrong for
the bus direction.
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://patch.msgid.link/20260915140933.40580-7-yishaih@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
