aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mana/mr.c
Commit message (Collapse)AuthorAgeFilesLines
* IB: Extend UVERBS_METHOD_REG_MR to get DMAHYishai Hadas2025-07-231-0/+8
| | | | | | | | | | | | Extend UVERBS_METHOD_REG_MR to get DMAH and pass it to all drivers. It will be used in mlx5 driver as part of the next patch from the series. Signed-off-by: Yishai Hadas <[email protected]> Reviewed-by: Edward Srouji <[email protected]> Link: https://patch.msgid.link/2ae1e628c0675db81f092cc00d3ad6fbf6139405.1752752567.git.leon@kernel.org Signed-off-by: Leon Romanovsky <[email protected]>
* RDMA/mana_ib: support of the zero based MRsKonstantin Taranov2025-04-201-7/+17
| | | | | | | | | | | Add IB_ZERO_BASED to the valid flags and use the corresponding MR creation request for the zero based memory. Signed-off-by: Konstantin Taranov <[email protected]> Link: https://patch.msgid.link/[email protected] Reviewed-by: Long Li <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
* RDMA/mana_ib: Access remote atomic for MRsKonstantin Taranov2025-04-201-2/+5
| | | | | | | | | | Add IB_ACCESS_REMOTE_ATOMIC to the valid flags for MRs and use the corresponding flag bit during MR creation in the HW. Signed-off-by: Konstantin Taranov <[email protected]> Link: https://patch.msgid.link/[email protected] Reviewed-by: Long Li <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
* RDMA/mana_ib: Implement DMABUF MR supportKonstantin Taranov2025-02-181-0/+69
| | | | | | | | | Add support of dmabuf MRs to mana_ib. Signed-off-by: Konstantin Taranov <[email protected]> Link: https://patch.msgid.link/[email protected] Reviewed-by: Long Li <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
* RDMA/mana_ib: implement get_dma_mrKonstantin Taranov2025-02-031-0/+36
| | | | | | | | | | Implement allocation of DMA-mapped memory regions. Signed-off-by: Konstantin Taranov <[email protected]> Link: https://patch.msgid.link/[email protected] Reviewed-by: Shiraz Saleem <[email protected]> Reviewed-by: Long Li <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
* RDMA/mana_ib: Ignore optional access flags for MRsKonstantin Taranov2024-06-211-0/+1
| | | | | | | | | Ignore optional ib_access_flags when an MR is created. Fixes: 0266a177631d ("RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter") Signed-off-by: Konstantin Taranov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
* RDMA/mana_ib: remove useless return values from dbg printsKonstantin Taranov2024-04-111-1/+1
| | | | | | | | | Remove printing ret value on success as it was always 0. Signed-off-by: Konstantin Taranov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Long Li <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
* RDMA/mana_ib: Use virtual address in dma regions for MRsKonstantin Taranov2024-03-071-2/+2
| | | | | | | | | | | | | | | | | Introduce mana_ib_create_dma_region() to create dma regions with iova for MRs. It allows creating MRs with any page offset. Previously, only page-aligned addresses worked. For dma regions that must have a zero dma offset (e.g., for queues), mana_ib_create_zero_offset_dma_region() is added. To get the zero offset, ib_umem_find_best_pgoff() is used with zero pgoff_bitmask. Fixes: 0266a177631d ("RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter") Signed-off-by: Konstantin Taranov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Zhu Yanjun <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
* RDMA/mana_ib: Introduce mdev_to_gc helper functionKonstantin Taranov2024-01-251-10/+3
| | | | | | | | | | Use a helper function to access gdma_context from mana_ib_dev. This patch removes code repetitions as well as removes the need to explicitly use gdma_dev, which was error-prone. Signed-off-by: Konstantin Taranov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
* RDMA/mana: Remove redefinition of basic u64 typeLeon Romanovsky2022-11-141-3/+2
| | | | | | | | | gdma_obj_handle_t is no more than redefinition of basic u64 type. Remove such obfuscation. Link: https://lore.kernel.org/r/3c1e821279e6a165d058655d2343722d6650e776.1668160486.git.leonro@nvidia.com Acked-by: Long Li <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
* RDMA/mana_ib: Add a driver for Microsoft Azure Network AdapterLong Li2022-11-111-0/+198
Add a RDMA VF driver for Microsoft Azure Network Adapter (MANA). Co-developed-by: Ajay Sharma <[email protected]> Signed-off-by: Ajay Sharma <[email protected]> Reviewed-by: Dexuan Cui <[email protected]> Signed-off-by: Long Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>