OpenCloudOS-Kernel/drivers/infiniband/hw
Raju Rangoju f09ef134a7 iw_cxgb4: cq/qp mask depends on bar2 pages in a host page
Adjust the cq/qp mask based on the number of bar2 pages in a host page.

For user-mode rdma, the granularity of the BAR2 memory mapped to a user
rdma process during queue allocation must be based on the host page
size. The lld attributes udb_density and ucq_density are used to figure
out how many sge contexts are in a bar2 page. So the rdev->qpmask and
rdev->cqmask in iw_cxgb4 need to now be adjusted based on how many sge
bar2 pages are in a host page.

Otherwise the device fails to work on non 4k page size systems.

Fixes: 2391b0030e ("cxgb4: Remove SGE_HOST_PAGE_SIZE dependency on page size")
Signed-off-by: Raju Rangoju <rajur@chelsio.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-02-15 09:39:39 -07:00
..
bnxt_re cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
cxgb3 cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
cxgb4 iw_cxgb4: cq/qp mask depends on bar2 pages in a host page 2019-02-15 09:39:39 -07:00
hfi1 IB/hfi1: Remove overly conservative VM_EXEC flag check 2019-01-21 14:20:08 -07:00
hns RDMA/hns: Update the kernel header file of hns 2019-01-25 09:55:48 -07:00
i40iw cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
mlx4 IB/mlx4: Fix using wrong function to destroy sqp AHs under SRIOV 2019-01-21 14:20:08 -07:00
mlx5 RDMA/mlx5: Fix flow creation on representors 2019-01-25 11:58:06 -07:00
mthca First 5.0 rc pull request 2019-01-18 17:17:20 +12:00
nes 4.21 merge window pull request 2018-12-28 14:57:10 -08:00
ocrdma cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
qedr cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
qib IB/{hfi1, qib}: Fix WC.byte_len calculation for UD_SEND_WITH_IMM 2019-01-21 14:20:08 -07:00
usnic IB/usnic: Fix potential deadlock 2018-12-19 16:30:16 -07:00
vmw_pvrdma First 5.0 rc pull request 2019-01-18 17:17:20 +12:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00