tests: Add DevX traffic over dmabuf UMEMs - #1789
Merged
Merged
Conversation
added 2 commits
August 16, 2026 13:42
When a DevX UMEM is registered from a dmabuf FD, userspace still needs the backing memory's CPU address for WQE, CQE and doorbell access. Allow setting umem_addr after creation so the reported address matches the external buffer without re-registering the UMEM. Signed-off-by: Daniel Hayon <dhayon@nvidia.com> Signed-off-by: Shachar Kagan <skagan@nvidia.com>
A DMA-bounce CoCo device rejects a DevX RC QP on private memory, since the NIC cannot DMA into it. Source the QP, CQ, doorbells and data buffer from shared memory exported as dmabuf fds, run SEND_IMM traffic over it, and skip on non-CC / non-DMA-bounce devices. Signed-off-by: Daniel Hayon <dhayon@nvidia.com> Signed-off-by: Shachar Kagan <skagan@nvidia.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add an Mlx5UMEM.umem_addr setter so DevX UMEMs registered from a dmabuf FD can expose the CPU address of the backing buffer.
Also add a test that runs DevX RC SEND_IMM traffic on CoCo DMA-bounce devices using shared memory exported as dmabuf fds for the QP, CQ, doorbells, and data buffer, and skips elsewhere.