Commit 3383a99
RDMA/qedr: SRQ's bug fixes
[ Upstream commit acca72e ]
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: 3491c9e ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent dbc374d commit 3383a99
2 files changed
Lines changed: 12 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
| 354 | + | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3577 | 3577 | | |
3578 | 3578 | | |
3579 | 3579 | | |
3580 | | - | |
| 3580 | + | |
3581 | 3581 | | |
3582 | 3582 | | |
3583 | 3583 | | |
| |||
3592 | 3592 | | |
3593 | 3593 | | |
3594 | 3594 | | |
3595 | | - | |
3596 | 3595 | | |
3597 | 3596 | | |
3598 | 3597 | | |
| |||
3605 | 3604 | | |
3606 | 3605 | | |
3607 | 3606 | | |
3608 | | - | |
| 3607 | + | |
| 3608 | + | |
3609 | 3609 | | |
3610 | 3610 | | |
3611 | 3611 | | |
| |||
3639 | 3639 | | |
3640 | 3640 | | |
3641 | 3641 | | |
3642 | | - | |
| 3642 | + | |
3643 | 3643 | | |
3644 | 3644 | | |
3645 | | - | |
| 3645 | + | |
3646 | 3646 | | |
3647 | 3647 | | |
3648 | 3648 | | |
3649 | 3649 | | |
3650 | 3650 | | |
3651 | | - | |
3652 | | - | |
3653 | | - | |
3654 | | - | |
| 3651 | + | |
| 3652 | + | |
| 3653 | + | |
| 3654 | + | |
3655 | 3655 | | |
3656 | | - | |
3657 | | - | |
3658 | 3656 | | |
3659 | 3657 | | |
3660 | 3658 | | |
| |||
4077 | 4075 | | |
4078 | 4076 | | |
4079 | 4077 | | |
4080 | | - | |
| 4078 | + | |
4081 | 4079 | | |
4082 | 4080 | | |
4083 | 4081 | | |
| |||
0 commit comments