sysfs.txt 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. SYSFS FILES
  2. For each InfiniBand device, the InfiniBand drivers create the
  3. following files under /sys/class/infiniband/<device name>:
  4. node_type - Node type (CA, switch or router)
  5. node_guid - Node GUID
  6. sys_image_guid - System image GUID
  7. In addition, there is a "ports" subdirectory, with one subdirectory
  8. for each port. For example, if mthca0 is a 2-port HCA, there will
  9. be two directories:
  10. /sys/class/infiniband/mthca0/ports/1
  11. /sys/class/infiniband/mthca0/ports/2
  12. (A switch will only have a single "0" subdirectory for switch port
  13. 0; no subdirectory is created for normal switch ports)
  14. In each port subdirectory, the following files are created:
  15. cap_mask - Port capability mask
  16. lid - Port LID
  17. lid_mask_count - Port LID mask count
  18. rate - Port data rate (active width * active speed)
  19. sm_lid - Subnet manager LID for port's subnet
  20. sm_sl - Subnet manager SL for port's subnet
  21. state - Port state (DOWN, INIT, ARMED, ACTIVE or ACTIVE_DEFER)
  22. phys_state - Port physical state (Sleep, Polling, LinkUp, etc)
  23. There is also a "counters" subdirectory, with files
  24. VL15_dropped
  25. excessive_buffer_overrun_errors
  26. link_downed
  27. link_error_recovery
  28. local_link_integrity_errors
  29. port_rcv_constraint_errors
  30. port_rcv_data
  31. port_rcv_errors
  32. port_rcv_packets
  33. port_rcv_remote_physical_errors
  34. port_rcv_switch_relay_errors
  35. port_xmit_constraint_errors
  36. port_xmit_data
  37. port_xmit_discards
  38. port_xmit_packets
  39. symbol_error
  40. Each of these files contains the corresponding value from the port's
  41. Performance Management PortCounters attribute, as described in
  42. section 16.1.3.5 of the InfiniBand Architecture Specification.
  43. The "pkeys" and "gids" subdirectories contain one file for each
  44. entry in the port's P_Key or GID table respectively. For example,
  45. ports/1/pkeys/10 contains the value at index 10 in port 1's P_Key
  46. table.
  47. MTHCA
  48. The Mellanox HCA driver also creates the files:
  49. hw_rev - Hardware revision number
  50. fw_ver - Firmware version
  51. hca_type - HCA type: "MT23108", "MT25208 (MT23108 compat mode)",
  52. or "MT25208"
  53. HFI1
  54. The hfi1 driver also creates these additional files:
  55. hw_rev - hardware revision
  56. board_id - manufacturing board id
  57. tempsense - thermal sense information
  58. serial - board serial number
  59. nfreectxts - number of free user contexts
  60. nctxts - number of allowed contexts (PSM2)
  61. chip_reset - diagnostic (root only)
  62. boardversion - board version
  63. ports/1/
  64. CMgtA/
  65. cc_settings_bin - CCA tables used by PSM2
  66. cc_table_bin
  67. sc2v/ - 32 files (0 - 31) used to translate sl->vl
  68. sl2sc/ - 32 files (0 - 31) used to translate sl->sc
  69. vl2mtu/ - 16 (0 - 15) files used to determine MTU for vl