^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) sysfs interface common for all infiniband devices
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) -------------------------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) What: /sys/class/infiniband/<device>/node_type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) What: /sys/class/infiniband/<device>/node_guid
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) What: /sys/class/infiniband/<device>/sys_image_guid
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) Date: Apr, 2005
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) KernelVersion: v2.6.12
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) =============== ===========================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) node_type: (RO) Node type (CA, RNIC, usNIC, usNIC UDP,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) switch or router)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) node_guid: (RO) Node GUID
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) sys_image_guid: (RO) System image GUID
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) =============== ===========================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) What: /sys/class/infiniband/<device>/node_desc
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) Date: Feb, 2006
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) KernelVersion: v2.6.17
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) (RW) Update the node description with information such as the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) node's hostname, so that IB network management software can tie
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) its view to the real world.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) What: /sys/class/infiniband/<device>/fw_ver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) Date: Jun, 2016
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) KernelVersion: v4.10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) (RO) Display firmware version
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) What: /sys/class/infiniband/<device>/ports/<port-num>/lid
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) What: /sys/class/infiniband/<device>/ports/<port-num>/rate
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) What: /sys/class/infiniband/<device>/ports/<port-num>/lid_mask_count
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) What: /sys/class/infiniband/<device>/ports/<port-num>/sm_sl
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) What: /sys/class/infiniband/<device>/ports/<port-num>/sm_lid
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) What: /sys/class/infiniband/<device>/ports/<port-num>/state
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) What: /sys/class/infiniband/<device>/ports/<port-num>/phys_state
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) What: /sys/class/infiniband/<device>/ports/<port-num>/cap_mask
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) Date: Apr, 2005
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) KernelVersion: v2.6.12
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) =============== ===============================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) lid: (RO) Port LID
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) rate: (RO) Port data rate (active width * active
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) speed)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) lid_mask_count: (RO) Port LID mask count
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) sm_sl: (RO) Subnet manager SL for port's subnet
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) sm_lid: (RO) Subnet manager LID for port's subnet
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) state: (RO) Port state (DOWN, INIT, ARMED, ACTIVE or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) ACTIVE_DEFER)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) phys_state: (RO) Port physical state (Sleep, Polling,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) LinkUp, etc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) cap_mask: (RO) Port capability mask. 2 bits here are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) settable- IsCommunicationManagementSupported
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) (set when CM module is loaded) and IsSM (set
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) via open of issmN file).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) =============== ===============================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) What: /sys/class/infiniband/<device>/ports/<port-num>/link_layer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) Date: Oct, 2010
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) KernelVersion: v2.6.37
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) (RO) Link layer type information (Infiniband or Ethernet type)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/symbol_error
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_rcv_errors
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_rcv_remote_physical_errors
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_rcv_switch_relay_errors
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/link_error_recovery
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_xmit_constraint_errors
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_rcv_contraint_errors
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/local_link_integrity_errors
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/excessive_buffer_overrun_errors
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_xmit_data
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_rcv_data
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_xmit_packets
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_rcv_packets
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/unicast_rcv_packets
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/unicast_xmit_packets
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/multicast_rcv_packets
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/multicast_xmit_packets
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/link_downed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_xmit_discards
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/VL15_dropped
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) What: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_xmit_wait
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) Date: Apr, 2005
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) KernelVersion: v2.6.12
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) **Errors info**:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) symbol_error: (RO) Total number of minor link errors detected on
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) one or more physical lanes.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) port_rcv_errors : (RO) Total number of packets containing an
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) error that were received on the port.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) port_rcv_remote_physical_errors : (RO) Total number of packets
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) marked with the EBP delimiter received on the port.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) port_rcv_switch_relay_errors : (RO) Total number of packets
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) received on the port that were discarded because they could not
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) be forwarded by the switch relay.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) link_error_recovery: (RO) Total number of times the Port
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) Training state machine has successfully completed the link error
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) recovery process.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) port_xmit_constraint_errors: (RO) Total number of packets not
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) transmitted from the switch physical port due to outbound raw
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) filtering or failing outbound partition or IP version check.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) port_rcv_constraint_errors: (RO) Total number of packets
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) received on the switch physical port that are discarded due to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) inbound raw filtering or failing inbound partition or IP version
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) check.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) local_link_integrity_errors: (RO) The number of times that the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) count of local physical errors exceeded the threshold specified
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) by LocalPhyErrors
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) excessive_buffer_overrun_errors: (RO) This counter, indicates an
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) input buffer overrun. It indicates possible misconfiguration of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) a port, either by the Subnet Manager (SM) or by user
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) intervention. It can also indicate hardware issues or extremely
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) poor link signal integrity
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) **Data info**:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) port_xmit_data: (RO) Total number of data octets, divided by 4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) (lanes), transmitted on all VLs. This is 64 bit counter
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) port_rcv_data: (RO) Total number of data octets, divided by 4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) (lanes), received on all VLs. This is 64 bit counter.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) port_xmit_packets: (RO) Total number of packets transmitted on
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) all VLs from this port. This may include packets with errors.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) This is 64 bit counter.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) port_rcv_packets: (RO) Total number of packets (this may include
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) packets containing Errors. This is 64 bit counter.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) link_downed: (RO) Total number of times the Port Training state
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) machine has failed the link error recovery process and downed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) the link.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) unicast_rcv_packets: (RO) Total number of unicast packets,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) including unicast packets containing errors.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) unicast_xmit_packets: (RO) Total number of unicast packets
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) transmitted on all VLs from the port. This may include unicast
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) packets with errors.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) multicast_rcv_packets: (RO) Total number of multicast packets,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) including multicast packets containing errors.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) multicast_xmit_packets: (RO) Total number of multicast packets
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) transmitted on all VLs from the port. This may include multicast
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) packets with errors.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) **Misc info**:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) port_xmit_discards: (RO) Total number of outbound packets
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) discarded by the port because the port is down or congested.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) VL15_dropped: (RO) Number of incoming VL15 packets dropped due
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) to resource limitations (e.g., lack of buffers) of the port.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) port_xmit_wait: (RO) The number of ticks during which the port
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) had data to transmit but no data was sent during the entire tick
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) (either because of insufficient credits or because of lack of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) arbitration).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) Each of these files contains the corresponding value from the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) port's Performance Management PortCounters attribute, as
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) described in the InfiniBand Architecture Specification.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) What: /sys/class/infiniband/<device-name>/hw_counters/lifespan
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) What: /sys/class/infiniband/<device-name>/ports/<port-num>/hw_counters/lifespan
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) Date: May, 2016
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) KernelVersion: 4.6
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) The optional "hw_counters" subdirectory can be under either the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) parent device or the port subdirectories or both. If present,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) there are a list of counters provided by the hardware. They may
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) match some of the counters in the counters directory, but they
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) often include many other counters. In addition to the various
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) counters, there will be a file named "lifespan" that configures
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) how frequently the core should update the counters when they are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) being accessed (counters are not updated if they are not being
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) accessed). The lifespan is in milliseconds and defaults to 10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) unless set to something else by the driver. Users may echo a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) value between 0-10000 to the lifespan file to set the length
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) of time between updates in milliseconds.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) What: /sys/class/infiniband/<hca>/ports/<port-number>/gid_attrs/ndevs/<gid-index>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) Date: November 29, 2015
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) KernelVersion: 4.4.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) Description: The net-device's name associated with the GID resides
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) at index <gid-index>.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) What: /sys/class/infiniband/<hca>/ports/<port-number>/gid_attrs/types/<gid-index>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) Date: November 29, 2015
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) KernelVersion: 4.4.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) Description: The RoCE type of the associated GID resides at index <gid-index>.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) This could either be "IB/RoCE v1" for IB and RoCE v1 based GIDs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) or "RoCE v2" for RoCE v2 based GIDs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) What: /sys/class/infiniband_mad/umadN/ibdev
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) What: /sys/class/infiniband_mad/umadN/port
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) What: /sys/class/infiniband_mad/issmN/ibdev
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238) What: /sys/class/infiniband_mad/issmN/port
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239) Date: Apr, 2005
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) KernelVersion: v2.6.12
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243) Each port of each InfiniBand device has a "umad" device and an
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244) "issm" device attached. For example, a two-port HCA will have
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245) two umad devices and two issm devices, while a switch will have
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246) one device of each type (for switch port 0).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 248) ======= =====================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 249) ibdev: (RO) Show Infiniband (IB) device name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 250)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 251) port: (RO) Display port number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 252) ======= =====================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 253)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 254)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 255) What: /sys/class/infiniband_mad/abi_version
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 256) Date: Apr, 2005
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 257) KernelVersion: v2.6.12
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 258) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 259) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 260) (RO) Value is incremented if any changes are made that break
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 261) userspace ABI compatibility of umad & issm devices.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 262)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 263)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 264) What: /sys/class/infiniband_verbs/uverbsN/ibdev
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 265) What: /sys/class/infiniband_verbs/uverbsN/abi_version
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 266) Date: Sept, 2005
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 267) KernelVersion: v2.6.14
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 268) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 269) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 270) =============== ===========================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 271) ibdev: (RO) Display Infiniband (IB) device name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 272)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 273) abi_version: (RO) Show ABI version of IB device specific
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 274) interfaces.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 275) =============== ===========================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 276)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 277)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 278) What: /sys/class/infiniband_verbs/abi_version
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 279) Date: Sep, 2005
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 280) KernelVersion: v2.6.14
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 281) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 282) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 283) (RO) Value is incremented if any changes are made that break
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 284) userspace ABI compatibility of uverbs devices.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 285)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 286)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 287) sysfs interface for Mellanox IB HCA low-level driver (mthca)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 288) ------------------------------------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 289)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 290) What: /sys/class/infiniband/mthcaX/hw_rev
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 291) What: /sys/class/infiniband/mthcaX/hca_type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 292) What: /sys/class/infiniband/mthcaX/board_id
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 293) Date: Apr, 2005
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 294) KernelVersion: v2.6.12
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 295) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 296) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 297) =============== ================================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 298) hw_rev: (RO) Hardware revision number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 299)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 300) hca_type: (RO) Host Channel Adapter type: MT23108, MT25208
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 301) (MT23108 compat mode), MT25208 or MT25204
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 302)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 303) board_id: (RO) Manufacturing board ID
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 304) =============== ================================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 305)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 306)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 307) sysfs interface for Mellanox ConnectX HCA IB driver (mlx4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 308) ----------------------------------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 309)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 310) What: /sys/class/infiniband/mlx4_X/hw_rev
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 311) What: /sys/class/infiniband/mlx4_X/hca_type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 312) What: /sys/class/infiniband/mlx4_X/board_id
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 313) Date: Sep, 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 314) KernelVersion: v2.6.24
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 315) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 316) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 317) =============== ===============================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 318) hw_rev: (RO) Hardware revision number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 319)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 320) hca_type: (RO) Host channel adapter type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 321)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 322) board_id: (RO) Manufacturing board ID
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 323) =============== ===============================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 324)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 325)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 326) What: /sys/class/infiniband/mlx4_X/iov/ports/<port-num>/gids/<n>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 327) What: /sys/class/infiniband/mlx4_X/iov/ports/<port-num>/admin_guids/<n>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 328) What: /sys/class/infiniband/mlx4_X/iov/ports/<port-num>/pkeys/<n>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 329) What: /sys/class/infiniband/mlx4_X/iov/ports/<port-num>/mcgs/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 330) What: /sys/class/infiniband/mlx4_X/iov/ports/<pci-slot-num>/ports/<m>/gid_idx/0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 331) What: /sys/class/infiniband/mlx4_X/iov/ports/<pci-slot-num>/ports/<m>/pkey_idx/<n>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 332) Date: Aug, 2012
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 333) KernelVersion: v3.6.15
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 334) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 335) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 336) The sysfs iov directory is used to manage and examine the port
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 337) P_Key and guid paravirtualization. This directory is added only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 338) for the master -- slaves do not have it.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 339)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 340) Under iov/ports, the administrator may examine the gid and P_Key
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 341) tables as they are present in the device (and as are seen in the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 342) "network view" presented to the SM).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 343)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 344) The "pkeys" and "gids" subdirectories contain one file for each
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 345) entry in the port's P_Key or GID table respectively. For
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 346) example, ports/1/pkeys/10 contains the value at index 10 in port
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 347) 1's P_Key table.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 348)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 349) ======================= ==========================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 350) gids/<n>: (RO) The physical port gids n = 0..127
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 351)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 352) admin_guids/<n>: (RW) Allows examining or changing the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 353) administrative state of a given GUID
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 354) n = 0..127
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 355)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 356) pkeys/<n>: (RO) Displays the contents of the physical
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 357) key table n = 0..126
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 358)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 359) mcgs/: (RO) Muticast group table
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 360)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 361) <m>/gid_idx/0: (RO) Display the GID mapping m = 1..2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 362)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 363) <m>/pkey_idx/<n>: (RW) Writable except for RoCE pkeys.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 364) m = 1..2, n = 0..126
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 365)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 366) Under the iov/<pci slot number>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 367) directories, the admin may map the index
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 368) numbers in the physical tables (as under
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 369) iov/ports) to the paravirtualized index
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 370) numbers that guests see.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 371)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 372) For example, if the administrator, for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 373) port 1 on guest 2 maps physical pkey
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 374) index 10 to virtual index 1, then that
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 375) guest, whenever it uses its pkey index
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 376) 1, will actually be using the real pkey
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 377) index 10.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 378) ======================= ==========================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 379)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 380)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 381) What: /sys/class/infiniband/mlx4_X/iov/<pci-slot-num>/ports/<m>/smi_enabled
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 382) What: /sys/class/infiniband/mlx4_X/iov/<pci-slot-num>/ports/<m>/enable_smi_admin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 383) Date: May, 2014
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 384) KernelVersion: v3.15.7
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 385) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 386) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 387) Enabling QP0 on VFs for selected VF/port. By default, no VFs are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 388) enabled for QP0 operation.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 389)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 390) ================= ==== ===========================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 391) smi_enabled: (RO) Indicates whether smi is currently enabled
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 392) for the indicated VF/port
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 393)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 394) enable_smi_admin: (RW) Used by the admin to request that smi
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 395) capability be enabled or disabled for the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 396) indicated VF/port. 0 = disable, 1 = enable.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 397) ================= ==== ===========================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 398)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 399) The requested enablement will occur at the next reset of the VF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 400) (e.g. driver restart on the VM which owns the VF).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 401)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 402)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 403) sysfs interface for Chelsio T4/T5 RDMA driver (cxgb4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 404) -----------------------------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 405)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 406) What: /sys/class/infiniband/cxgb4_X/hw_rev
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 407) What: /sys/class/infiniband/cxgb4_X/hca_type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 408) What: /sys/class/infiniband/cxgb4_X/board_id
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 409) Date: Apr, 2010
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 410) KernelVersion: v2.6.35
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 411) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 412) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 413)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 414) =============== =============================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 415) hw_rev: (RO) Hardware revision number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 416)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 417) hca_type: (RO) Driver short name. Should normally match
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 418) the name in its bus driver structure (e.g.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 419) pci_driver::name)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 420)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 421) board_id: (RO) Manufacturing board id. (Vendor + device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 422) information)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 423) =============== =============================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 424)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 425)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 426) sysfs interface for Intel IB driver qib
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 427) ---------------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 428)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 429) What: /sys/class/infiniband/qibX/version
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 430) What: /sys/class/infiniband/qibX/hw_rev
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 431) What: /sys/class/infiniband/qibX/hca_type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 432) What: /sys/class/infiniband/qibX/board_id
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 433) What: /sys/class/infiniband/qibX/boardversion
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 434) What: /sys/class/infiniband/qibX/nctxts
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 435) What: /sys/class/infiniband/qibX/localbus_info
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 436) What: /sys/class/infiniband/qibX/tempsense
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 437) What: /sys/class/infiniband/qibX/serial
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 438) What: /sys/class/infiniband/qibX/nfreectxts
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 439) What: /sys/class/infiniband/qibX/chip_reset
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 440) Date: May, 2010
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 441) KernelVersion: v2.6.35
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 442) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 443) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 444) =============== ======================================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 445) version: (RO) Display version information of installed software
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 446) and drivers.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 447)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 448) hw_rev: (RO) Hardware revision number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 449)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 450) hca_type: (RO) Host channel adapter type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 451)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 452) board_id: (RO) Manufacturing board id
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 453)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 454) boardversion: (RO) Current version of the chip architecture
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 455)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 456) nctxts: (RO) Return the number of user ports (contexts)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 457) available
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 458)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 459) localbus_info: (RO) Human readable localbus info
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 460)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 461) tempsense: (RO) Display temp sense registers in decimal
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 462)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 463) serial: (RO) Serial number of the HCA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 464)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 465) nfreectxts: (RO) The number of free user ports (contexts)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 466) available.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 467)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 468) chip_reset: (WO) Reset the chip if possible by writing
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 469) "reset" to this file. Only allowed if no user
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 470) contexts are open that use chip resources.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 471) =============== ======================================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 472)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 473)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 474) What: /sys/class/infiniband/qibX/ports/N/sl2vl/[0-15]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 475) Date: May, 2010
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 476) KernelVersion: v2.6.35
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 477) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 478) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 479) (RO) The directory contains 16 files numbered 0-15 that specify
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 480) the Service Level (SL). Listing the SL files returns the Virtual
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 481) Lane (VL) as programmed by the SL.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 482)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 483) What: /sys/class/infiniband/qibX/ports/N/CCMgtA/cc_settings_bin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 484) What: /sys/class/infiniband/qibX/ports/N/CCMgtA/cc_table_bin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 485) Date: May, 2010
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 486) KernelVersion: v2.6.35
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 487) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 488) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 489) Per-port congestion control. Both are binary attributes.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 490)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 491) =============== ================================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 492) cc_table_bin (RO) Congestion control table size followed by
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 493) table entries.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 494)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 495) cc_settings_bin (RO) Congestion settings: port control, control
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 496) map and an array of 16 entries for the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 497) congestion entries - increase, timer, event log
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 498) trigger threshold and the minimum injection rate
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 499) delay.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 500) =============== ================================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 501)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 502) What: /sys/class/infiniband/qibX/ports/N/linkstate/loopback
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 503) What: /sys/class/infiniband/qibX/ports/N/linkstate/led_override
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 504) What: /sys/class/infiniband/qibX/ports/N/linkstate/hrtbt_enable
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 505) What: /sys/class/infiniband/qibX/ports/N/linkstate/status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 506) What: /sys/class/infiniband/qibX/ports/N/linkstate/status_str
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 507) Date: May, 2010
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 508) KernelVersion: v2.6.35
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 509) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 510) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 511) [to be documented]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 512)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 513) =============== ===============================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 514) loopback: (WO)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 515) led_override: (WO)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 516) hrtbt_enable: (RW)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 517) status: (RO)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 518)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 519) status_str: (RO) Displays information about the link state,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 520) possible cable/switch problems, and hardware
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 521) errors. Possible states are- "Initted",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 522) "Present", "IB_link_up", "IB_configured" or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 523) "Fatal_Hardware_Error".
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 524) =============== ===============================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 525)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 526) What: /sys/class/infiniband/qibX/ports/N/diag_counters/rc_resends
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 527) What: /sys/class/infiniband/qibX/ports/N/diag_counters/seq_naks
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 528) What: /sys/class/infiniband/qibX/ports/N/diag_counters/rdma_seq
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 529) What: /sys/class/infiniband/qibX/ports/N/diag_counters/rnr_naks
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 530) What: /sys/class/infiniband/qibX/ports/N/diag_counters/other_naks
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 531) What: /sys/class/infiniband/qibX/ports/N/diag_counters/rc_timeouts
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 532) What: /sys/class/infiniband/qibX/ports/N/diag_counters/look_pkts
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 533) What: /sys/class/infiniband/qibX/ports/N/diag_counters/pkt_drops
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 534) What: /sys/class/infiniband/qibX/ports/N/diag_counters/dma_wait
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 535) What: /sys/class/infiniband/qibX/ports/N/diag_counters/unaligned
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 536) Date: May, 2010
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 537) KernelVersion: v2.6.35
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 538) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 539) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 540) [to be documented]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 541)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 542)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 543) sysfs interface for Mellanox Connect-IB HCA driver mlx5
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 544) -------------------------------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 545)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 546) What: /sys/class/infiniband/mlx5_X/hw_rev
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 547) What: /sys/class/infiniband/mlx5_X/hca_type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 548) What: /sys/class/infiniband/mlx5_X/reg_pages
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 549) What: /sys/class/infiniband/mlx5_X/fw_pages
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 550) Date: Jul, 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 551) KernelVersion: v3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 552) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 553) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 554) [to be documented]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 555)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 556)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 557) sysfs interface for Cisco VIC (usNIC) Verbs Driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 558) --------------------------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 559)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 560) What: /sys/class/infiniband/usnic_X/board_id
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 561) What: /sys/class/infiniband/usnic_X/config
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 562) What: /sys/class/infiniband/usnic_X/qp_per_vf
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 563) What: /sys/class/infiniband/usnic_X/max_vf
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 564) What: /sys/class/infiniband/usnic_X/cq_per_vf
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 565) What: /sys/class/infiniband/usnic_X/iface
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 566) Date: Sep, 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 567) KernelVersion: v3.14
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 568) Contact: Christian Benvenuti <benve@cisco.com>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 569) Dave Goodell <dgoodell@cisco.com>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 570) linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 571) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 572)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 573) =============== ===============================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 574) board_id: (RO) Manufacturing board id
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 575)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 576) config: (RO) Report the configuration for this PF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 577)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 578) qp_per_vf: (RO) Queue pairs per virtual function.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 579)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 580) max_vf: (RO) Max virtual functions
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 581)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 582) cq_per_vf: (RO) Completion queue per virtual function
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 583)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 584) iface: (RO) Shows which network interface this usNIC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 585) entry is associated to (visible with ifconfig).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 586) =============== ===============================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 587)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 588) What: /sys/class/infiniband/usnic_X/qpn/summary
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 589) What: /sys/class/infiniband/usnic_X/qpn/context
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 590) Date: Sep, 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 591) KernelVersion: v3.14
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 592) Contact: Christian Benvenuti <benve@cisco.com>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 593) Dave Goodell <dgoodell@cisco.com>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 594) linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 595) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 596) [to be documented]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 597)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 598)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 599) sysfs interface for Emulex RoCE HCA Driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 600) ------------------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 601)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 602) What: /sys/class/infiniband/ocrdmaX/hw_rev
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 603) Date: Feb, 2014
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 604) KernelVersion: v3.14
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 605) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 606) hw_rev: (RO) Hardware revision number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 607)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 608) What: /sys/class/infiniband/ocrdmaX/hca_type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 609) Date: Jun, 2014
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 610) KernelVersion: v3.16
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 611) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 612) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 613) hca_type: (RO) Display FW version
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 614)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 615)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 616) sysfs interface for Intel Omni-Path driver (HFI1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 617) -------------------------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 618)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 619) What: /sys/class/infiniband/hfi1_X/hw_rev
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 620) What: /sys/class/infiniband/hfi1_X/board_id
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 621) What: /sys/class/infiniband/hfi1_X/nctxts
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 622) What: /sys/class/infiniband/hfi1_X/serial
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 623) What: /sys/class/infiniband/hfi1_X/chip_reset
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 624) What: /sys/class/infiniband/hfi1_X/boardversion
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 625) What: /sys/class/infiniband/hfi1_X/nfreectxts
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 626) What: /sys/class/infiniband/hfi1_X/tempsense
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 627) Date: May, 2016
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 628) KernelVersion: v4.6
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 629) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 630) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 631) =============== =============================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 632) hw_rev: (RO) Hardware revision number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 633)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 634) board_id: (RO) Manufacturing board id
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 635)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 636) nctxts: (RO) Total contexts available.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 637)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 638) serial: (RO) Board serial number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 639)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 640) chip_reset: (WO) Write "reset" to this file to reset the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 641) chip if possible. Only allowed if no user
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 642) contexts are open that use chip resources.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 643)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 644) boardversion: (RO) Human readable board info
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 645)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 646) nfreectxts: (RO) The number of free user ports (contexts)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 647) available.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 648)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 649) tempsense: (RO) Thermal sense information
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 650) =============== =============================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 651)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 652)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 653) What: /sys/class/infiniband/hfi1_X/ports/N/CCMgtA/cc_settings_bin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 654) What: /sys/class/infiniband/hfi1_X/ports/N/CCMgtA/cc_table_bin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 655) What: /sys/class/infiniband/hfi1_X/ports/N/CCMgtA/cc_prescan
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 656) Date: May, 2016
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 657) KernelVersion: v4.6
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 658) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 659) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 660) Per-port congestion control.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 661)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 662) =============== ================================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 663) cc_table_bin (RO) CCA tables used by PSM2 Congestion control
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 664) table size followed by table entries. Binary
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 665) attribute.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 666)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 667) cc_settings_bin (RO) Congestion settings: port control, control
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 668) map and an array of 16 entries for the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 669) congestion entries - increase, timer, event log
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 670) trigger threshold and the minimum injection rate
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 671) delay. Binary attribute.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 672)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 673) cc_prescan (RW) enable prescanning for faster BECN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 674) response. Write "on" to enable and "off" to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 675) disable.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 676) =============== ================================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 677)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 678) What: /sys/class/infiniband/hfi1_X/ports/N/sc2vl/[0-31]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 679) What: /sys/class/infiniband/hfi1_X/ports/N/sl2sc/[0-31]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 680) What: /sys/class/infiniband/hfi1_X/ports/N/vl2mtu/[0-15]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 681) Date: May, 2016
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 682) KernelVersion: v4.6
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 683) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 684) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 685) =============== ===================================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 686) sc2vl/: (RO) 32 files (0 - 31) used to translate sl->vl
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 687)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 688) sl2sc/: (RO) 32 files (0 - 31) used to translate sl->sc
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 689)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 690) vl2mtu/: (RO) 16 files (0 - 15) used to determine MTU for vl
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 691) =============== ===================================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 692)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 693)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 694) What: /sys/class/infiniband/hfi1_X/sdma_N/cpu_list
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 695) What: /sys/class/infiniband/hfi1_X/sdma_N/vl
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 696) Date: Sept, 2016
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 697) KernelVersion: v4.8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 698) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 699) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 700) sdma<N>/ contains one directory per sdma engine (0 - 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 701)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 702) =============== ==============================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 703) cpu_list: (RW) List of cpus for user-process to sdma
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 704) engine assignment.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 705)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 706) vl: (RO) Displays the virtual lane (vl) the sdma
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 707) engine maps to.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 708) =============== ==============================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 709)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 710) This interface gives the user control on the affinity settings
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 711) for the device. As an example, to set an sdma engine irq
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 712) affinity and thread affinity of a user processes to use the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 713) sdma engine, which is "near" in terms of NUMA configuration, or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 714) physical cpu location, the user will do::
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 715)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 716) echo "3" > /proc/irq/<N>/smp_affinity_list
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 717) echo "4-7" > /sys/devices/.../sdma3/cpu_list
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 718) cat /sys/devices/.../sdma3/vl
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 719) 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 720) echo "8" > /proc/irq/<M>/smp_affinity_list
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 721) echo "9-12" > /sys/devices/.../sdma4/cpu_list
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 722) cat /sys/devices/.../sdma4/vl
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 723) 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 724)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 725) to make sure that when a process runs on cpus 4,5,6, or 7, and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 726) uses vl=0, then sdma engine 3 is selected by the driver, and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 727) also the interrupt of the sdma engine 3 is steered to cpu 3.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 728) Similarly, when a process runs on cpus 9,10,11, or 12 and sets
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 729) vl=1, then engine 4 will be selected and the irq of the sdma
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 730) engine 4 is steered to cpu 8. This assumes that in the above N
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 731) is the irq number of "sdma3", and M is irq number of "sdma4" in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 732) the /proc/interrupts file.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 733)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 734)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 735) sysfs interface for Intel(R) X722 iWARP i40iw driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 736) ----------------------------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 737)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 738) What: /sys/class/infiniband/i40iwX/hw_rev
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 739) What: /sys/class/infiniband/i40iwX/hca_type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 740) What: /sys/class/infiniband/i40iwX/board_id
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 741) Date: Jan, 2016
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 742) KernelVersion: v4.10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 743) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 744) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 745) =============== ==== ========================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 746) hw_rev: (RO) Hardware revision number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 747)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 748) hca_type: (RO) Show HCA type (I40IW)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 749)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 750) board_id: (RO) I40IW board ID
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 751) =============== ==== ========================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 752)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 753)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 754) sysfs interface for QLogic qedr NIC Driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 755) ------------------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 756)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 757) What: /sys/class/infiniband/qedrX/hw_rev
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 758) What: /sys/class/infiniband/qedrX/hca_type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 759) Date: Oct, 2016
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 760) KernelVersion: v4.10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 761) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 762) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 763)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 764) =============== ==== ========================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 765) hw_rev: (RO) Hardware revision number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 766)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 767) hca_type: (RO) Display HCA type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 768) =============== ==== ========================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 769)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 770)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 771) sysfs interface for VMware Paravirtual RDMA driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 772) --------------------------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 773)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 774) What: /sys/class/infiniband/vmw_pvrdmaX/hw_rev
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 775) What: /sys/class/infiniband/vmw_pvrdmaX/hca_type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 776) What: /sys/class/infiniband/vmw_pvrdmaX/board_id
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 777) Date: Oct, 2016
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 778) KernelVersion: v4.10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 779) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 780) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 781)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 782) =============== ==== =====================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 783) hw_rev: (RO) Hardware revision number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 784)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 785) hca_type: (RO) Host channel adapter type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 786)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 787) board_id: (RO) Display PVRDMA manufacturing board ID
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 788) =============== ==== =====================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 789)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 790)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 791) sysfs interface for Broadcom NetXtreme-E RoCE driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 792) ----------------------------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 793)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 794) What: /sys/class/infiniband/bnxt_reX/hw_rev
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 795) What: /sys/class/infiniband/bnxt_reX/hca_type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 796) Date: Feb, 2017
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 797) KernelVersion: v4.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 798) Contact: linux-rdma@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 799) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 800) =============== ==== =========================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 801) hw_rev: (RO) Hardware revision number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 802)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 803) hca_type: (RO) Host channel adapter type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 804) =============== ==== =========================