sysfs-class-infiniband 28 KB

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