linux/drivers/infiniband/hw/hns
Jason Gunthorpe cf9ce3c8ab RDMA/hns: Use ib_umem_num_dma_blocks() instead of opencoding
mtr_umem_page_count() does the same thing, replace it with the core code.

Also, ib_umem_find_best_pgsz() should always be called to check that the
umem meets the page_size requirement. If there is a limited set of
page_sizes that work it the pgsz_bitmap should be set to that set. 0 is a
failure and the umem cannot be used.

Lightly tidy the control flow to implement this flow properly.

Link: https://lore.kernel.org/r/12-v2-270386b7e60b+28f4-umem_1_jgg@nvidia.com
Acked-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-09-11 10:24:54 -03:00
..
hns_roce_ah.c RDMA: Restore ability to fail on AH destroy 2020-09-09 13:57:22 -03:00
hns_roce_alloc.c RDMA/umem: Add rdma_umem_for_each_dma_block() 2020-09-09 15:33:17 -03:00
hns_roce_cmd.c RDMA/hns: Optimize cmd init and mode selection for hip08 2019-09-16 10:52:20 -03:00
hns_roce_cmd.h RDMA/hns: Rename the functions used inside creating cq 2019-11-25 10:31:48 -04:00
hns_roce_common.h RDMA/hns: Remove unused code about assert 2020-05-25 14:02:12 -03:00
hns_roce_cq.c RDMA: Allow fail of destroy CQ 2020-09-09 14:14:29 -03:00
hns_roce_db.c IB: Allow calls to ib_umem_get from kernel ULPs 2020-01-16 16:14:28 +02:00
hns_roce_device.h RDMA: Allow fail of destroy CQ 2020-09-09 14:14:29 -03:00
hns_roce_hem.c RDMA/hns: Avoid unncessary initialization 2020-09-09 13:23:15 -03:00
hns_roce_hem.h RDMA/hns: Change all page_shift to unsigned 2020-05-25 14:02:12 -03:00
hns_roce_hw_v1.c RDMA: Allow fail of destroy CQ 2020-09-09 14:14:29 -03:00
hns_roce_hw_v1.h RDMA/hns: Remove asynchronic QP destroy 2019-04-24 10:55:31 -03:00
hns_roce_hw_v2_dfx.c RDMA/hns: Dump detailed driver-specific CQ 2019-04-08 13:05:25 -03:00
hns_roce_hw_v2.c RDMA/hns: Avoid unncessary initialization 2020-09-09 13:23:15 -03:00
hns_roce_hw_v2.h Revert "RDMA/hns: Reserve one sge in order to avoid local length error" 2020-08-20 08:35:19 -03:00
hns_roce_main.c RDMA/hns: Avoid unncessary initialization 2020-09-09 13:23:15 -03:00
hns_roce_mr.c RDMA/hns: Use ib_umem_num_dma_blocks() instead of opencoding 2020-09-11 10:24:54 -03:00
hns_roce_pd.c RDMA: Restore ability to fail on PD deallocate 2020-09-09 13:57:22 -03:00
hns_roce_qp.c Linux 5.9-rc3 2020-08-31 12:28:12 -03:00
hns_roce_restrack.c RDMA: Add a dedicated CQ resource tracker function 2020-06-23 11:46:27 -03:00
hns_roce_srq.c RDMA: Restore ability to fail on SRQ destroy 2020-09-09 14:14:24 -03:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile RDMA/hns: Fix build error again 2019-10-29 16:16:54 -03:00