Skip to content

Commit 4707f2a

Browse files
Michal Kalderongregkh
authored andcommitted
RDMA/qedr: Fix doorbell setting
[ Upstream commit 0b1eddc ] Change the doorbell setting so that the maximum value between the last and current value is set. This is to avoid doorbells being lost. Fixes: a7efd77 ("qedr: Add support for PD,PKEY and CQ verbs") Link: https://lore.kernel.org/r/20200902165741.8355-3-michal.kalderon@marvell.com Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent c41bd80 commit 4707f2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/infiniband/hw/qedr/verbs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ int qedr_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr,
999999
/* Generate doorbell address. */
10001000
cq->db.data.icid = cq->icid;
10011001
cq->db_addr = dev->db_addr + db_offset;
1002-
cq->db.data.params = DB_AGG_CMD_SET <<
1002+
cq->db.data.params = DB_AGG_CMD_MAX <<
10031003
RDMA_PWM_VAL32_DATA_AGG_CMD_SHIFT;
10041004

10051005
/* point to the very last element, passing it we will toggle */

0 commit comments

Comments
 (0)