linux/drivers/infiniband/hw/bnxt_re
Jason Gunthorpe e0477b34d9 RDMA: Explicitly pass in the dma_device to ib_register_device
The code in setup_dma_device has become rather convoluted, move all of
this to the drivers. Drives now pass in a DMA capable struct device which
will be used to setup DMA, or drivers must fully configure the ibdev for
DMA and pass in NULL.

Other than setting the masks in rvt all drivers were doing this already
anyhow.

mthca, mlx4 and mlx5 were already setting up maximum DMA segment size for
DMA based on their hardweare limits in:
__mthca_init_one()
  dma_set_max_seg_size (1G)

__mlx4_init_one()
  dma_set_max_seg_size (1G)

mlx5_pci_init()
  set_dma_caps()
    dma_set_max_seg_size (2G)

Other non software drivers (except usnic) were extended to UINT_MAX [1, 2]
instead of 2G as was before.

[1] https://lore.kernel.org/linux-rdma/20200924114940.GE9475@nvidia.com/
[2] https://lore.kernel.org/linux-rdma/20200924114940.GE9475@nvidia.com/

Link: https://lore.kernel.org/r/20201008082752.275846-1-leon@kernel.org
Link: https://lore.kernel.org/r/6b2ed339933d066622d5715903870676d8cc523a.1602590106.git.mchehab+huawei@kernel.org
Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-10-16 13:53:46 -03:00
..
bnxt_re.h RDMA: Fix link active_speed size 2020-09-18 10:31:24 -03:00
hw_counters.c bnxt_en: Update firmware interface to 1.10.1.54. 2020-07-27 11:47:33 -07:00
hw_counters.h RDMA/bnxt_re: Report out of sequence hw counters 2018-10-16 00:03:50 -06:00
ib_verbs.c RDMA/bnxt_re: Fix sizeof mismatch for allocation of pbl_tbl. 2020-10-06 16:56:36 -03:00
ib_verbs.h RDMA: Allow fail of destroy CQ 2020-09-09 14:14:29 -03:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
main.c RDMA: Explicitly pass in the dma_device to ib_register_device 2020-10-16 13:53:46 -03:00
Makefile infiniband: prefix header search paths with $(srctree)/ 2019-01-25 15:28:50 -07:00
qplib_fp.c Merge branch 'mlx5_active_speed' into rdma.git for-next 2020-09-18 10:31:45 -03:00
qplib_fp.h RDMA/bnxt_re: Change wr posting logic to accommodate variable wqes 2020-07-20 16:32:50 -03:00
qplib_rcfw.c Merge branch 'mlx5_active_speed' into rdma.git for-next 2020-09-18 10:31:45 -03:00
qplib_rcfw.h RDMA/bnxt_re: Fix the qp table indexing 2020-08-27 09:30:43 -03:00
qplib_res.c RDMA/bnxt_re: Use rdma_umem_for_each_dma_block() 2020-10-06 16:45:53 -03:00
qplib_res.h RDMA/bnxt_re: Use rdma_umem_for_each_dma_block() 2020-10-06 16:45:53 -03:00
qplib_sp.c RDMA/bnxt_re: Restrict the max_gids to 256 2020-08-27 09:30:44 -03:00
qplib_sp.h RDMA/bnxt_re: Restrict the max_gids to 256 2020-08-27 09:30:44 -03:00
roce_hsi.h RDMA/bnxt_re: Add helper data structures 2020-07-20 16:32:50 -03:00