1. 23 6月, 2016 4 次提交
  2. 07 6月, 2016 33 次提交
  3. 27 5月, 2016 3 次提交
    • C
      IB/core: Make device counter infrastructure dynamic · b40f4757
      Christoph Lameter 提交于
      In practice, each RDMA device has a unique set of counters that the
      hardware implements.  Having a central set of counters that they must
      all adhere to is limiting and causes many useful counters to not be
      available.
      
      Therefore we create a dynamic counter registration infrastructure.
      
      The driver must implement a stats structure allocation routine, in
      which the driver must place the directory name it wants, a list of
      names for all of the counters, an array of u64 counters themselves,
      plus a few generic configuration options.
      
      We then implement a core routine to create a sysfs file for each
      of the named stats elements, and a core routine to retrieve the
      stats when any of the sysfs attribute files are read.
      
      To avoid excessive beating on the stats generation routine in the
      drivers, the core code also caches the stats for a short period of
      time so that someone attempting to read all of the stats in a
      given device's directory will not result in a stats generation
      call per file read.
      
      Future work will attempt to standardize just the shared stats
      elements, and possibly add a method to get the stats via netlink
      in addition to sysfs.
      Signed-off-by: NChristoph Lameter <cl@linux.com>
      Signed-off-by: NMark Bloch <markb@mellanox.com>
      Reviewed-by: NSteve Wise <swise@opengridcomputing.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      [ Add caching, make structure names more informative, add i40iw support,
        other significant rewrites from the original patch ]
      b40f4757
    • J
      IB/hfi1: Fix pio map initialization · f1584865
      Jubin John 提交于
      The pio map initialization function is off by 1 causing the last
      kernel send context that is allocated to not get mapped into the
      pio map which leads to the last kernel send context not being used
      by any of the qps.
      
      The send context reserved for VL15 is taken care of by setting the
      scontext variable that is used as the index into the kernel send
      context array to 1 and does not need to be accounted for in the
      kernel send context counting loop as it is currently done.
      
      Fix the kernel send context counting loop to account for all the
      allocated send contexts and map all of them to the different VLs.
      Reviewed-by: NDennis Dalessandro <dennis.dalessandro@intel.com>
      Reviewed-by: NMike Marciniszyn <mike.marciniszyn@intel.com>
      Reviewed-by: NJianxin Xiong <jianxin.xiong@intel.com>
      Signed-off-by: NJubin John <jubin.john@intel.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      f1584865
    • D
      IB/hfi1: Correct 8051 link parameter settings · f6de3d39
      Dean Luick 提交于
      Two 8051 link settings, external device config and tuning method,
      were written in the wrong location and the previous settings were
      not cleared.  For both, clear the old value and write the new
      value.
      
      Fixes: 8ebd4cf1 ("staging/rdma/hfi1: Add active and optical cable support")
      Reviewed-by: NDennis Dalessandro <dennis.dalessandro@intel.com>
      Signed-off-by: NDean Luick <dean.luick@intel.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      f6de3d39