diff options
| author | Konstantin Taranov <[email protected]> | 2025-02-05 10:30:05 +0000 |
|---|---|---|
| committer | Leon Romanovsky <[email protected]> | 2025-02-06 09:03:10 +0000 |
| commit | 29b7bb98234cc287cebef9bccf638c2e3f39be71 (patch) | |
| tree | 64051e5003c47f6c6e77315433475a7750e0c3d7 /drivers/infiniband/hw/mana/main.c | |
| parent | RDMA/mlx5: Fix a WARN during dereg_mr for DM type (diff) | |
| download | kernel-29b7bb98234cc287cebef9bccf638c2e3f39be71.tar.gz kernel-29b7bb98234cc287cebef9bccf638c2e3f39be71.zip | |
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: 0266a177631d ("RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter")
Signed-off-by: Shiraz Saleem <[email protected]>
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]>
Diffstat (limited to 'drivers/infiniband/hw/mana/main.c')
| -rw-r--r-- | drivers/infiniband/hw/mana/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mana/main.c b/drivers/infiniband/hw/mana/main.c index 67c2d43135a8..457cea6d9909 100644 --- a/drivers/infiniband/hw/mana/main.c +++ b/drivers/infiniband/hw/mana/main.c @@ -174,7 +174,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; |
