1. 03 4月, 2015 1 次提交
  2. 14 1月, 2015 1 次提交
    • A
      infiniband: mlx5: avoid a compile-time warning · 7835bfb5
      Arnd Bergmann 提交于
      The return type of find_first_bit() is architecture specific,
      on ARM it is 'unsigned int', while the asm-generic code used
      on x86 and a lot of other architectures returns 'unsigned long'.
      
      When building the mlx5 driver on ARM, we get a warning about
      this:
      
      infiniband/hw/mlx5/mem.c: In function 'mlx5_ib_cont_pages':
      infiniband/hw/mlx5/mem.c:84:143: warning: comparison of distinct pointer types lacks a cast
           m = min(m, find_first_bit(&tmp, sizeof(tmp)));
      
      This patch changes the driver to use min_t to make it behave
      the same way on all architectures.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NEli Cohen <eli@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7835bfb5
  3. 16 12月, 2014 2 次提交
    • H
      IB/mlx5: Add mlx5_ib_update_mtt to update page tables after creation · 832a6b06
      Haggai Eran 提交于
      The new function allows updating the page tables of a memory region
      after it was created. This can be used to handle page faults and page
      invalidations.
      
      Since mlx5_ib_update_mtt will need to work from within page invalidation,
      so it must not block on memory allocation. It employs an atomic memory
      allocation mechanism that is used as a fallback when kmalloc(GFP_ATOMIC) fails.
      
      In order to reuse code from mlx5_ib_populate_pas, the patch splits
      this function and add the needed parameters.
      Signed-off-by: NHaggai Eran <haggaie@mellanox.com>
      Signed-off-by: NShachar Raindel <raindel@mellanox.com>
      Signed-off-by: NRoland Dreier <roland@purestorage.com>
      832a6b06
    • H
      IB/mlx5: Changes in memory region creation to support on-demand paging · cc149f75
      Haggai Eran 提交于
      This patch wraps together several changes needed for on-demand paging support
      in the mlx5_ib_populate_pas function, and when registering memory regions.
      
      * Instead of accepting a UMR bit telling the function to enable all
        access flags, the function now accepts the access flags themselves.
      * For on-demand paging memory regions, fill the memory tables from the
        correct list, and enable/disable the access flags per-page according
        to whether the page is present.
      * A new bit is set to enable writing of access flags when using the
        firmware create_mkey command.
      * Disable contig pages when on-demand paging is enabled.
      
      In addition the patch changes the UMR code to use PTR_ALIGN instead of
      our own macro.
      Signed-off-by: NHaggai Eran <haggaie@mellanox.com>
      Signed-off-by: NRoland Dreier <roland@purestorage.com>
      cc149f75
  4. 09 10月, 2014 1 次提交
  5. 31 7月, 2014 1 次提交
  6. 05 3月, 2014 1 次提交
  7. 09 7月, 2013 1 次提交