sysfs.txt 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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"