]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
RDMA/qedr: SRQ's bug fixes
authorYuval Basson <ybason@marvell.com>
Wed, 8 Jul 2020 19:55:26 +0000 (22:55 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 16 Jul 2020 17:57:08 +0000 (14:57 -0300)
commitacca72e2b031b9fbb4184511072bd246a0abcebc
tree9d3ebf9327d6461bda7230d1137a809e3257b4d4
parent317000b926b07c07e7f6c4032bd3344639f5eb4c
RDMA/qedr: SRQ's bug fixes

QP's with the same SRQ, working on different CQs and running in parallel
on different CPUs could lead to a race when maintaining the SRQ consumer
count, and leads to FW running out of SRQs. Update the consumer
atomically.  Make sure the wqe_prod is updated after the sge_prod due to
FW requirements.

Fixes: 3491c9e799fb ("qedr: Add support for kernel mode SRQ's")
Link: https://lore.kernel.org/r/20200708195526.31040-1-ybason@marvell.com
Signed-off-by: Michal Kalderon <mkalderon@marvell.com>
Signed-off-by: Yuval Basson <ybason@marvell.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/qedr/qedr.h
drivers/infiniband/hw/qedr/verbs.c