Skip to content

Commit 29b7bb9

Browse files
Konstantin Taranovrleon
authored andcommitted
RDMA/mana_ib: Allocate PAGE aligned doorbell index
Allocate a PAGE aligned doorbell index to ensure each process gets a separate PAGE sized doorbell area space remapped to it in mana_ib_mmap Fixes: 0266a17 ("RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter") Signed-off-by: Shiraz Saleem <shirazsaleem@microsoft.com> Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com> Link: https://patch.msgid.link/1738751405-15041-1-git-send-email-kotaranov@linux.microsoft.com Reviewed-by: Long Li <longli@microsoft.com> Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent abc7b3f commit 29b7bb9

File tree

1 file changed

+1
-1
lines changed
  • drivers/infiniband/hw/mana

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/mana/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ static int mana_gd_allocate_doorbell_page(struct gdma_context *gc,
174174

175175
req.resource_type = GDMA_RESOURCE_DOORBELL_PAGE;
176176
req.num_resources = 1;
177-
req.alignment = 1;
177+
req.alignment = PAGE_SIZE / MANA_PAGE_SIZE;
178178

179179
/* Have GDMA start searching from 0 */
180180
req.allocated_resources = 0;

0 commit comments

Comments
 (0)