1. 15 Oct, 2017 34 commits
  2. 10 Oct, 2017 4 commits
    • Doug Ledford's avatar
      Merge tag 'mlx5-updates-2017-10-06' of... · 166245dd
      Doug Ledford authored
      Merge tag 'mlx5-updates-2017-10-06' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux into k.o/for-next
      
      Merge Mellanox shared pull request
      Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
      166245dd
    • Colin Ian King's avatar
      IB/core: remove redundant check on prot_sg_cnt · 318a8ab7
      Colin Ian King authored
      prot_sg_cnt cannot be zero as a previous check on ret (from which
      prot_sg_cnt is assigned) returns -ENOMEM if is it zero.  Since
      it cannot be zero we can simplify the code by removing the non
      -zero check on prot_sg_cnt and redundant else statement.
      
      Detected by CoverityScan, COD#1357188 ("Logically dead code")
      Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
      Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
      318a8ab7
    • Bart Van Assche's avatar
      IB/core: Simplify sa_path_set_[sd]lid() calls · 9d187177
      Bart Van Assche authored
      Instead of making every caller convert the second argument of
      sa_path_set_slid() and sa_path_set_dlid() to big endian format,
      make these two functions accept LIDs in CPU endian format.
      This patch does not change any functionality.
      Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
      Cc: Sean Hefty <sean.hefty@intel.com>
      Cc: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
      Cc: Don Hiatt <don.hiatt@intel.com>
      Cc: Ira Weiny <ira.weiny@intel.com>
      Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
      9d187177
    • Arnd Bergmann's avatar
      infiniband: add MMU dependency for user_mem · 9cc12ad6
      Arnd Bergmann authored
      The infiniband subsystem causes a link failure when the umem
      driver is built on MMU-less systems:
      
      mm/mmu_notifier.o: In function `do_mmu_notifier_register':
      mmu_notifier.c:(.text+0x32): undefined reference to `mm_take_all_locks'
      drivers/infiniband/core/umem.o: In function `ib_umem_get':
      umem.c:(.text+0x132): undefined reference to `can_do_mlock'
      drivers/infiniband/core/umem_odp.o: In function `ib_umem_odp_map_dma_pages':
      umem_odp.c:(.text+0x766): undefined reference to `get_user_pages_remote'
      
      This bug has existed for a while but only become apparent in ARM
      randconfig builds when the dependency on PCI was lifted, as none
      of the ARM-NOMMU targets support PCI at the moment.
      
      We could probably get the umem driver to build by providing an
      alternative implementation 'can_do_mlock()' that returns false
      on NOMMU-systems, but then we'd still have a problem with the
      mmu-notifiers required by CONFIG_INFINIBAND_ON_DEMAND_PAGING,
      so simply forbidding umem with NOMMU seems like the simplest
      workaround.
      
      Fixes: 931bc0d9 ("IB: Move PCI dependency from root KConfig to HW's KConfigs")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
      9cc12ad6
  3. 09 Oct, 2017 2 commits