linux/drivers/infiniband/hw/i40iw
Jason Gunthorpe 22123a0e49 RDMA/i40iw: 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: eb52c0333f ("RDMA/i40iw: Use core helpers to get aligned DMA address within a supported page size")
Link: https://lore.kernel.org/r/8-v2-270386b7e60b+28f4-umem_1_jgg@nvidia.com
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-09-11 10:24:53 -03:00
..
i40iw_cm.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
i40iw_cm.h RDMA: Replace zero-length array with flexible-array member 2020-02-20 13:33:51 -04:00
i40iw_ctrl.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
i40iw_d.h i40iw: Report correct firmware version 2020-03-18 13:53:44 -03:00
i40iw_hmc.c
i40iw_hmc.h
i40iw_hw.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
i40iw_main.c RDMA/i40iw: Convert tasklets to use new tasklet_setup() API 2020-09-03 12:01:52 -03:00
i40iw_osdep.h i40iw: Redefine i40iw_mmiowb() to do nothing 2019-04-08 12:09:15 +01:00
i40iw_p.h i40iw: Report correct firmware version 2020-03-18 13:53:44 -03:00
i40iw_pble.c
i40iw_pble.h
i40iw_puda.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
i40iw_puda.h
i40iw_register.h
i40iw_status.h i40iw: Report correct firmware version 2020-03-18 13:53:44 -03:00
i40iw_type.h i40iw: Report correct firmware version 2020-03-18 13:53:44 -03:00
i40iw_uk.c
i40iw_user.h
i40iw_utils.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
i40iw_verbs.c RDMA/i40iw: Use ib_umem_num_dma_pages() 2020-09-11 10:24:53 -03:00
i40iw_verbs.h RDMA/i40iw: Remove FMR leftovers 2020-06-02 20:32:54 -03:00
i40iw_vf.c
i40iw_vf.h
i40iw_virtchnl.c
i40iw_virtchnl.h
i40iw.h i40e: Move client header location 2020-06-25 22:25:13 -07:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile i40e: Move client header location 2020-06-25 22:25:13 -07:00