• Raju Rangoju's avatar
    iw_cxgb4: cq/qp mask depends on bar2 pages in a host page · f09ef134
    Raju Rangoju authored
    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: 2391b003 ("cxgb4: Remove SGE_HOST_PAGE_SIZE dependency on page size")
    Signed-off-by: default avatarRaju Rangoju <rajur@chelsio.com>
    Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Last commit
Last update
core Loading commit data...
hw Loading commit data...
sw Loading commit data...
ulp Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...