linux/drivers/infiniband/hw/qedr
Kalderon, Michal 30bf066cd9 RDMA/qedr: Fix doorbell bar mapping for dpi > 1
Each user_context receives a separate dpi value and thus a different
address on the doorbell bar. The qedr_mmap function needs to validate
the address and map the doorbell bar accordingly.
The current implementation always checked against dpi=0 doorbell range
leading to a wrong mapping for doorbell bar. (It entered an else case
that mapped the address differently). qedr_mmap should only be used
for doorbells, so the else was actually wrong in the first place.
This only has an affect on arm architecture and not an issue on a
x86 based architecture.
This lead to doorbells not occurring on arm based systems and left
applications that use more than one dpi (or several applications
run simultaneously ) to hang.

Fixes: ac1b36e55a ("qedr: Add support for user context verbs")
Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2018-05-23 15:12:14 -06:00
..
Kconfig Updates for 4.15 kernel merge window 2017-11-15 14:54:53 -08:00
Makefile RDMA/qedr: Add iWARP connection management qp related callbacks 2017-08-18 12:26:38 -04:00
main.c Merge candidates for 4.17 merge window 2018-04-06 17:35:43 -07:00
qedr.h Merge branch 'for-next-early' into for-next 2017-10-18 13:07:13 -04:00
qedr_hsi_rdma.h qed*: Utilize FW 8.33.11.0 2018-03-29 14:18:02 -04:00
qedr_iw_cm.c RDMA/qedr: Fix iWARP connect with port mapper 2018-03-06 19:57:37 -07:00
qedr_iw_cm.h RDMA/qedr: Add iWARP connection management functions 2017-08-18 12:27:14 -04:00
qedr_roce_cm.c IB/providers: Avoid null netdev check for RoCE 2018-04-03 21:33:51 -06:00
qedr_roce_cm.h RDMA/qedr: Rename the qedr_cm file as a preparation for iWARP support 2017-08-18 12:25:18 -04:00
verbs.c RDMA/qedr: Fix doorbell bar mapping for dpi > 1 2018-05-23 15:12:14 -06:00
verbs.h RDMA/providers: Simplify query_gid callback of RoCE providers 2018-04-03 21:33:47 -06:00