linux_dsm_epyc7002/drivers/infiniband/hw/cxgb4
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
..
cm.c 4.21 merge window pull request 2018-12-28 14:57:10 -08:00
cq.c iw_cxgb4: Use proper enumerated type in c4iw_bar2_addrs 2018-09-25 14:37:17 -06:00
device.c iw_cxgb4: cq/qp mask depends on bar2 pages in a host page 2019-02-15 09:39:39 -07:00
ev.c rdma/cxgb4: Add support for 64Byte cqes 2018-07-13 11:52:55 -06:00
id_table.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
iw_cxgb4.h iw_cxgb4: pass window scale in flowc work request 2018-08-08 09:54:55 -06:00
Kconfig iw_cxgb4: add INFINIBAND_ADDR_TRANS dependency 2018-06-04 09:35:24 -06:00
Makefile iw_cxgb4: dump detailed driver-specific QP information 2018-05-03 15:51:27 -04:00
mem.c iw_cxgb4: correctly enforce the max reg_mr depth 2018-06-25 15:27:51 -06:00
provider.c RDMA/cxgb4: Initialize ib_device_ops struct 2018-12-11 15:15:07 -07:00
qp.c cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
resource.c rdma/cxgb4: Add support for kernel mode SRQ's 2018-07-25 21:08:04 -06:00
restrack.c iw_cxgb4: provide detailed driver-specific MR information 2018-05-24 09:39:25 -06:00
t4.h PCI: Remove pci_unmap_addr() wrappers for DMA API 2018-10-10 15:45:45 -05:00
t4fw_ri_api.h iw_cxgb4: Support FW write completion WR 2018-08-02 20:16:02 -06:00