1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
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.h i40e: Move client header location 2020-06-25 22:25:13 -07: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: add hmc resource files 2016-02-29 17:10:53 -05:00
i40iw_hmc.h i40iw: add hmc resource files 2016-02-29 17:10:53 -05:00
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: Simplify code 2017-08-18 14:01:08 -04:00
i40iw_pble.h i40iw: add pble resource files 2016-02-29 17:10:53 -05:00
i40iw_puda.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
i40iw_puda.h i40iw: Free IEQ resources 2018-01-16 20:38:18 -07:00
i40iw_register.h i40iw: add X722 register file 2016-03-16 13:50:53 -04:00
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: Use utility function roundup_pow_of_two() 2017-12-22 13:37:51 -07:00
i40iw_user.h i40iw: Remove limit on re-posting AEQ entries to HW 2018-01-16 20:38:18 -07:00
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: constify i40iw_vf_cqp_ops structure 2016-05-13 13:47:07 -04:00
i40iw_vf.h i40iw: constify i40iw_vf_cqp_ops structure 2016-05-13 13:47:07 -04:00
i40iw_virtchnl.c RDMA/i40iw: fix duplicated code for different branches 2017-06-01 17:00:29 -04:00
i40iw_virtchnl.h i40iw: virtual channel handling files 2016-03-16 13:50:53 -04: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