RDMA/mana_ib: Allocate PAGE aligned doorbell index
Subsystems (2)
PATCH 1/1 RDMA/mana_ib: Allocate PAGE aligned doorbell index
From: Konstantin Taranov <[email protected]>
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
--- drivers/infiniband/hw/mana/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/mana/main.c +1 -1
@@ -177,7 +177,7 @@ static int mana_gd_allocate_doorbell_page(struct gdma_context *gc, req.resource_type =GDMA_RESOURCE_DOORBELL_PAGE ; req.num_resources =1 ; - req.alignment =1 ; + req.alignment =PAGE_SIZE /MANA_PAGE_SIZE ;/* Have GDMA start searching from 0 */ req.allocated_resources =0 ;
Signature · 1 line
2.43.0
Quoted 5 lines
Subject: [PATCH rdma-next 1/1] RDMA/mana_ib: Allocate PAGE aligned doorbell index
From: Konstantin Taranov <[email protected]>
Quoted 7 lines
Allocate a PAGE aligned doorbell index to ensure each process gets a separate PAGE sized doorbell area space remapped to it in
mana_ib_mmapFixes 0266a177631d ("RDMA/mana_ib: Add a driver for Microsoft AzureNetwork Adapter")
Signed-off-by Shiraz Saleem <[email protected]>Signed-off-by Konstantin Taranov <[email protected]>
Quoted 21 lines
--- drivers/infiniband/hw/mana/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/infiniband/hw/mana/main.c +1
-1@@ -177,7 +177,7 @@ static int mana_gd_allocate_doorbell_page(struct gdma_context *gc, req.resource_type =GDMA_RESOURCE_DOORBELL_PAGE ; req.num_resources =1 ; - req.alignment =1 ; + req.alignment =PAGE_SIZE /MANA_PAGE_SIZE ;/* Have GDMA start searching from 0 */ req.allocated_resources = 0;
--
2.43.0
Leon Romanovsky
AppliedQuoted 4 lines · Konstantin Taranov
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
Applied, thanks!
[1/1] RDMA/mana_ib: Allocate PAGE aligned doorbell index
https://git.kernel.org/rdma/rdma/c/29b7bb98234cc2
Best regards,
Signature · 1 line
Leon Romanovsky <[email protected]>