1. 11 9月, 2020 1 次提交
    • J
      RDMA/umem: Split ib_umem_num_pages() into ib_umem_num_dma_blocks() · a665aca8
      Jason Gunthorpe 提交于
      ib_umem_num_pages() should only be used by things working with the SGL in
      CPU pages directly.
      
      Drivers building DMA lists should use the new ib_num_dma_blocks() which
      returns the number of blocks rdma_umem_for_each_block() will return.
      
      To make this general for DMA drivers requires a different implementation.
      Computing DMA block count based on umem->address only works if the
      requested page size is < PAGE_SIZE and/or the IOVA == umem->address.
      
      Instead the number of DMA pages should be computed in the IOVA address
      space, not umem->address. Thus the IOVA has to be stored inside the umem
      so it can be used for these calculations.
      
      For now set it to umem->address by default and fix it up if
      ib_umem_find_best_pgsz() was called. This allows drivers to be converted
      to ib_umem_num_dma_blocks() safely.
      
      Link: https://lore.kernel.org/r/6-v2-270386b7e60b+28f4-umem_1_jgg@nvidia.comSigned-off-by: NJason Gunthorpe <jgg@nvidia.com>
      a665aca8
  2. 10 9月, 2020 5 次提交
  3. 03 6月, 2020 2 次提交
  4. 03 5月, 2020 1 次提交
  5. 05 3月, 2020 1 次提交
  6. 16 1月, 2020 1 次提交
  7. 17 11月, 2019 1 次提交
  8. 21 6月, 2019 1 次提交
  9. 19 6月, 2019 1 次提交
  10. 12 6月, 2019 2 次提交
  11. 11 6月, 2019 3 次提交
  12. 09 4月, 2019 2 次提交
  13. 02 4月, 2019 3 次提交
  14. 29 3月, 2019 1 次提交
  15. 23 2月, 2019 1 次提交
  16. 16 2月, 2019 1 次提交
  17. 12 2月, 2019 1 次提交
  18. 09 2月, 2019 1 次提交
  19. 15 1月, 2019 2 次提交
  20. 11 1月, 2019 5 次提交
  21. 20 12月, 2018 2 次提交
  22. 19 12月, 2018 1 次提交
  23. 12 12月, 2018 1 次提交