Home
last modified time | relevance | path

Searched hist:"1 f9b6827c85f9d9786f31a1434a16c917aae23b2" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/infiniband/hw/efa/
H A Defa_verbs.cdiff 1f9b6827c85f9d9786f31a1434a16c917aae23b2 Fri Sep 04 17:41:48 CDT 2020 Jason Gunthorpe <jgg@nvidia.com> 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: 40ddb3f02083 ("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>