Skip to content
  1. Oct 16, 2020
    • Jason Gunthorpe's avatar
      lib/scatterlist: Do not limit max_segment to PAGE_ALIGNED values · 9a40401c
      Jason Gunthorpe authored
      
      
      The main intention of the max_segment argument to
      __sg_alloc_table_from_pages() is to match the DMA layer segment size set
      by dma_set_max_seg_size().
      
      Restricting the input to be page aligned makes it impossible to just
      connect the DMA layer to this API.
      
      The only reason for a page alignment here is because the algorithm will
      overshoot the max_segment if it is not a multiple of PAGE_SIZE. Simply fix
      the alignment before starting and don't expose this implementation detail
      to the callers.
      
      A future patch will completely remove SCATTERLIST_MAX_SEGMENT.
      
      Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
      9a40401c
    • Jason Gunthorpe's avatar
      Merge branch 'dynamic_sg' into rdma.git for-next · 16e7483e
      Jason Gunthorpe authored
      From Maor Gottlieb says:
      
      ====================
      This series extends __sg_alloc_table_from_pages to allow chaining of new
      pages to an already initialized SG table.
      
      This allows for drivers to utilize the optimization of merging contiguous
      pages without a need to pre allocate all the pages and hold them in a very
      large temporary buffer prior to the call to SG table initialization.
      
      The last patch changes the Infiniband core to use the new API. It removes
      duplicate functionality from the code and benefits from the optimization
      of allocating dynamic SG table from pages.
      
      In huge pages system of 2MB page size, without this change, the SG table
      would contain x512 SG entries.
      ====================
      
      * branch 'dynamic_sg':
        RDMA/umem: Move to allocate SG table from pages
        lib/scatterlist: Add support in dynamic allocation of SG table from pages
        tools/testing/scatterlist: Show errors in human readable form
        tools/testing/scatterlist: Rejuvenate bit-rotten test
      16e7483e
  2. Oct 09, 2020
  3. Oct 07, 2020
  4. Oct 06, 2020
  5. Oct 05, 2020
  6. Oct 04, 2020
  7. Oct 03, 2020