diff options
author | Konstantin Taranov <kotaranov@microsoft.com> | 2024-03-04 05:52:41 -0800 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2024-03-07 11:32:33 +0200 |
commit | 2d5c00815778ec4f4e0a84e405e3e157b7815db1 (patch) | |
tree | 0533a597a3dcca858401573693f940c13b88e95e /drivers/infiniband/hw/mana/device.c | |
parent | e02497fb654689049ba8b46f098f17d5f19e0b3c (diff) |
RDMA/mana_ib: Use virtual address in dma regions for MRs
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 <kotaranov@microsoft.com>
Link: https://lore.kernel.org/r/1709560361-26393-3-git-send-email-kotaranov@linux.microsoft.com
Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/mana/device.c')
0 files changed, 0 insertions, 0 deletions