diff options
| author | Raju Rangoju <[email protected]> | 2019-02-14 12:10:54 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2019-02-15 16:39:39 +0000 |
| commit | f09ef134a7ca3f0d2ce485a757f5b79809ebb803 (patch) | |
| tree | 67e380a63e30f141668ef179aee523140d12058b /drivers/fpga/fpga-mgr.c | |
| parent | cxgb4: Export sge_host_page_size to ulds (diff) | |
| download | kernel-f09ef134a7ca3f0d2ce485a757f5b79809ebb803.tar.gz kernel-f09ef134a7ca3f0d2ce485a757f5b79809ebb803.zip | |
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: 2391b0030e24 ("cxgb4: Remove SGE_HOST_PAGE_SIZE dependency on page size")
Signed-off-by: Raju Rangoju <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions
