linux_dsm_epyc7002/drivers/infiniband/hw/efa
Jason Gunthorpe 1f9b6827c8 RDMA/efa: Use ib_umem_num_dma_pages()
If ib_umem_find_best_pgsz() returns > PAGE_SIZE then the equation here is
not correct. 'start' should be 'virt'. Change it to use the core code for
page_num and the canonical calculation of page_shift.

Fixes: 40ddb3f020 ("RDMA/efa: Use API to get contiguous memory blocks aligned to device supported page size")
Link: https://lore.kernel.org/r/7-v2-270386b7e60b+28f4-umem_1_jgg@nvidia.com
Tested-by: Gal Pressman <galpress@amazon.com>
Acked-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-09-11 10:24:53 -03:00
..
efa_admin_cmds_defs.h RDMA/efa: Introduce SRD RNR retry 2020-08-18 14:52:45 -03:00
efa_admin_defs.h RDMA/efa: Unified getters/setters for device structs bitmask access 2020-02-28 12:12:04 -04:00
efa_com_cmd.c RDMA/efa: Introduce SRD RNR retry 2020-08-18 14:52:45 -03:00
efa_com_cmd.h RDMA/efa: Introduce SRD RNR retry 2020-08-18 14:52:45 -03:00
efa_com.c RDMA/efa: Count admin commands errors 2020-05-02 20:32:14 -03:00
efa_com.h RDMA/efa: Count admin commands errors 2020-05-02 20:32:14 -03:00
efa_common_defs.h RDMA/efa: Unified getters/setters for device structs bitmask access 2020-02-28 12:12:04 -04:00
efa_main.c RDMA/efa: Add EFA 0xefa1 PCI ID 2020-07-29 09:23:40 -03:00
efa_regs_defs.h RDMA/efa: Properly document the interrupt mask register 2020-02-28 12:12:12 -04:00
efa_verbs.c RDMA/efa: Use ib_umem_num_dma_pages() 2020-09-11 10:24:53 -03:00
efa.h RDMA: Allow fail of destroy CQ 2020-09-09 14:14:29 -03:00
Kconfig RDMA/efa: Add driver to Kconfig/Makefile 2019-05-07 12:47:47 -03:00
Makefile RDMA/efa: Add driver to Kconfig/Makefile 2019-05-07 12:47:47 -03:00