1. 05 3月, 2016 1 次提交
  2. 02 3月, 2016 14 次提交
  3. 01 3月, 2016 3 次提交
  4. 17 2月, 2016 4 次提交
    • H
      net/mlx4_core: Set UAR page size to 4KB regardless of system page size · 85743f1e
      Huy Nguyen 提交于
      problem description:
      
      The current code sets UAR page size equal to system page size.
      The ConnectX-3 and ConnectX-3 Pro HWs require minimum 128 UAR pages.
      The mlx4 kernel drivers are not loaded if there is less than 128 UAR pages.
      
      solution:
      
      Always set UAR page to 4KB. This allows more UAR pages if the OS
      has PAGE_SIZE larger than 4KB. For example, PowerPC kernel use 64KB
      system page size, with 4MB uar region, there are 4MB/2/64KB = 32
      uars (half for uar, half for blueflame). This does not meet minimum 128
      UAR pages requirement. With 4KB UAR page, there are 4MB/2/4KB = 512 uars
      which meet the minimum requirement.
      
      Note that only codes in mlx4_core that deal with firmware know that uar
      page size is 4KB. Codes that deal with usr page in cq and qp context
      (mlx4_ib, mlx4_en and part of mlx4_core) still have the same assumption
      that uar page size equals to system page size.
      
      Note that with this implementation, on 64KB system page size kernel, there
      are 16 uars per system page but only one uars is used. The other 15
      uars are ignored because of the above assumption.
      
      Regarding SR-IOV, mlx4_core in hypervisor will set the uar page size
      to 4KB and mlx4_core code in virtual OS will obtain the uar page size from
      firmware.
      
      Regarding backward compatibility in SR-IOV, if hypervisor has this new code,
      the virtual OS must be updated. If hypervisor has old code, and the virtual
      OS has this new code, the new code will be backward compatible with the
      old code. If the uar size is big enough, this new code in VF continues to
      work with 64 KB uar page size (on PowerPc kernel). If the uar size does not
      meet 128 uars requirement, this new code not loaded in VF and print the same
      error message as the old code in Hypervisor.
      Signed-off-by: NHuy Nguyen <huyn@mellanox.com>
      Reviewed-by: NYishai Hadas <yishaih@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      85743f1e
    • E
      IB/mlx4: Add support for the port info class for RoCE ports · c2bab619
      Eran Ben Elisha 提交于
      Report that driver supports IB_PMA_CLASS_CAP_EXT_WIDTH in respond for
      IB_MGMT_CLASS_PERF_MGMT mad with IB_PMA_CLASS_PORT_INFO attr id.
      Signed-off-by: NEran Ben Elisha <eranbe@mellanox.com>
      Signed-off-by: NMatan Barak <matanb@mellanox.com>
      Reviewed-by: NOr Gerlitz <ogerlitz@mellanox.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      c2bab619
    • E
      IB/mlx4: Add support for extended counters over RoCE ports · c3c0c836
      Eran Ben Elisha 提交于
      When attribute IB_PMA_PORT_COUNTERS_EXT is set, we now return 64 bit
      values for the counters.
      Signed-off-by: NEran Ben Elisha <eranbe@mellanox.com>
      Signed-off-by: NMatan Barak <matanb@mellanox.com>
      Reviewed-by: NOr Gerlitz <ogerlitz@mellanox.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      c3c0c836
    • D
      RDMA/ocrdma: Fix arm logic to align with new cq API · b41f7852
      Devesh Sharma 提交于
      Today ocrdma driver defer arming the CQ till poll is called.
      This was used to prevent calling poll-cq on an armed CQ.
      
      Recently a set of new CQ API has been introduced into the linux
      kernel. The implementation of this API guarantees that a given
      CQ is never armed before calling poll on it. Most of the kernel
      ULPs have already moved to use this new API or have a code where
      poll is called before arming the CQ.
      
      Thus, the above workaround in ocrdma is not needed anymore.
      This patch removes the additional logic to deffer arm till poll
      is called. This patch adds a simple scheme where ib_req_notify_cq()
      will actually arm the cq.
      Signed-off-by: NDevesh Sharma <devesh.sharma@broadcom.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      b41f7852
  5. 13 2月, 2016 1 次提交
  6. 06 2月, 2016 4 次提交
  7. 03 2月, 2016 4 次提交
  8. 23 1月, 2016 1 次提交
    • A
      wrappers for ->i_mutex access · 5955102c
      Al Viro 提交于
      parallel to mutex_{lock,unlock,trylock,is_locked,lock_nested},
      inode_foo(inode) being mutex_foo(&inode->i_mutex).
      
      Please, use those for access to ->i_mutex; over the coming cycle
      ->i_mutex will become rwsem, with ->lookup() done with it held
      only shared.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      5955102c
  9. 22 1月, 2016 8 次提交