18c2ecf20Sopenharmony_cisysfs interface common for all infiniband devices 28c2ecf20Sopenharmony_ci------------------------------------------------- 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/node_type 58c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/node_guid 68c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/sys_image_guid 78c2ecf20Sopenharmony_ciDate: Apr, 2005 88c2ecf20Sopenharmony_ciKernelVersion: v2.6.12 98c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 108c2ecf20Sopenharmony_ciDescription: 118c2ecf20Sopenharmony_ci =============== =========================================== 128c2ecf20Sopenharmony_ci node_type: (RO) Node type (CA, RNIC, usNIC, usNIC UDP, 138c2ecf20Sopenharmony_ci switch or router) 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci node_guid: (RO) Node GUID 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci sys_image_guid: (RO) System image GUID 188c2ecf20Sopenharmony_ci =============== =========================================== 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/node_desc 228c2ecf20Sopenharmony_ciDate: Feb, 2006 238c2ecf20Sopenharmony_ciKernelVersion: v2.6.17 248c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 258c2ecf20Sopenharmony_ciDescription: 268c2ecf20Sopenharmony_ci (RW) Update the node description with information such as the 278c2ecf20Sopenharmony_ci node's hostname, so that IB network management software can tie 288c2ecf20Sopenharmony_ci its view to the real world. 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/fw_ver 328c2ecf20Sopenharmony_ciDate: Jun, 2016 338c2ecf20Sopenharmony_ciKernelVersion: v4.10 348c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 358c2ecf20Sopenharmony_ciDescription: 368c2ecf20Sopenharmony_ci (RO) Display firmware version 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/lid 408c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/rate 418c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/lid_mask_count 428c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/sm_sl 438c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/sm_lid 448c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/state 458c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/phys_state 468c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/cap_mask 478c2ecf20Sopenharmony_ciDate: Apr, 2005 488c2ecf20Sopenharmony_ciKernelVersion: v2.6.12 498c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 508c2ecf20Sopenharmony_ciDescription: 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci =============== =============================================== 538c2ecf20Sopenharmony_ci lid: (RO) Port LID 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci rate: (RO) Port data rate (active width * active 568c2ecf20Sopenharmony_ci speed) 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci lid_mask_count: (RO) Port LID mask count 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ci sm_sl: (RO) Subnet manager SL for port's subnet 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci sm_lid: (RO) Subnet manager LID for port's subnet 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci state: (RO) Port state (DOWN, INIT, ARMED, ACTIVE or 658c2ecf20Sopenharmony_ci ACTIVE_DEFER) 668c2ecf20Sopenharmony_ci 678c2ecf20Sopenharmony_ci phys_state: (RO) Port physical state (Sleep, Polling, 688c2ecf20Sopenharmony_ci LinkUp, etc) 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_ci cap_mask: (RO) Port capability mask. 2 bits here are 718c2ecf20Sopenharmony_ci settable- IsCommunicationManagementSupported 728c2ecf20Sopenharmony_ci (set when CM module is loaded) and IsSM (set 738c2ecf20Sopenharmony_ci via open of issmN file). 748c2ecf20Sopenharmony_ci =============== =============================================== 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/link_layer 788c2ecf20Sopenharmony_ciDate: Oct, 2010 798c2ecf20Sopenharmony_ciKernelVersion: v2.6.37 808c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 818c2ecf20Sopenharmony_ciDescription: 828c2ecf20Sopenharmony_ci (RO) Link layer type information (Infiniband or Ethernet type) 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ci 858c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/symbol_error 868c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_rcv_errors 878c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_rcv_remote_physical_errors 888c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_rcv_switch_relay_errors 898c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/link_error_recovery 908c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_xmit_constraint_errors 918c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_rcv_contraint_errors 928c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/local_link_integrity_errors 938c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/excessive_buffer_overrun_errors 948c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_xmit_data 958c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_rcv_data 968c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_xmit_packets 978c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_rcv_packets 988c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/unicast_rcv_packets 998c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/unicast_xmit_packets 1008c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/multicast_rcv_packets 1018c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/multicast_xmit_packets 1028c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/link_downed 1038c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_xmit_discards 1048c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/VL15_dropped 1058c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device>/ports/<port-num>/counters/port_xmit_wait 1068c2ecf20Sopenharmony_ciDate: Apr, 2005 1078c2ecf20Sopenharmony_ciKernelVersion: v2.6.12 1088c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 1098c2ecf20Sopenharmony_ciDescription: 1108c2ecf20Sopenharmony_ci **Errors info**: 1118c2ecf20Sopenharmony_ci 1128c2ecf20Sopenharmony_ci symbol_error: (RO) Total number of minor link errors detected on 1138c2ecf20Sopenharmony_ci one or more physical lanes. 1148c2ecf20Sopenharmony_ci 1158c2ecf20Sopenharmony_ci port_rcv_errors : (RO) Total number of packets containing an 1168c2ecf20Sopenharmony_ci error that were received on the port. 1178c2ecf20Sopenharmony_ci 1188c2ecf20Sopenharmony_ci port_rcv_remote_physical_errors : (RO) Total number of packets 1198c2ecf20Sopenharmony_ci marked with the EBP delimiter received on the port. 1208c2ecf20Sopenharmony_ci 1218c2ecf20Sopenharmony_ci port_rcv_switch_relay_errors : (RO) Total number of packets 1228c2ecf20Sopenharmony_ci received on the port that were discarded because they could not 1238c2ecf20Sopenharmony_ci be forwarded by the switch relay. 1248c2ecf20Sopenharmony_ci 1258c2ecf20Sopenharmony_ci link_error_recovery: (RO) Total number of times the Port 1268c2ecf20Sopenharmony_ci Training state machine has successfully completed the link error 1278c2ecf20Sopenharmony_ci recovery process. 1288c2ecf20Sopenharmony_ci 1298c2ecf20Sopenharmony_ci port_xmit_constraint_errors: (RO) Total number of packets not 1308c2ecf20Sopenharmony_ci transmitted from the switch physical port due to outbound raw 1318c2ecf20Sopenharmony_ci filtering or failing outbound partition or IP version check. 1328c2ecf20Sopenharmony_ci 1338c2ecf20Sopenharmony_ci port_rcv_constraint_errors: (RO) Total number of packets 1348c2ecf20Sopenharmony_ci received on the switch physical port that are discarded due to 1358c2ecf20Sopenharmony_ci inbound raw filtering or failing inbound partition or IP version 1368c2ecf20Sopenharmony_ci check. 1378c2ecf20Sopenharmony_ci 1388c2ecf20Sopenharmony_ci local_link_integrity_errors: (RO) The number of times that the 1398c2ecf20Sopenharmony_ci count of local physical errors exceeded the threshold specified 1408c2ecf20Sopenharmony_ci by LocalPhyErrors 1418c2ecf20Sopenharmony_ci 1428c2ecf20Sopenharmony_ci excessive_buffer_overrun_errors: (RO) This counter, indicates an 1438c2ecf20Sopenharmony_ci input buffer overrun. It indicates possible misconfiguration of 1448c2ecf20Sopenharmony_ci a port, either by the Subnet Manager (SM) or by user 1458c2ecf20Sopenharmony_ci intervention. It can also indicate hardware issues or extremely 1468c2ecf20Sopenharmony_ci poor link signal integrity 1478c2ecf20Sopenharmony_ci 1488c2ecf20Sopenharmony_ci **Data info**: 1498c2ecf20Sopenharmony_ci 1508c2ecf20Sopenharmony_ci port_xmit_data: (RO) Total number of data octets, divided by 4 1518c2ecf20Sopenharmony_ci (lanes), transmitted on all VLs. This is 64 bit counter 1528c2ecf20Sopenharmony_ci 1538c2ecf20Sopenharmony_ci port_rcv_data: (RO) Total number of data octets, divided by 4 1548c2ecf20Sopenharmony_ci (lanes), received on all VLs. This is 64 bit counter. 1558c2ecf20Sopenharmony_ci 1568c2ecf20Sopenharmony_ci port_xmit_packets: (RO) Total number of packets transmitted on 1578c2ecf20Sopenharmony_ci all VLs from this port. This may include packets with errors. 1588c2ecf20Sopenharmony_ci This is 64 bit counter. 1598c2ecf20Sopenharmony_ci 1608c2ecf20Sopenharmony_ci port_rcv_packets: (RO) Total number of packets (this may include 1618c2ecf20Sopenharmony_ci packets containing Errors. This is 64 bit counter. 1628c2ecf20Sopenharmony_ci 1638c2ecf20Sopenharmony_ci link_downed: (RO) Total number of times the Port Training state 1648c2ecf20Sopenharmony_ci machine has failed the link error recovery process and downed 1658c2ecf20Sopenharmony_ci the link. 1668c2ecf20Sopenharmony_ci 1678c2ecf20Sopenharmony_ci unicast_rcv_packets: (RO) Total number of unicast packets, 1688c2ecf20Sopenharmony_ci including unicast packets containing errors. 1698c2ecf20Sopenharmony_ci 1708c2ecf20Sopenharmony_ci unicast_xmit_packets: (RO) Total number of unicast packets 1718c2ecf20Sopenharmony_ci transmitted on all VLs from the port. This may include unicast 1728c2ecf20Sopenharmony_ci packets with errors. 1738c2ecf20Sopenharmony_ci 1748c2ecf20Sopenharmony_ci multicast_rcv_packets: (RO) Total number of multicast packets, 1758c2ecf20Sopenharmony_ci including multicast packets containing errors. 1768c2ecf20Sopenharmony_ci 1778c2ecf20Sopenharmony_ci multicast_xmit_packets: (RO) Total number of multicast packets 1788c2ecf20Sopenharmony_ci transmitted on all VLs from the port. This may include multicast 1798c2ecf20Sopenharmony_ci packets with errors. 1808c2ecf20Sopenharmony_ci 1818c2ecf20Sopenharmony_ci **Misc info**: 1828c2ecf20Sopenharmony_ci 1838c2ecf20Sopenharmony_ci port_xmit_discards: (RO) Total number of outbound packets 1848c2ecf20Sopenharmony_ci discarded by the port because the port is down or congested. 1858c2ecf20Sopenharmony_ci 1868c2ecf20Sopenharmony_ci VL15_dropped: (RO) Number of incoming VL15 packets dropped due 1878c2ecf20Sopenharmony_ci to resource limitations (e.g., lack of buffers) of the port. 1888c2ecf20Sopenharmony_ci 1898c2ecf20Sopenharmony_ci port_xmit_wait: (RO) The number of ticks during which the port 1908c2ecf20Sopenharmony_ci had data to transmit but no data was sent during the entire tick 1918c2ecf20Sopenharmony_ci (either because of insufficient credits or because of lack of 1928c2ecf20Sopenharmony_ci arbitration). 1938c2ecf20Sopenharmony_ci 1948c2ecf20Sopenharmony_ci Each of these files contains the corresponding value from the 1958c2ecf20Sopenharmony_ci port's Performance Management PortCounters attribute, as 1968c2ecf20Sopenharmony_ci described in the InfiniBand Architecture Specification. 1978c2ecf20Sopenharmony_ci 1988c2ecf20Sopenharmony_ci 1998c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device-name>/hw_counters/lifespan 2008c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<device-name>/ports/<port-num>/hw_counters/lifespan 2018c2ecf20Sopenharmony_ciDate: May, 2016 2028c2ecf20Sopenharmony_ciKernelVersion: 4.6 2038c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 2048c2ecf20Sopenharmony_ciDescription: 2058c2ecf20Sopenharmony_ci The optional "hw_counters" subdirectory can be under either the 2068c2ecf20Sopenharmony_ci parent device or the port subdirectories or both. If present, 2078c2ecf20Sopenharmony_ci there are a list of counters provided by the hardware. They may 2088c2ecf20Sopenharmony_ci match some of the counters in the counters directory, but they 2098c2ecf20Sopenharmony_ci often include many other counters. In addition to the various 2108c2ecf20Sopenharmony_ci counters, there will be a file named "lifespan" that configures 2118c2ecf20Sopenharmony_ci how frequently the core should update the counters when they are 2128c2ecf20Sopenharmony_ci being accessed (counters are not updated if they are not being 2138c2ecf20Sopenharmony_ci accessed). The lifespan is in milliseconds and defaults to 10 2148c2ecf20Sopenharmony_ci unless set to something else by the driver. Users may echo a 2158c2ecf20Sopenharmony_ci value between 0-10000 to the lifespan file to set the length 2168c2ecf20Sopenharmony_ci of time between updates in milliseconds. 2178c2ecf20Sopenharmony_ci 2188c2ecf20Sopenharmony_ci 2198c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<hca>/ports/<port-number>/gid_attrs/ndevs/<gid-index> 2208c2ecf20Sopenharmony_ciDate: November 29, 2015 2218c2ecf20Sopenharmony_ciKernelVersion: 4.4.0 2228c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 2238c2ecf20Sopenharmony_ciDescription: The net-device's name associated with the GID resides 2248c2ecf20Sopenharmony_ci at index <gid-index>. 2258c2ecf20Sopenharmony_ci 2268c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/<hca>/ports/<port-number>/gid_attrs/types/<gid-index> 2278c2ecf20Sopenharmony_ciDate: November 29, 2015 2288c2ecf20Sopenharmony_ciKernelVersion: 4.4.0 2298c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 2308c2ecf20Sopenharmony_ciDescription: The RoCE type of the associated GID resides at index <gid-index>. 2318c2ecf20Sopenharmony_ci This could either be "IB/RoCE v1" for IB and RoCE v1 based GIDs 2328c2ecf20Sopenharmony_ci or "RoCE v2" for RoCE v2 based GIDs. 2338c2ecf20Sopenharmony_ci 2348c2ecf20Sopenharmony_ci 2358c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband_mad/umadN/ibdev 2368c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband_mad/umadN/port 2378c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband_mad/issmN/ibdev 2388c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband_mad/issmN/port 2398c2ecf20Sopenharmony_ciDate: Apr, 2005 2408c2ecf20Sopenharmony_ciKernelVersion: v2.6.12 2418c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 2428c2ecf20Sopenharmony_ciDescription: 2438c2ecf20Sopenharmony_ci Each port of each InfiniBand device has a "umad" device and an 2448c2ecf20Sopenharmony_ci "issm" device attached. For example, a two-port HCA will have 2458c2ecf20Sopenharmony_ci two umad devices and two issm devices, while a switch will have 2468c2ecf20Sopenharmony_ci one device of each type (for switch port 0). 2478c2ecf20Sopenharmony_ci 2488c2ecf20Sopenharmony_ci ======= ===================================== 2498c2ecf20Sopenharmony_ci ibdev: (RO) Show Infiniband (IB) device name 2508c2ecf20Sopenharmony_ci 2518c2ecf20Sopenharmony_ci port: (RO) Display port number 2528c2ecf20Sopenharmony_ci ======= ===================================== 2538c2ecf20Sopenharmony_ci 2548c2ecf20Sopenharmony_ci 2558c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband_mad/abi_version 2568c2ecf20Sopenharmony_ciDate: Apr, 2005 2578c2ecf20Sopenharmony_ciKernelVersion: v2.6.12 2588c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 2598c2ecf20Sopenharmony_ciDescription: 2608c2ecf20Sopenharmony_ci (RO) Value is incremented if any changes are made that break 2618c2ecf20Sopenharmony_ci userspace ABI compatibility of umad & issm devices. 2628c2ecf20Sopenharmony_ci 2638c2ecf20Sopenharmony_ci 2648c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband_verbs/uverbsN/ibdev 2658c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband_verbs/uverbsN/abi_version 2668c2ecf20Sopenharmony_ciDate: Sept, 2005 2678c2ecf20Sopenharmony_ciKernelVersion: v2.6.14 2688c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 2698c2ecf20Sopenharmony_ciDescription: 2708c2ecf20Sopenharmony_ci =============== =========================================== 2718c2ecf20Sopenharmony_ci ibdev: (RO) Display Infiniband (IB) device name 2728c2ecf20Sopenharmony_ci 2738c2ecf20Sopenharmony_ci abi_version: (RO) Show ABI version of IB device specific 2748c2ecf20Sopenharmony_ci interfaces. 2758c2ecf20Sopenharmony_ci =============== =========================================== 2768c2ecf20Sopenharmony_ci 2778c2ecf20Sopenharmony_ci 2788c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband_verbs/abi_version 2798c2ecf20Sopenharmony_ciDate: Sep, 2005 2808c2ecf20Sopenharmony_ciKernelVersion: v2.6.14 2818c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 2828c2ecf20Sopenharmony_ciDescription: 2838c2ecf20Sopenharmony_ci (RO) Value is incremented if any changes are made that break 2848c2ecf20Sopenharmony_ci userspace ABI compatibility of uverbs devices. 2858c2ecf20Sopenharmony_ci 2868c2ecf20Sopenharmony_ci 2878c2ecf20Sopenharmony_cisysfs interface for Mellanox IB HCA low-level driver (mthca) 2888c2ecf20Sopenharmony_ci------------------------------------------------------------ 2898c2ecf20Sopenharmony_ci 2908c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/mthcaX/hw_rev 2918c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/mthcaX/hca_type 2928c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/mthcaX/board_id 2938c2ecf20Sopenharmony_ciDate: Apr, 2005 2948c2ecf20Sopenharmony_ciKernelVersion: v2.6.12 2958c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 2968c2ecf20Sopenharmony_ciDescription: 2978c2ecf20Sopenharmony_ci =============== ================================================ 2988c2ecf20Sopenharmony_ci hw_rev: (RO) Hardware revision number 2998c2ecf20Sopenharmony_ci 3008c2ecf20Sopenharmony_ci hca_type: (RO) Host Channel Adapter type: MT23108, MT25208 3018c2ecf20Sopenharmony_ci (MT23108 compat mode), MT25208 or MT25204 3028c2ecf20Sopenharmony_ci 3038c2ecf20Sopenharmony_ci board_id: (RO) Manufacturing board ID 3048c2ecf20Sopenharmony_ci =============== ================================================ 3058c2ecf20Sopenharmony_ci 3068c2ecf20Sopenharmony_ci 3078c2ecf20Sopenharmony_cisysfs interface for Mellanox ConnectX HCA IB driver (mlx4) 3088c2ecf20Sopenharmony_ci---------------------------------------------------------- 3098c2ecf20Sopenharmony_ci 3108c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/mlx4_X/hw_rev 3118c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/mlx4_X/hca_type 3128c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/mlx4_X/board_id 3138c2ecf20Sopenharmony_ciDate: Sep, 2007 3148c2ecf20Sopenharmony_ciKernelVersion: v2.6.24 3158c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 3168c2ecf20Sopenharmony_ciDescription: 3178c2ecf20Sopenharmony_ci =============== =============================== 3188c2ecf20Sopenharmony_ci hw_rev: (RO) Hardware revision number 3198c2ecf20Sopenharmony_ci 3208c2ecf20Sopenharmony_ci hca_type: (RO) Host channel adapter type 3218c2ecf20Sopenharmony_ci 3228c2ecf20Sopenharmony_ci board_id: (RO) Manufacturing board ID 3238c2ecf20Sopenharmony_ci =============== =============================== 3248c2ecf20Sopenharmony_ci 3258c2ecf20Sopenharmony_ci 3268c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/mlx4_X/iov/ports/<port-num>/gids/<n> 3278c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/mlx4_X/iov/ports/<port-num>/admin_guids/<n> 3288c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/mlx4_X/iov/ports/<port-num>/pkeys/<n> 3298c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/mlx4_X/iov/ports/<port-num>/mcgs/ 3308c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/mlx4_X/iov/ports/<pci-slot-num>/ports/<m>/gid_idx/0 3318c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/mlx4_X/iov/ports/<pci-slot-num>/ports/<m>/pkey_idx/<n> 3328c2ecf20Sopenharmony_ciDate: Aug, 2012 3338c2ecf20Sopenharmony_ciKernelVersion: v3.6.15 3348c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 3358c2ecf20Sopenharmony_ciDescription: 3368c2ecf20Sopenharmony_ci The sysfs iov directory is used to manage and examine the port 3378c2ecf20Sopenharmony_ci P_Key and guid paravirtualization. This directory is added only 3388c2ecf20Sopenharmony_ci for the master -- slaves do not have it. 3398c2ecf20Sopenharmony_ci 3408c2ecf20Sopenharmony_ci Under iov/ports, the administrator may examine the gid and P_Key 3418c2ecf20Sopenharmony_ci tables as they are present in the device (and as are seen in the 3428c2ecf20Sopenharmony_ci "network view" presented to the SM). 3438c2ecf20Sopenharmony_ci 3448c2ecf20Sopenharmony_ci The "pkeys" and "gids" subdirectories contain one file for each 3458c2ecf20Sopenharmony_ci entry in the port's P_Key or GID table respectively. For 3468c2ecf20Sopenharmony_ci example, ports/1/pkeys/10 contains the value at index 10 in port 3478c2ecf20Sopenharmony_ci 1's P_Key table. 3488c2ecf20Sopenharmony_ci 3498c2ecf20Sopenharmony_ci ======================= ========================================== 3508c2ecf20Sopenharmony_ci gids/<n>: (RO) The physical port gids n = 0..127 3518c2ecf20Sopenharmony_ci 3528c2ecf20Sopenharmony_ci admin_guids/<n>: (RW) Allows examining or changing the 3538c2ecf20Sopenharmony_ci administrative state of a given GUID 3548c2ecf20Sopenharmony_ci n = 0..127 3558c2ecf20Sopenharmony_ci 3568c2ecf20Sopenharmony_ci pkeys/<n>: (RO) Displays the contents of the physical 3578c2ecf20Sopenharmony_ci key table n = 0..126 3588c2ecf20Sopenharmony_ci 3598c2ecf20Sopenharmony_ci mcgs/: (RO) Muticast group table 3608c2ecf20Sopenharmony_ci 3618c2ecf20Sopenharmony_ci <m>/gid_idx/0: (RO) Display the GID mapping m = 1..2 3628c2ecf20Sopenharmony_ci 3638c2ecf20Sopenharmony_ci <m>/pkey_idx/<n>: (RW) Writable except for RoCE pkeys. 3648c2ecf20Sopenharmony_ci m = 1..2, n = 0..126 3658c2ecf20Sopenharmony_ci 3668c2ecf20Sopenharmony_ci Under the iov/<pci slot number> 3678c2ecf20Sopenharmony_ci directories, the admin may map the index 3688c2ecf20Sopenharmony_ci numbers in the physical tables (as under 3698c2ecf20Sopenharmony_ci iov/ports) to the paravirtualized index 3708c2ecf20Sopenharmony_ci numbers that guests see. 3718c2ecf20Sopenharmony_ci 3728c2ecf20Sopenharmony_ci For example, if the administrator, for 3738c2ecf20Sopenharmony_ci port 1 on guest 2 maps physical pkey 3748c2ecf20Sopenharmony_ci index 10 to virtual index 1, then that 3758c2ecf20Sopenharmony_ci guest, whenever it uses its pkey index 3768c2ecf20Sopenharmony_ci 1, will actually be using the real pkey 3778c2ecf20Sopenharmony_ci index 10. 3788c2ecf20Sopenharmony_ci ======================= ========================================== 3798c2ecf20Sopenharmony_ci 3808c2ecf20Sopenharmony_ci 3818c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/mlx4_X/iov/<pci-slot-num>/ports/<m>/smi_enabled 3828c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/mlx4_X/iov/<pci-slot-num>/ports/<m>/enable_smi_admin 3838c2ecf20Sopenharmony_ciDate: May, 2014 3848c2ecf20Sopenharmony_ciKernelVersion: v3.15.7 3858c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 3868c2ecf20Sopenharmony_ciDescription: 3878c2ecf20Sopenharmony_ci Enabling QP0 on VFs for selected VF/port. By default, no VFs are 3888c2ecf20Sopenharmony_ci enabled for QP0 operation. 3898c2ecf20Sopenharmony_ci 3908c2ecf20Sopenharmony_ci ================= ==== =========================================== 3918c2ecf20Sopenharmony_ci smi_enabled: (RO) Indicates whether smi is currently enabled 3928c2ecf20Sopenharmony_ci for the indicated VF/port 3938c2ecf20Sopenharmony_ci 3948c2ecf20Sopenharmony_ci enable_smi_admin: (RW) Used by the admin to request that smi 3958c2ecf20Sopenharmony_ci capability be enabled or disabled for the 3968c2ecf20Sopenharmony_ci indicated VF/port. 0 = disable, 1 = enable. 3978c2ecf20Sopenharmony_ci ================= ==== =========================================== 3988c2ecf20Sopenharmony_ci 3998c2ecf20Sopenharmony_ci The requested enablement will occur at the next reset of the VF 4008c2ecf20Sopenharmony_ci (e.g. driver restart on the VM which owns the VF). 4018c2ecf20Sopenharmony_ci 4028c2ecf20Sopenharmony_ci 4038c2ecf20Sopenharmony_cisysfs interface for Chelsio T4/T5 RDMA driver (cxgb4) 4048c2ecf20Sopenharmony_ci----------------------------------------------------- 4058c2ecf20Sopenharmony_ci 4068c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/cxgb4_X/hw_rev 4078c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/cxgb4_X/hca_type 4088c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/cxgb4_X/board_id 4098c2ecf20Sopenharmony_ciDate: Apr, 2010 4108c2ecf20Sopenharmony_ciKernelVersion: v2.6.35 4118c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 4128c2ecf20Sopenharmony_ciDescription: 4138c2ecf20Sopenharmony_ci 4148c2ecf20Sopenharmony_ci =============== ============================================= 4158c2ecf20Sopenharmony_ci hw_rev: (RO) Hardware revision number 4168c2ecf20Sopenharmony_ci 4178c2ecf20Sopenharmony_ci hca_type: (RO) Driver short name. Should normally match 4188c2ecf20Sopenharmony_ci the name in its bus driver structure (e.g. 4198c2ecf20Sopenharmony_ci pci_driver::name) 4208c2ecf20Sopenharmony_ci 4218c2ecf20Sopenharmony_ci board_id: (RO) Manufacturing board id. (Vendor + device 4228c2ecf20Sopenharmony_ci information) 4238c2ecf20Sopenharmony_ci =============== ============================================= 4248c2ecf20Sopenharmony_ci 4258c2ecf20Sopenharmony_ci 4268c2ecf20Sopenharmony_cisysfs interface for Intel IB driver qib 4278c2ecf20Sopenharmony_ci--------------------------------------- 4288c2ecf20Sopenharmony_ci 4298c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/version 4308c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/hw_rev 4318c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/hca_type 4328c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/board_id 4338c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/boardversion 4348c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/nctxts 4358c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/localbus_info 4368c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/tempsense 4378c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/serial 4388c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/nfreectxts 4398c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/chip_reset 4408c2ecf20Sopenharmony_ciDate: May, 2010 4418c2ecf20Sopenharmony_ciKernelVersion: v2.6.35 4428c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 4438c2ecf20Sopenharmony_ciDescription: 4448c2ecf20Sopenharmony_ci =============== ====================================================== 4458c2ecf20Sopenharmony_ci version: (RO) Display version information of installed software 4468c2ecf20Sopenharmony_ci and drivers. 4478c2ecf20Sopenharmony_ci 4488c2ecf20Sopenharmony_ci hw_rev: (RO) Hardware revision number 4498c2ecf20Sopenharmony_ci 4508c2ecf20Sopenharmony_ci hca_type: (RO) Host channel adapter type 4518c2ecf20Sopenharmony_ci 4528c2ecf20Sopenharmony_ci board_id: (RO) Manufacturing board id 4538c2ecf20Sopenharmony_ci 4548c2ecf20Sopenharmony_ci boardversion: (RO) Current version of the chip architecture 4558c2ecf20Sopenharmony_ci 4568c2ecf20Sopenharmony_ci nctxts: (RO) Return the number of user ports (contexts) 4578c2ecf20Sopenharmony_ci available 4588c2ecf20Sopenharmony_ci 4598c2ecf20Sopenharmony_ci localbus_info: (RO) Human readable localbus info 4608c2ecf20Sopenharmony_ci 4618c2ecf20Sopenharmony_ci tempsense: (RO) Display temp sense registers in decimal 4628c2ecf20Sopenharmony_ci 4638c2ecf20Sopenharmony_ci serial: (RO) Serial number of the HCA 4648c2ecf20Sopenharmony_ci 4658c2ecf20Sopenharmony_ci nfreectxts: (RO) The number of free user ports (contexts) 4668c2ecf20Sopenharmony_ci available. 4678c2ecf20Sopenharmony_ci 4688c2ecf20Sopenharmony_ci chip_reset: (WO) Reset the chip if possible by writing 4698c2ecf20Sopenharmony_ci "reset" to this file. Only allowed if no user 4708c2ecf20Sopenharmony_ci contexts are open that use chip resources. 4718c2ecf20Sopenharmony_ci =============== ====================================================== 4728c2ecf20Sopenharmony_ci 4738c2ecf20Sopenharmony_ci 4748c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/ports/N/sl2vl/[0-15] 4758c2ecf20Sopenharmony_ciDate: May, 2010 4768c2ecf20Sopenharmony_ciKernelVersion: v2.6.35 4778c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 4788c2ecf20Sopenharmony_ciDescription: 4798c2ecf20Sopenharmony_ci (RO) The directory contains 16 files numbered 0-15 that specify 4808c2ecf20Sopenharmony_ci the Service Level (SL). Listing the SL files returns the Virtual 4818c2ecf20Sopenharmony_ci Lane (VL) as programmed by the SL. 4828c2ecf20Sopenharmony_ci 4838c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/ports/N/CCMgtA/cc_settings_bin 4848c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/ports/N/CCMgtA/cc_table_bin 4858c2ecf20Sopenharmony_ciDate: May, 2010 4868c2ecf20Sopenharmony_ciKernelVersion: v2.6.35 4878c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 4888c2ecf20Sopenharmony_ciDescription: 4898c2ecf20Sopenharmony_ci Per-port congestion control. Both are binary attributes. 4908c2ecf20Sopenharmony_ci 4918c2ecf20Sopenharmony_ci =============== ================================================ 4928c2ecf20Sopenharmony_ci cc_table_bin (RO) Congestion control table size followed by 4938c2ecf20Sopenharmony_ci table entries. 4948c2ecf20Sopenharmony_ci 4958c2ecf20Sopenharmony_ci cc_settings_bin (RO) Congestion settings: port control, control 4968c2ecf20Sopenharmony_ci map and an array of 16 entries for the 4978c2ecf20Sopenharmony_ci congestion entries - increase, timer, event log 4988c2ecf20Sopenharmony_ci trigger threshold and the minimum injection rate 4998c2ecf20Sopenharmony_ci delay. 5008c2ecf20Sopenharmony_ci =============== ================================================ 5018c2ecf20Sopenharmony_ci 5028c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/ports/N/linkstate/loopback 5038c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/ports/N/linkstate/led_override 5048c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/ports/N/linkstate/hrtbt_enable 5058c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/ports/N/linkstate/status 5068c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/ports/N/linkstate/status_str 5078c2ecf20Sopenharmony_ciDate: May, 2010 5088c2ecf20Sopenharmony_ciKernelVersion: v2.6.35 5098c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 5108c2ecf20Sopenharmony_ciDescription: 5118c2ecf20Sopenharmony_ci [to be documented] 5128c2ecf20Sopenharmony_ci 5138c2ecf20Sopenharmony_ci =============== =============================================== 5148c2ecf20Sopenharmony_ci loopback: (WO) 5158c2ecf20Sopenharmony_ci led_override: (WO) 5168c2ecf20Sopenharmony_ci hrtbt_enable: (RW) 5178c2ecf20Sopenharmony_ci status: (RO) 5188c2ecf20Sopenharmony_ci 5198c2ecf20Sopenharmony_ci status_str: (RO) Displays information about the link state, 5208c2ecf20Sopenharmony_ci possible cable/switch problems, and hardware 5218c2ecf20Sopenharmony_ci errors. Possible states are- "Initted", 5228c2ecf20Sopenharmony_ci "Present", "IB_link_up", "IB_configured" or 5238c2ecf20Sopenharmony_ci "Fatal_Hardware_Error". 5248c2ecf20Sopenharmony_ci =============== =============================================== 5258c2ecf20Sopenharmony_ci 5268c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/ports/N/diag_counters/rc_resends 5278c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/ports/N/diag_counters/seq_naks 5288c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/ports/N/diag_counters/rdma_seq 5298c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/ports/N/diag_counters/rnr_naks 5308c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/ports/N/diag_counters/other_naks 5318c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/ports/N/diag_counters/rc_timeouts 5328c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/ports/N/diag_counters/look_pkts 5338c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/ports/N/diag_counters/pkt_drops 5348c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/ports/N/diag_counters/dma_wait 5358c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qibX/ports/N/diag_counters/unaligned 5368c2ecf20Sopenharmony_ciDate: May, 2010 5378c2ecf20Sopenharmony_ciKernelVersion: v2.6.35 5388c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 5398c2ecf20Sopenharmony_ciDescription: 5408c2ecf20Sopenharmony_ci [to be documented] 5418c2ecf20Sopenharmony_ci 5428c2ecf20Sopenharmony_ci 5438c2ecf20Sopenharmony_cisysfs interface for Mellanox Connect-IB HCA driver mlx5 5448c2ecf20Sopenharmony_ci------------------------------------------------------- 5458c2ecf20Sopenharmony_ci 5468c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/mlx5_X/hw_rev 5478c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/mlx5_X/hca_type 5488c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/mlx5_X/reg_pages 5498c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/mlx5_X/fw_pages 5508c2ecf20Sopenharmony_ciDate: Jul, 2013 5518c2ecf20Sopenharmony_ciKernelVersion: v3.11 5528c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 5538c2ecf20Sopenharmony_ciDescription: 5548c2ecf20Sopenharmony_ci [to be documented] 5558c2ecf20Sopenharmony_ci 5568c2ecf20Sopenharmony_ci 5578c2ecf20Sopenharmony_cisysfs interface for Cisco VIC (usNIC) Verbs Driver 5588c2ecf20Sopenharmony_ci-------------------------------------------------- 5598c2ecf20Sopenharmony_ci 5608c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/usnic_X/board_id 5618c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/usnic_X/config 5628c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/usnic_X/qp_per_vf 5638c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/usnic_X/max_vf 5648c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/usnic_X/cq_per_vf 5658c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/usnic_X/iface 5668c2ecf20Sopenharmony_ciDate: Sep, 2013 5678c2ecf20Sopenharmony_ciKernelVersion: v3.14 5688c2ecf20Sopenharmony_ciContact: Christian Benvenuti <benve@cisco.com>, 5698c2ecf20Sopenharmony_ci Dave Goodell <dgoodell@cisco.com>, 5708c2ecf20Sopenharmony_ci linux-rdma@vger.kernel.org 5718c2ecf20Sopenharmony_ciDescription: 5728c2ecf20Sopenharmony_ci 5738c2ecf20Sopenharmony_ci =============== =============================================== 5748c2ecf20Sopenharmony_ci board_id: (RO) Manufacturing board id 5758c2ecf20Sopenharmony_ci 5768c2ecf20Sopenharmony_ci config: (RO) Report the configuration for this PF 5778c2ecf20Sopenharmony_ci 5788c2ecf20Sopenharmony_ci qp_per_vf: (RO) Queue pairs per virtual function. 5798c2ecf20Sopenharmony_ci 5808c2ecf20Sopenharmony_ci max_vf: (RO) Max virtual functions 5818c2ecf20Sopenharmony_ci 5828c2ecf20Sopenharmony_ci cq_per_vf: (RO) Completion queue per virtual function 5838c2ecf20Sopenharmony_ci 5848c2ecf20Sopenharmony_ci iface: (RO) Shows which network interface this usNIC 5858c2ecf20Sopenharmony_ci entry is associated to (visible with ifconfig). 5868c2ecf20Sopenharmony_ci =============== =============================================== 5878c2ecf20Sopenharmony_ci 5888c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/usnic_X/qpn/summary 5898c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/usnic_X/qpn/context 5908c2ecf20Sopenharmony_ciDate: Sep, 2013 5918c2ecf20Sopenharmony_ciKernelVersion: v3.14 5928c2ecf20Sopenharmony_ciContact: Christian Benvenuti <benve@cisco.com>, 5938c2ecf20Sopenharmony_ci Dave Goodell <dgoodell@cisco.com>, 5948c2ecf20Sopenharmony_ci linux-rdma@vger.kernel.org 5958c2ecf20Sopenharmony_ciDescription: 5968c2ecf20Sopenharmony_ci [to be documented] 5978c2ecf20Sopenharmony_ci 5988c2ecf20Sopenharmony_ci 5998c2ecf20Sopenharmony_cisysfs interface for Emulex RoCE HCA Driver 6008c2ecf20Sopenharmony_ci------------------------------------------ 6018c2ecf20Sopenharmony_ci 6028c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/ocrdmaX/hw_rev 6038c2ecf20Sopenharmony_ciDate: Feb, 2014 6048c2ecf20Sopenharmony_ciKernelVersion: v3.14 6058c2ecf20Sopenharmony_ciDescription: 6068c2ecf20Sopenharmony_ci hw_rev: (RO) Hardware revision number 6078c2ecf20Sopenharmony_ci 6088c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/ocrdmaX/hca_type 6098c2ecf20Sopenharmony_ciDate: Jun, 2014 6108c2ecf20Sopenharmony_ciKernelVersion: v3.16 6118c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 6128c2ecf20Sopenharmony_ciDescription: 6138c2ecf20Sopenharmony_ci hca_type: (RO) Display FW version 6148c2ecf20Sopenharmony_ci 6158c2ecf20Sopenharmony_ci 6168c2ecf20Sopenharmony_cisysfs interface for Intel Omni-Path driver (HFI1) 6178c2ecf20Sopenharmony_ci------------------------------------------------- 6188c2ecf20Sopenharmony_ci 6198c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/hfi1_X/hw_rev 6208c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/hfi1_X/board_id 6218c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/hfi1_X/nctxts 6228c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/hfi1_X/serial 6238c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/hfi1_X/chip_reset 6248c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/hfi1_X/boardversion 6258c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/hfi1_X/nfreectxts 6268c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/hfi1_X/tempsense 6278c2ecf20Sopenharmony_ciDate: May, 2016 6288c2ecf20Sopenharmony_ciKernelVersion: v4.6 6298c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 6308c2ecf20Sopenharmony_ciDescription: 6318c2ecf20Sopenharmony_ci =============== ============================================= 6328c2ecf20Sopenharmony_ci hw_rev: (RO) Hardware revision number 6338c2ecf20Sopenharmony_ci 6348c2ecf20Sopenharmony_ci board_id: (RO) Manufacturing board id 6358c2ecf20Sopenharmony_ci 6368c2ecf20Sopenharmony_ci nctxts: (RO) Total contexts available. 6378c2ecf20Sopenharmony_ci 6388c2ecf20Sopenharmony_ci serial: (RO) Board serial number 6398c2ecf20Sopenharmony_ci 6408c2ecf20Sopenharmony_ci chip_reset: (WO) Write "reset" to this file to reset the 6418c2ecf20Sopenharmony_ci chip if possible. Only allowed if no user 6428c2ecf20Sopenharmony_ci contexts are open that use chip resources. 6438c2ecf20Sopenharmony_ci 6448c2ecf20Sopenharmony_ci boardversion: (RO) Human readable board info 6458c2ecf20Sopenharmony_ci 6468c2ecf20Sopenharmony_ci nfreectxts: (RO) The number of free user ports (contexts) 6478c2ecf20Sopenharmony_ci available. 6488c2ecf20Sopenharmony_ci 6498c2ecf20Sopenharmony_ci tempsense: (RO) Thermal sense information 6508c2ecf20Sopenharmony_ci =============== ============================================= 6518c2ecf20Sopenharmony_ci 6528c2ecf20Sopenharmony_ci 6538c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/hfi1_X/ports/N/CCMgtA/cc_settings_bin 6548c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/hfi1_X/ports/N/CCMgtA/cc_table_bin 6558c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/hfi1_X/ports/N/CCMgtA/cc_prescan 6568c2ecf20Sopenharmony_ciDate: May, 2016 6578c2ecf20Sopenharmony_ciKernelVersion: v4.6 6588c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 6598c2ecf20Sopenharmony_ciDescription: 6608c2ecf20Sopenharmony_ci Per-port congestion control. 6618c2ecf20Sopenharmony_ci 6628c2ecf20Sopenharmony_ci =============== ================================================ 6638c2ecf20Sopenharmony_ci cc_table_bin (RO) CCA tables used by PSM2 Congestion control 6648c2ecf20Sopenharmony_ci table size followed by table entries. Binary 6658c2ecf20Sopenharmony_ci attribute. 6668c2ecf20Sopenharmony_ci 6678c2ecf20Sopenharmony_ci cc_settings_bin (RO) Congestion settings: port control, control 6688c2ecf20Sopenharmony_ci map and an array of 16 entries for the 6698c2ecf20Sopenharmony_ci congestion entries - increase, timer, event log 6708c2ecf20Sopenharmony_ci trigger threshold and the minimum injection rate 6718c2ecf20Sopenharmony_ci delay. Binary attribute. 6728c2ecf20Sopenharmony_ci 6738c2ecf20Sopenharmony_ci cc_prescan (RW) enable prescanning for faster BECN 6748c2ecf20Sopenharmony_ci response. Write "on" to enable and "off" to 6758c2ecf20Sopenharmony_ci disable. 6768c2ecf20Sopenharmony_ci =============== ================================================ 6778c2ecf20Sopenharmony_ci 6788c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/hfi1_X/ports/N/sc2vl/[0-31] 6798c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/hfi1_X/ports/N/sl2sc/[0-31] 6808c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/hfi1_X/ports/N/vl2mtu/[0-15] 6818c2ecf20Sopenharmony_ciDate: May, 2016 6828c2ecf20Sopenharmony_ciKernelVersion: v4.6 6838c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 6848c2ecf20Sopenharmony_ciDescription: 6858c2ecf20Sopenharmony_ci =============== =================================================== 6868c2ecf20Sopenharmony_ci sc2vl/: (RO) 32 files (0 - 31) used to translate sl->vl 6878c2ecf20Sopenharmony_ci 6888c2ecf20Sopenharmony_ci sl2sc/: (RO) 32 files (0 - 31) used to translate sl->sc 6898c2ecf20Sopenharmony_ci 6908c2ecf20Sopenharmony_ci vl2mtu/: (RO) 16 files (0 - 15) used to determine MTU for vl 6918c2ecf20Sopenharmony_ci =============== =================================================== 6928c2ecf20Sopenharmony_ci 6938c2ecf20Sopenharmony_ci 6948c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/hfi1_X/sdma_N/cpu_list 6958c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/hfi1_X/sdma_N/vl 6968c2ecf20Sopenharmony_ciDate: Sept, 2016 6978c2ecf20Sopenharmony_ciKernelVersion: v4.8 6988c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 6998c2ecf20Sopenharmony_ciDescription: 7008c2ecf20Sopenharmony_ci sdma<N>/ contains one directory per sdma engine (0 - 15) 7018c2ecf20Sopenharmony_ci 7028c2ecf20Sopenharmony_ci =============== ============================================== 7038c2ecf20Sopenharmony_ci cpu_list: (RW) List of cpus for user-process to sdma 7048c2ecf20Sopenharmony_ci engine assignment. 7058c2ecf20Sopenharmony_ci 7068c2ecf20Sopenharmony_ci vl: (RO) Displays the virtual lane (vl) the sdma 7078c2ecf20Sopenharmony_ci engine maps to. 7088c2ecf20Sopenharmony_ci =============== ============================================== 7098c2ecf20Sopenharmony_ci 7108c2ecf20Sopenharmony_ci This interface gives the user control on the affinity settings 7118c2ecf20Sopenharmony_ci for the device. As an example, to set an sdma engine irq 7128c2ecf20Sopenharmony_ci affinity and thread affinity of a user processes to use the 7138c2ecf20Sopenharmony_ci sdma engine, which is "near" in terms of NUMA configuration, or 7148c2ecf20Sopenharmony_ci physical cpu location, the user will do:: 7158c2ecf20Sopenharmony_ci 7168c2ecf20Sopenharmony_ci echo "3" > /proc/irq/<N>/smp_affinity_list 7178c2ecf20Sopenharmony_ci echo "4-7" > /sys/devices/.../sdma3/cpu_list 7188c2ecf20Sopenharmony_ci cat /sys/devices/.../sdma3/vl 7198c2ecf20Sopenharmony_ci 0 7208c2ecf20Sopenharmony_ci echo "8" > /proc/irq/<M>/smp_affinity_list 7218c2ecf20Sopenharmony_ci echo "9-12" > /sys/devices/.../sdma4/cpu_list 7228c2ecf20Sopenharmony_ci cat /sys/devices/.../sdma4/vl 7238c2ecf20Sopenharmony_ci 1 7248c2ecf20Sopenharmony_ci 7258c2ecf20Sopenharmony_ci to make sure that when a process runs on cpus 4,5,6, or 7, and 7268c2ecf20Sopenharmony_ci uses vl=0, then sdma engine 3 is selected by the driver, and 7278c2ecf20Sopenharmony_ci also the interrupt of the sdma engine 3 is steered to cpu 3. 7288c2ecf20Sopenharmony_ci Similarly, when a process runs on cpus 9,10,11, or 12 and sets 7298c2ecf20Sopenharmony_ci vl=1, then engine 4 will be selected and the irq of the sdma 7308c2ecf20Sopenharmony_ci engine 4 is steered to cpu 8. This assumes that in the above N 7318c2ecf20Sopenharmony_ci is the irq number of "sdma3", and M is irq number of "sdma4" in 7328c2ecf20Sopenharmony_ci the /proc/interrupts file. 7338c2ecf20Sopenharmony_ci 7348c2ecf20Sopenharmony_ci 7358c2ecf20Sopenharmony_cisysfs interface for Intel(R) X722 iWARP i40iw driver 7368c2ecf20Sopenharmony_ci---------------------------------------------------- 7378c2ecf20Sopenharmony_ci 7388c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/i40iwX/hw_rev 7398c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/i40iwX/hca_type 7408c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/i40iwX/board_id 7418c2ecf20Sopenharmony_ciDate: Jan, 2016 7428c2ecf20Sopenharmony_ciKernelVersion: v4.10 7438c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 7448c2ecf20Sopenharmony_ciDescription: 7458c2ecf20Sopenharmony_ci =============== ==== ======================== 7468c2ecf20Sopenharmony_ci hw_rev: (RO) Hardware revision number 7478c2ecf20Sopenharmony_ci 7488c2ecf20Sopenharmony_ci hca_type: (RO) Show HCA type (I40IW) 7498c2ecf20Sopenharmony_ci 7508c2ecf20Sopenharmony_ci board_id: (RO) I40IW board ID 7518c2ecf20Sopenharmony_ci =============== ==== ======================== 7528c2ecf20Sopenharmony_ci 7538c2ecf20Sopenharmony_ci 7548c2ecf20Sopenharmony_cisysfs interface for QLogic qedr NIC Driver 7558c2ecf20Sopenharmony_ci------------------------------------------ 7568c2ecf20Sopenharmony_ci 7578c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qedrX/hw_rev 7588c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/qedrX/hca_type 7598c2ecf20Sopenharmony_ciDate: Oct, 2016 7608c2ecf20Sopenharmony_ciKernelVersion: v4.10 7618c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 7628c2ecf20Sopenharmony_ciDescription: 7638c2ecf20Sopenharmony_ci 7648c2ecf20Sopenharmony_ci =============== ==== ======================== 7658c2ecf20Sopenharmony_ci hw_rev: (RO) Hardware revision number 7668c2ecf20Sopenharmony_ci 7678c2ecf20Sopenharmony_ci hca_type: (RO) Display HCA type 7688c2ecf20Sopenharmony_ci =============== ==== ======================== 7698c2ecf20Sopenharmony_ci 7708c2ecf20Sopenharmony_ci 7718c2ecf20Sopenharmony_cisysfs interface for VMware Paravirtual RDMA driver 7728c2ecf20Sopenharmony_ci-------------------------------------------------- 7738c2ecf20Sopenharmony_ci 7748c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/vmw_pvrdmaX/hw_rev 7758c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/vmw_pvrdmaX/hca_type 7768c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/vmw_pvrdmaX/board_id 7778c2ecf20Sopenharmony_ciDate: Oct, 2016 7788c2ecf20Sopenharmony_ciKernelVersion: v4.10 7798c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 7808c2ecf20Sopenharmony_ciDescription: 7818c2ecf20Sopenharmony_ci 7828c2ecf20Sopenharmony_ci =============== ==== ===================================== 7838c2ecf20Sopenharmony_ci hw_rev: (RO) Hardware revision number 7848c2ecf20Sopenharmony_ci 7858c2ecf20Sopenharmony_ci hca_type: (RO) Host channel adapter type 7868c2ecf20Sopenharmony_ci 7878c2ecf20Sopenharmony_ci board_id: (RO) Display PVRDMA manufacturing board ID 7888c2ecf20Sopenharmony_ci =============== ==== ===================================== 7898c2ecf20Sopenharmony_ci 7908c2ecf20Sopenharmony_ci 7918c2ecf20Sopenharmony_cisysfs interface for Broadcom NetXtreme-E RoCE driver 7928c2ecf20Sopenharmony_ci---------------------------------------------------- 7938c2ecf20Sopenharmony_ci 7948c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/bnxt_reX/hw_rev 7958c2ecf20Sopenharmony_ciWhat: /sys/class/infiniband/bnxt_reX/hca_type 7968c2ecf20Sopenharmony_ciDate: Feb, 2017 7978c2ecf20Sopenharmony_ciKernelVersion: v4.11 7988c2ecf20Sopenharmony_ciContact: linux-rdma@vger.kernel.org 7998c2ecf20Sopenharmony_ciDescription: 8008c2ecf20Sopenharmony_ci =============== ==== ========================= 8018c2ecf20Sopenharmony_ci hw_rev: (RO) Hardware revision number 8028c2ecf20Sopenharmony_ci 8038c2ecf20Sopenharmony_ci hca_type: (RO) Host channel adapter type 8048c2ecf20Sopenharmony_ci =============== ==== ========================= 805