1. 23 8月, 2017 2 次提交
  2. 01 8月, 2017 1 次提交
    • K
      IB/hfi1: Serve the most starved iowait entry first · bcad2913
      Kaike Wan 提交于
      When an egress resource(SDMA descriptors, pio credits) is not available,
      a sending thread will be put on the resource's wait queue. When the
      resource becomes available again, up to a fixed number of sending threads
      can be awakened sequentially and removed from the wait queue, depending
      on the number of waiting threads and the number of free resources. Since
      each awakened sending thread will send as many packets as possible, it
      is highly likely that the first sending thread will consume all the
      egress resources. Subsequently, it will be put back to the end of the wait
      queue. Depending on the timing when the later sending threads wake up,
      they may not be able to send any packet and be again put back to the end
      of the wait queue sequentially, right behind the first sending thread.
      This starvation cycle continues until some sending threads exceed their
      retry limit and consequently fail.
      
      This patch fixes the issue by two simple approaches:
      (1) Any starved sending thread will be put to the head of the wait queue
      while a served sending thread will be put to the tail;
      (2) The most starved sending thread will be served first.
      Reviewed-by: NMike Marciniszyn <mike.marciniszyn@intel.com>
      Signed-off-by: NKaike Wan <kaike.wan@intel.com>
      Signed-off-by: NDennis Dalessandro <dennis.dalessandro@intel.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      bcad2913
  3. 28 6月, 2017 2 次提交
  4. 05 5月, 2017 2 次提交
  5. 02 5月, 2017 2 次提交
  6. 29 4月, 2017 1 次提交
  7. 06 4月, 2017 2 次提交
    • D
      IB/hfi1: Add transmit fault injection feature · 243d9f43
      Don Hiatt 提交于
      Add ability to fault packets on transmit by opcode.
      Dropping by packet can be achieved by setting the mask to 0.
      
      In order to drop non-verbs traffic we set PbcInsertHrc
      to NONE (0x2). The packet will still be delivered to
      the receiving node but a KHdrHCRCErr (KDETH packet
      with a bad HCRC) will be triggered and the packet will
      not be delivered to the correct context.
      
      In order to drop regular verbs traffic we set the
      PbcTestEbp flag. The packet will still be delivered
      to the receiving node but a 'late ebp error' will
      be triggered and will be dropped.
      
      A global toggle (/sys/kernel/debug/hfi1/hfi1_X/fault_suppress_err)
      has been added to suppress the error messages on the receive
      node when a packet was faulted on the sending node.
      Reviewed-by: NDennis Dalessandro <dennis.dalessandro@intel.com>
      Signed-off-by: NMike Marciniszyn <mike.marciniszyn@intel.com>
      Signed-off-by: NDon Hiatt <don.hiatt@intel.com>
      Signed-off-by: NDennis Dalessandro <dennis.dalessandro@intel.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      243d9f43
    • D
      IB/hfi1: Add receive fault injection feature · 0181ce31
      Don Hiatt 提交于
      Add fault injection capability:
        - Drop packets unconditionally (fault_by_packet)
        - Drop packets based on opcode (fault_by_opcode)
      
      This feature reacts to the global FAULT_INJECTION
      config flag.
      
      The faulting traces have been added:
        - misc/fault_opcode
        - misc/fault_packet
      
      See 'Documentation/fault-injection/fault-injection.txt'
      for details.
      
      Examples:
        - Dropping packets by opcode:
          /sys/kernel/debug/hfi1/hfi1_X/fault_opcode
      	# Enable fault
      	echo Y > fault_by_opcode
      	# Setprobability of dropping (0-100%)
      	# echo 25 > probability
      	# Set opcode
      	echo 0x64 > opcode
      	# Number of times to fault
      	echo 3 > times
      	# An optional mask allows you to fault
      	# a range of opcodes
      	echo 0xf0 > mask
          /sys/kernel/debug/hfi1/hfi1_X/fault_stats
          contains a value in parentheses to indicate
          number of each opcode dropped.
      
        - Dropping packets unconditionally
          /sys/kernel/debug/hfi1/hfi1_X/fault_packet
      	# Enable fault
      	echo Y > fault_by_packet
          /sys/kernel/debug/hfi1/hfi1_X/fault_packet/fault_stats
          contains the number of packets dropped.
      Reviewed-by: NDennis Dalessandro <dennis.dalessandro@intel.com>
      Signed-off-by: NMike Marciniszyn <mike.marciniszyn@intel.com>
      Signed-off-by: NDon Hiatt <don.hiatt@intel.com>
      Signed-off-by: NDennis Dalessandro <dennis.dalessandro@intel.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      0181ce31
  8. 19 2月, 2017 5 次提交
  9. 16 11月, 2016 2 次提交
  10. 02 10月, 2016 2 次提交
  11. 03 8月, 2016 3 次提交
  12. 27 5月, 2016 1 次提交
  13. 26 5月, 2016 1 次提交
  14. 29 4月, 2016 2 次提交
  15. 18 3月, 2016 1 次提交
  16. 11 3月, 2016 11 次提交