162306a36Sopenharmony_cisysfs interface common for all infiniband devices
262306a36Sopenharmony_ci-------------------------------------------------
362306a36Sopenharmony_ci
462306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/node_type
562306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/node_guid
662306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/sys_image_guid
762306a36Sopenharmony_ciDate:		Apr, 2005
862306a36Sopenharmony_ciKernelVersion:	v2.6.12
962306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
1062306a36Sopenharmony_ciDescription:
1162306a36Sopenharmony_ci		=============== ===========================================
1262306a36Sopenharmony_ci		node_type:	(RO) Node type (CA, RNIC, usNIC, usNIC UDP,
1362306a36Sopenharmony_ci				switch or router)
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci		node_guid:	(RO) Node GUID
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci		sys_image_guid:	(RO) System image GUID
1862306a36Sopenharmony_ci		=============== ===========================================
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/node_desc
2262306a36Sopenharmony_ciDate:		Feb, 2006
2362306a36Sopenharmony_ciKernelVersion:	v2.6.17
2462306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
2562306a36Sopenharmony_ciDescription:
2662306a36Sopenharmony_ci		(RW) Update the node description with information such as the
2762306a36Sopenharmony_ci		node's hostname, so that IB network management software can tie
2862306a36Sopenharmony_ci		its view to the real world.
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/fw_ver
3262306a36Sopenharmony_ciDate:		Jun, 2016
3362306a36Sopenharmony_ciKernelVersion:	v4.10
3462306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
3562306a36Sopenharmony_ciDescription:
3662306a36Sopenharmony_ci		(RO) Display firmware version
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ci
3962306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/lid
4062306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/rate
4162306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/lid_mask_count
4262306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/sm_sl
4362306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/sm_lid
4462306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/state
4562306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/phys_state
4662306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/cap_mask
4762306a36Sopenharmony_ciDate:		Apr, 2005
4862306a36Sopenharmony_ciKernelVersion:	v2.6.12
4962306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
5062306a36Sopenharmony_ciDescription:
5162306a36Sopenharmony_ci
5262306a36Sopenharmony_ci		=============== ===============================================
5362306a36Sopenharmony_ci		lid:		(RO) Port LID
5462306a36Sopenharmony_ci
5562306a36Sopenharmony_ci		rate:		(RO) Port data rate (active width * active
5662306a36Sopenharmony_ci				speed)
5762306a36Sopenharmony_ci
5862306a36Sopenharmony_ci		lid_mask_count:	(RO) Port LID mask count
5962306a36Sopenharmony_ci
6062306a36Sopenharmony_ci		sm_sl:		(RO) Subnet manager SL for port's subnet
6162306a36Sopenharmony_ci
6262306a36Sopenharmony_ci		sm_lid:		(RO) Subnet manager LID for port's subnet
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ci		state:		(RO) Port state (DOWN, INIT, ARMED, ACTIVE or
6562306a36Sopenharmony_ci				ACTIVE_DEFER)
6662306a36Sopenharmony_ci
6762306a36Sopenharmony_ci		phys_state:	(RO) Port physical state (Sleep, Polling,
6862306a36Sopenharmony_ci				LinkUp, etc)
6962306a36Sopenharmony_ci
7062306a36Sopenharmony_ci		cap_mask:	(RO) Port capability mask. 2 bits here are
7162306a36Sopenharmony_ci				settable- IsCommunicationManagementSupported
7262306a36Sopenharmony_ci				(set when CM module is loaded) and IsSM (set
7362306a36Sopenharmony_ci				via open of issmN file).
7462306a36Sopenharmony_ci		=============== ===============================================
7562306a36Sopenharmony_ci
7662306a36Sopenharmony_ci
7762306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/link_layer
7862306a36Sopenharmony_ciDate:		Oct, 2010
7962306a36Sopenharmony_ciKernelVersion:	v2.6.37
8062306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
8162306a36Sopenharmony_ciDescription:
8262306a36Sopenharmony_ci		(RO) Link layer type information (Infiniband or Ethernet type)
8362306a36Sopenharmony_ci
8462306a36Sopenharmony_ci
8562306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/symbol_error
8662306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/port_rcv_errors
8762306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/port_rcv_remote_physical_errors
8862306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/port_rcv_switch_relay_errors
8962306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/link_error_recovery
9062306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/port_xmit_constraint_errors
9162306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/port_rcv_contraint_errors
9262306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/local_link_integrity_errors
9362306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/excessive_buffer_overrun_errors
9462306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/port_xmit_data
9562306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/port_rcv_data
9662306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/port_xmit_packets
9762306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/port_rcv_packets
9862306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/unicast_rcv_packets
9962306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/unicast_xmit_packets
10062306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/multicast_rcv_packets
10162306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/multicast_xmit_packets
10262306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/link_downed
10362306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/port_xmit_discards
10462306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/VL15_dropped
10562306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device>/ports/<port-num>/counters/port_xmit_wait
10662306a36Sopenharmony_ciDate:		Apr, 2005
10762306a36Sopenharmony_ciKernelVersion:	v2.6.12
10862306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
10962306a36Sopenharmony_ciDescription:
11062306a36Sopenharmony_ci		**Errors info**:
11162306a36Sopenharmony_ci
11262306a36Sopenharmony_ci		symbol_error: (RO) Total number of minor link errors detected on
11362306a36Sopenharmony_ci		one or more physical lanes.
11462306a36Sopenharmony_ci
11562306a36Sopenharmony_ci		port_rcv_errors : (RO) Total number of packets containing an
11662306a36Sopenharmony_ci		error that were received on the port.
11762306a36Sopenharmony_ci
11862306a36Sopenharmony_ci		port_rcv_remote_physical_errors : (RO) Total number of packets
11962306a36Sopenharmony_ci		marked with the EBP delimiter received on the port.
12062306a36Sopenharmony_ci
12162306a36Sopenharmony_ci		port_rcv_switch_relay_errors : (RO) Total number of packets
12262306a36Sopenharmony_ci		received on the port that were discarded because they could not
12362306a36Sopenharmony_ci		be forwarded by the switch relay.
12462306a36Sopenharmony_ci
12562306a36Sopenharmony_ci		link_error_recovery: (RO) Total number of times the Port
12662306a36Sopenharmony_ci		Training state machine has successfully completed the link error
12762306a36Sopenharmony_ci		recovery process.
12862306a36Sopenharmony_ci
12962306a36Sopenharmony_ci		port_xmit_constraint_errors: (RO) Total number of packets not
13062306a36Sopenharmony_ci		transmitted from the switch physical port due to outbound raw
13162306a36Sopenharmony_ci		filtering or failing outbound partition or IP version check.
13262306a36Sopenharmony_ci
13362306a36Sopenharmony_ci		port_rcv_constraint_errors: (RO) Total number of packets
13462306a36Sopenharmony_ci		received on the switch physical port that are discarded due to
13562306a36Sopenharmony_ci		inbound raw filtering or failing inbound partition or IP version
13662306a36Sopenharmony_ci		check.
13762306a36Sopenharmony_ci
13862306a36Sopenharmony_ci		local_link_integrity_errors: (RO) The number of times that the
13962306a36Sopenharmony_ci		count of local physical errors exceeded the threshold specified
14062306a36Sopenharmony_ci		by LocalPhyErrors
14162306a36Sopenharmony_ci
14262306a36Sopenharmony_ci		excessive_buffer_overrun_errors: (RO) This counter, indicates an
14362306a36Sopenharmony_ci		input buffer overrun. It indicates possible misconfiguration of
14462306a36Sopenharmony_ci		a port, either by the Subnet Manager (SM) or by user
14562306a36Sopenharmony_ci		intervention. It can also indicate hardware issues or extremely
14662306a36Sopenharmony_ci		poor link signal integrity
14762306a36Sopenharmony_ci
14862306a36Sopenharmony_ci		**Data info**:
14962306a36Sopenharmony_ci
15062306a36Sopenharmony_ci		port_xmit_data: (RO) Total number of data octets, divided by 4
15162306a36Sopenharmony_ci		(lanes), transmitted on all VLs. This is 64 bit counter
15262306a36Sopenharmony_ci
15362306a36Sopenharmony_ci		port_rcv_data: (RO) Total number of data octets, divided by 4
15462306a36Sopenharmony_ci		(lanes), received on all VLs. This is 64 bit counter.
15562306a36Sopenharmony_ci
15662306a36Sopenharmony_ci		port_xmit_packets: (RO) Total number of packets transmitted on
15762306a36Sopenharmony_ci		all VLs from this port. This may include packets with errors.
15862306a36Sopenharmony_ci		This is 64 bit counter.
15962306a36Sopenharmony_ci
16062306a36Sopenharmony_ci		port_rcv_packets: (RO) Total number of packets (this may include
16162306a36Sopenharmony_ci		packets containing Errors. This is 64 bit counter.
16262306a36Sopenharmony_ci
16362306a36Sopenharmony_ci		link_downed: (RO) Total number of times the Port Training state
16462306a36Sopenharmony_ci		machine has failed the link error recovery process and downed
16562306a36Sopenharmony_ci		the link.
16662306a36Sopenharmony_ci
16762306a36Sopenharmony_ci		unicast_rcv_packets: (RO) Total number of unicast packets,
16862306a36Sopenharmony_ci		including unicast packets containing errors.
16962306a36Sopenharmony_ci
17062306a36Sopenharmony_ci		unicast_xmit_packets: (RO) Total number of unicast packets
17162306a36Sopenharmony_ci		transmitted on all VLs from the port. This may include unicast
17262306a36Sopenharmony_ci		packets with errors.
17362306a36Sopenharmony_ci
17462306a36Sopenharmony_ci		multicast_rcv_packets: (RO) Total number of multicast packets,
17562306a36Sopenharmony_ci		including multicast packets containing errors.
17662306a36Sopenharmony_ci
17762306a36Sopenharmony_ci		multicast_xmit_packets: (RO) Total number of multicast packets
17862306a36Sopenharmony_ci		transmitted on all VLs from the port. This may include multicast
17962306a36Sopenharmony_ci		packets with errors.
18062306a36Sopenharmony_ci
18162306a36Sopenharmony_ci		**Misc info**:
18262306a36Sopenharmony_ci
18362306a36Sopenharmony_ci		port_xmit_discards: (RO) Total number of outbound packets
18462306a36Sopenharmony_ci		discarded by the port because the port is down or congested.
18562306a36Sopenharmony_ci
18662306a36Sopenharmony_ci		VL15_dropped: (RO) Number of incoming VL15 packets dropped due
18762306a36Sopenharmony_ci		to resource limitations (e.g., lack of buffers) of the port.
18862306a36Sopenharmony_ci
18962306a36Sopenharmony_ci		port_xmit_wait: (RO) The number of ticks during which the port
19062306a36Sopenharmony_ci		had data to transmit but no data was sent during the entire tick
19162306a36Sopenharmony_ci		(either because of insufficient credits or because of lack of
19262306a36Sopenharmony_ci		arbitration).
19362306a36Sopenharmony_ci
19462306a36Sopenharmony_ci		Each of these files contains the corresponding value from the
19562306a36Sopenharmony_ci		port's Performance Management PortCounters attribute, as
19662306a36Sopenharmony_ci		described in the InfiniBand Architecture Specification.
19762306a36Sopenharmony_ci
19862306a36Sopenharmony_ci
19962306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device-name>/hw_counters/lifespan
20062306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<device-name>/ports/<port-num>/hw_counters/lifespan
20162306a36Sopenharmony_ciDate:		May, 2016
20262306a36Sopenharmony_ciKernelVersion:	4.6
20362306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
20462306a36Sopenharmony_ciDescription:
20562306a36Sopenharmony_ci		The optional "hw_counters" subdirectory can be under either the
20662306a36Sopenharmony_ci		parent device or the port subdirectories or both. If present,
20762306a36Sopenharmony_ci		there are a list of counters provided by the hardware. They may
20862306a36Sopenharmony_ci		match some of the counters in the counters directory, but they
20962306a36Sopenharmony_ci		often include many other counters. In addition to the various
21062306a36Sopenharmony_ci		counters, there will be a file named "lifespan" that configures
21162306a36Sopenharmony_ci		how frequently the core should update the counters when they are
21262306a36Sopenharmony_ci		being accessed (counters are not updated if they are not being
21362306a36Sopenharmony_ci		accessed). The lifespan is in milliseconds and defaults to 10
21462306a36Sopenharmony_ci		unless set to something else by the driver. Users may echo a
21562306a36Sopenharmony_ci		value between 0-10000 to the lifespan file to set the length
21662306a36Sopenharmony_ci		of time between updates in milliseconds.
21762306a36Sopenharmony_ci
21862306a36Sopenharmony_ci
21962306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<hca>/ports/<port-number>/gid_attrs/ndevs/<gid-index>
22062306a36Sopenharmony_ciDate:		November 29, 2015
22162306a36Sopenharmony_ciKernelVersion:	4.4.0
22262306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
22362306a36Sopenharmony_ciDescription: 	The net-device's name associated with the GID resides
22462306a36Sopenharmony_ci		at index <gid-index>.
22562306a36Sopenharmony_ci
22662306a36Sopenharmony_ciWhat:		/sys/class/infiniband/<hca>/ports/<port-number>/gid_attrs/types/<gid-index>
22762306a36Sopenharmony_ciDate:		November 29, 2015
22862306a36Sopenharmony_ciKernelVersion:	4.4.0
22962306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
23062306a36Sopenharmony_ciDescription: 	The RoCE type of the associated GID resides at index <gid-index>.
23162306a36Sopenharmony_ci		This could either be "IB/RoCE v1" for IB and RoCE v1 based GIDs
23262306a36Sopenharmony_ci		or "RoCE v2" for RoCE v2 based GIDs.
23362306a36Sopenharmony_ci
23462306a36Sopenharmony_ci
23562306a36Sopenharmony_ciWhat:		/sys/class/infiniband_mad/umad<N>/ibdev
23662306a36Sopenharmony_ciWhat:		/sys/class/infiniband_mad/umad<N>/port
23762306a36Sopenharmony_ciWhat:		/sys/class/infiniband_mad/issm<N>/ibdev
23862306a36Sopenharmony_ciWhat:		/sys/class/infiniband_mad/issm<N>/port
23962306a36Sopenharmony_ciDate:		Apr, 2005
24062306a36Sopenharmony_ciKernelVersion:	v2.6.12
24162306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
24262306a36Sopenharmony_ciDescription:
24362306a36Sopenharmony_ci		Each port of each InfiniBand device has a "umad" device and an
24462306a36Sopenharmony_ci		"issm" device attached. For example, a two-port HCA will have
24562306a36Sopenharmony_ci		two umad devices and two issm devices, while a switch will have
24662306a36Sopenharmony_ci		one device of each type (for switch port 0).
24762306a36Sopenharmony_ci
24862306a36Sopenharmony_ci		======= =====================================
24962306a36Sopenharmony_ci		ibdev:	(RO) Show Infiniband (IB) device name
25062306a36Sopenharmony_ci
25162306a36Sopenharmony_ci		port:	(RO) Display port number
25262306a36Sopenharmony_ci		======= =====================================
25362306a36Sopenharmony_ci
25462306a36Sopenharmony_ci
25562306a36Sopenharmony_ciWhat:		/sys/class/infiniband_mad/abi_version
25662306a36Sopenharmony_ciDate:		Apr, 2005
25762306a36Sopenharmony_ciKernelVersion:	v2.6.12
25862306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
25962306a36Sopenharmony_ciDescription:
26062306a36Sopenharmony_ci		(RO) Value is incremented if any changes are made that break
26162306a36Sopenharmony_ci		userspace ABI compatibility of umad & issm devices.
26262306a36Sopenharmony_ci
26362306a36Sopenharmony_ci
26462306a36Sopenharmony_ciWhat:		/sys/class/infiniband_verbs/uverbs<N>/ibdev
26562306a36Sopenharmony_ciWhat:		/sys/class/infiniband_verbs/uverbs<N>/abi_version
26662306a36Sopenharmony_ciDate:		Sept, 2005
26762306a36Sopenharmony_ciKernelVersion:	v2.6.14
26862306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
26962306a36Sopenharmony_ciDescription:
27062306a36Sopenharmony_ci		=============== ===========================================
27162306a36Sopenharmony_ci		ibdev:		(RO) Display Infiniband (IB) device name
27262306a36Sopenharmony_ci
27362306a36Sopenharmony_ci		abi_version:	(RO) Show ABI version of IB device specific
27462306a36Sopenharmony_ci				interfaces.
27562306a36Sopenharmony_ci		=============== ===========================================
27662306a36Sopenharmony_ci
27762306a36Sopenharmony_ci
27862306a36Sopenharmony_ciWhat:		/sys/class/infiniband_verbs/abi_version
27962306a36Sopenharmony_ciDate:		Sep, 2005
28062306a36Sopenharmony_ciKernelVersion:	v2.6.14
28162306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
28262306a36Sopenharmony_ciDescription:
28362306a36Sopenharmony_ci		(RO) Value is incremented if any changes are made that break
28462306a36Sopenharmony_ci		userspace ABI compatibility of uverbs devices.
28562306a36Sopenharmony_ci
28662306a36Sopenharmony_ci
28762306a36Sopenharmony_cisysfs interface for Mellanox IB HCA low-level driver (mthca)
28862306a36Sopenharmony_ci------------------------------------------------------------
28962306a36Sopenharmony_ci
29062306a36Sopenharmony_ciWhat:		/sys/class/infiniband/mthcaX/hw_rev
29162306a36Sopenharmony_ciWhat:		/sys/class/infiniband/mthcaX/hca_type
29262306a36Sopenharmony_ciWhat:		/sys/class/infiniband/mthcaX/board_id
29362306a36Sopenharmony_ciDate:		Apr, 2005
29462306a36Sopenharmony_ciKernelVersion:	v2.6.12
29562306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
29662306a36Sopenharmony_ciDescription:
29762306a36Sopenharmony_ci		=============== ================================================
29862306a36Sopenharmony_ci		hw_rev:		(RO) Hardware revision number
29962306a36Sopenharmony_ci
30062306a36Sopenharmony_ci		hca_type:	(RO) Host Channel Adapter type: MT23108, MT25208
30162306a36Sopenharmony_ci				(MT23108 compat mode), MT25208 or MT25204
30262306a36Sopenharmony_ci
30362306a36Sopenharmony_ci		board_id:	(RO) Manufacturing board ID
30462306a36Sopenharmony_ci		=============== ================================================
30562306a36Sopenharmony_ci
30662306a36Sopenharmony_ci
30762306a36Sopenharmony_cisysfs interface for Mellanox ConnectX HCA IB driver (mlx4)
30862306a36Sopenharmony_ci----------------------------------------------------------
30962306a36Sopenharmony_ci
31062306a36Sopenharmony_ciWhat:		/sys/class/infiniband/mlx4_X/hw_rev
31162306a36Sopenharmony_ciWhat:		/sys/class/infiniband/mlx4_X/hca_type
31262306a36Sopenharmony_ciWhat:		/sys/class/infiniband/mlx4_X/board_id
31362306a36Sopenharmony_ciDate:		Sep, 2007
31462306a36Sopenharmony_ciKernelVersion:	v2.6.24
31562306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
31662306a36Sopenharmony_ciDescription:
31762306a36Sopenharmony_ci		=============== ===============================
31862306a36Sopenharmony_ci		hw_rev:		(RO) Hardware revision number
31962306a36Sopenharmony_ci
32062306a36Sopenharmony_ci		hca_type:	(RO) Host channel adapter type
32162306a36Sopenharmony_ci
32262306a36Sopenharmony_ci		board_id:	(RO) Manufacturing board ID
32362306a36Sopenharmony_ci		=============== ===============================
32462306a36Sopenharmony_ci
32562306a36Sopenharmony_ci
32662306a36Sopenharmony_ciWhat:		/sys/class/infiniband/mlx4_X/iov/ports/<port-num>/gids/<n>
32762306a36Sopenharmony_ciWhat:		/sys/class/infiniband/mlx4_X/iov/ports/<port-num>/admin_guids/<n>
32862306a36Sopenharmony_ciWhat:		/sys/class/infiniband/mlx4_X/iov/ports/<port-num>/pkeys/<n>
32962306a36Sopenharmony_ciWhat:		/sys/class/infiniband/mlx4_X/iov/ports/<port-num>/mcgs/
33062306a36Sopenharmony_ciWhat:		/sys/class/infiniband/mlx4_X/iov/ports/<pci-slot-num>/ports/<m>/gid_idx/0
33162306a36Sopenharmony_ciWhat:		/sys/class/infiniband/mlx4_X/iov/ports/<pci-slot-num>/ports/<m>/pkey_idx/<n>
33262306a36Sopenharmony_ciDate:		Aug, 2012
33362306a36Sopenharmony_ciKernelVersion:	v3.6.15
33462306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
33562306a36Sopenharmony_ciDescription:
33662306a36Sopenharmony_ci		The sysfs iov directory is used to manage and examine the port
33762306a36Sopenharmony_ci		P_Key and guid paravirtualization. This directory is added only
33862306a36Sopenharmony_ci		for the master -- slaves do not have it.
33962306a36Sopenharmony_ci
34062306a36Sopenharmony_ci		Under iov/ports, the administrator may examine the gid and P_Key
34162306a36Sopenharmony_ci		tables as they are present in the device (and as are seen in the
34262306a36Sopenharmony_ci		"network view" presented to the SM).
34362306a36Sopenharmony_ci
34462306a36Sopenharmony_ci		The "pkeys" and "gids" subdirectories contain one file for each
34562306a36Sopenharmony_ci		entry in the port's P_Key or GID table respectively. For
34662306a36Sopenharmony_ci		example, ports/1/pkeys/10 contains the value at index 10 in port
34762306a36Sopenharmony_ci		1's P_Key table.
34862306a36Sopenharmony_ci
34962306a36Sopenharmony_ci		======================= ==========================================
35062306a36Sopenharmony_ci		gids/<n>:		(RO) The physical port gids n = 0..127
35162306a36Sopenharmony_ci
35262306a36Sopenharmony_ci		admin_guids/<n>:	(RW) Allows examining or changing the
35362306a36Sopenharmony_ci					administrative state of a given GUID
35462306a36Sopenharmony_ci					n = 0..127
35562306a36Sopenharmony_ci
35662306a36Sopenharmony_ci		pkeys/<n>:		(RO) Displays the contents of the physical
35762306a36Sopenharmony_ci					key table n = 0..126
35862306a36Sopenharmony_ci
35962306a36Sopenharmony_ci		mcgs/:			(RO) Multicast group table
36062306a36Sopenharmony_ci
36162306a36Sopenharmony_ci		<m>/gid_idx/0:		(RO) Display the GID mapping m = 1..2
36262306a36Sopenharmony_ci
36362306a36Sopenharmony_ci		<m>/pkey_idx/<n>:	(RW) Writable except for RoCE pkeys.
36462306a36Sopenharmony_ci					m = 1..2, n = 0..126
36562306a36Sopenharmony_ci
36662306a36Sopenharmony_ci					Under the iov/<pci slot number>
36762306a36Sopenharmony_ci					directories, the admin may map the index
36862306a36Sopenharmony_ci					numbers in the physical tables (as under
36962306a36Sopenharmony_ci					iov/ports) to the paravirtualized index
37062306a36Sopenharmony_ci					numbers that guests see.
37162306a36Sopenharmony_ci
37262306a36Sopenharmony_ci					For example, if the administrator, for
37362306a36Sopenharmony_ci					port 1 on guest 2 maps physical pkey
37462306a36Sopenharmony_ci					index 10 to virtual index 1, then that
37562306a36Sopenharmony_ci					guest, whenever it uses its pkey index
37662306a36Sopenharmony_ci					1, will actually be using the real pkey
37762306a36Sopenharmony_ci					index 10.
37862306a36Sopenharmony_ci		======================= ==========================================
37962306a36Sopenharmony_ci
38062306a36Sopenharmony_ci
38162306a36Sopenharmony_ciWhat:		/sys/class/infiniband/mlx4_X/iov/<pci-slot-num>/ports/<m>/smi_enabled
38262306a36Sopenharmony_ciWhat:           /sys/class/infiniband/mlx4_X/iov/<pci-slot-num>/ports/<m>/enable_smi_admin
38362306a36Sopenharmony_ciDate:		May, 2014
38462306a36Sopenharmony_ciKernelVersion:	v3.15.7
38562306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
38662306a36Sopenharmony_ciDescription:
38762306a36Sopenharmony_ci		Enabling QP0 on VFs for selected VF/port. By default, no VFs are
38862306a36Sopenharmony_ci		enabled for QP0 operation.
38962306a36Sopenharmony_ci
39062306a36Sopenharmony_ci		================= ==== ===========================================
39162306a36Sopenharmony_ci		smi_enabled:	  (RO) Indicates whether smi is currently enabled
39262306a36Sopenharmony_ci				       for the indicated VF/port
39362306a36Sopenharmony_ci
39462306a36Sopenharmony_ci		enable_smi_admin: (RW) Used by the admin to request that smi
39562306a36Sopenharmony_ci				       capability be enabled or disabled for the
39662306a36Sopenharmony_ci				       indicated VF/port. 0 = disable, 1 = enable.
39762306a36Sopenharmony_ci		================= ==== ===========================================
39862306a36Sopenharmony_ci
39962306a36Sopenharmony_ci		The requested enablement will occur at the next reset of the VF
40062306a36Sopenharmony_ci		(e.g. driver restart on the VM which owns the VF).
40162306a36Sopenharmony_ci
40262306a36Sopenharmony_ci
40362306a36Sopenharmony_cisysfs interface for Chelsio T4/T5 RDMA driver (cxgb4)
40462306a36Sopenharmony_ci-----------------------------------------------------
40562306a36Sopenharmony_ci
40662306a36Sopenharmony_ciWhat:		/sys/class/infiniband/cxgb4_X/hw_rev
40762306a36Sopenharmony_ciWhat:		/sys/class/infiniband/cxgb4_X/hca_type
40862306a36Sopenharmony_ciWhat:		/sys/class/infiniband/cxgb4_X/board_id
40962306a36Sopenharmony_ciDate:		Apr, 2010
41062306a36Sopenharmony_ciKernelVersion:	v2.6.35
41162306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
41262306a36Sopenharmony_ciDescription:
41362306a36Sopenharmony_ci
41462306a36Sopenharmony_ci		=============== =============================================
41562306a36Sopenharmony_ci		hw_rev:		(RO) Hardware revision number
41662306a36Sopenharmony_ci
41762306a36Sopenharmony_ci		hca_type:	(RO) Driver short name. Should normally match
41862306a36Sopenharmony_ci				the name in its bus driver structure (e.g.
41962306a36Sopenharmony_ci				pci_driver::name)
42062306a36Sopenharmony_ci
42162306a36Sopenharmony_ci		board_id:	(RO) Manufacturing board id. (Vendor + device
42262306a36Sopenharmony_ci				information)
42362306a36Sopenharmony_ci		=============== =============================================
42462306a36Sopenharmony_ci
42562306a36Sopenharmony_ci
42662306a36Sopenharmony_cisysfs interface for Intel IB driver qib
42762306a36Sopenharmony_ci---------------------------------------
42862306a36Sopenharmony_ci
42962306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/version
43062306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/hw_rev
43162306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/hca_type
43262306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/board_id
43362306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/boardversion
43462306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/nctxts
43562306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/localbus_info
43662306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/tempsense
43762306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/serial
43862306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/nfreectxts
43962306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/chip_reset
44062306a36Sopenharmony_ciDate:		May, 2010
44162306a36Sopenharmony_ciKernelVersion:	v2.6.35
44262306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
44362306a36Sopenharmony_ciDescription:
44462306a36Sopenharmony_ci		=============== ======================================================
44562306a36Sopenharmony_ci		version:	(RO) Display version information of installed software
44662306a36Sopenharmony_ci				and drivers.
44762306a36Sopenharmony_ci
44862306a36Sopenharmony_ci		hw_rev:		(RO) Hardware revision number
44962306a36Sopenharmony_ci
45062306a36Sopenharmony_ci		hca_type:	(RO) Host channel adapter type
45162306a36Sopenharmony_ci
45262306a36Sopenharmony_ci		board_id:	(RO) Manufacturing board id
45362306a36Sopenharmony_ci
45462306a36Sopenharmony_ci		boardversion:	(RO) Current version of the chip architecture
45562306a36Sopenharmony_ci
45662306a36Sopenharmony_ci		nctxts:		(RO) Return the number of user ports (contexts)
45762306a36Sopenharmony_ci				available
45862306a36Sopenharmony_ci
45962306a36Sopenharmony_ci		localbus_info:	(RO) Human readable localbus info
46062306a36Sopenharmony_ci
46162306a36Sopenharmony_ci		tempsense:	(RO) Display temp sense registers in decimal
46262306a36Sopenharmony_ci
46362306a36Sopenharmony_ci		serial:		(RO) Serial number of the HCA
46462306a36Sopenharmony_ci
46562306a36Sopenharmony_ci		nfreectxts:	(RO) The number of free user ports (contexts)
46662306a36Sopenharmony_ci				available.
46762306a36Sopenharmony_ci
46862306a36Sopenharmony_ci		chip_reset:	(WO) Reset the chip if possible by writing
46962306a36Sopenharmony_ci				"reset" to this file. Only allowed if no user
47062306a36Sopenharmony_ci				contexts are open that use chip resources.
47162306a36Sopenharmony_ci		=============== ======================================================
47262306a36Sopenharmony_ci
47362306a36Sopenharmony_ci
47462306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/ports/<N>/sl2vl/[0-15]
47562306a36Sopenharmony_ciDate:		May, 2010
47662306a36Sopenharmony_ciKernelVersion:	v2.6.35
47762306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
47862306a36Sopenharmony_ciDescription:
47962306a36Sopenharmony_ci		(RO) The directory contains 16 files numbered 0-15 that specify
48062306a36Sopenharmony_ci		the Service Level (SL). Listing the SL files returns the Virtual
48162306a36Sopenharmony_ci		Lane (VL) as programmed by the SL.
48262306a36Sopenharmony_ci
48362306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/ports/<N>/CCMgtA/cc_settings_bin
48462306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/ports/<N>/CCMgtA/cc_table_bin
48562306a36Sopenharmony_ciDate:		May, 2010
48662306a36Sopenharmony_ciKernelVersion:	v2.6.35
48762306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
48862306a36Sopenharmony_ciDescription:
48962306a36Sopenharmony_ci		Per-port congestion control. Both are binary attributes.
49062306a36Sopenharmony_ci
49162306a36Sopenharmony_ci		=============== ================================================
49262306a36Sopenharmony_ci		cc_table_bin	(RO) Congestion control table size followed by
49362306a36Sopenharmony_ci				table entries.
49462306a36Sopenharmony_ci
49562306a36Sopenharmony_ci		cc_settings_bin (RO) Congestion settings: port control, control
49662306a36Sopenharmony_ci				map and an array of 16 entries for the
49762306a36Sopenharmony_ci				congestion entries - increase, timer, event log
49862306a36Sopenharmony_ci				trigger threshold and the minimum injection rate
49962306a36Sopenharmony_ci				delay.
50062306a36Sopenharmony_ci		=============== ================================================
50162306a36Sopenharmony_ci
50262306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/ports/<N>/linkstate/loopback
50362306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/ports/<N>/linkstate/led_override
50462306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/ports/<N>/linkstate/hrtbt_enable
50562306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/ports/<N>/linkstate/status
50662306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/ports/<N>/linkstate/status_str
50762306a36Sopenharmony_ciDate:		May, 2010
50862306a36Sopenharmony_ciKernelVersion:	v2.6.35
50962306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
51062306a36Sopenharmony_ciDescription:
51162306a36Sopenharmony_ci		[to be documented]
51262306a36Sopenharmony_ci
51362306a36Sopenharmony_ci		=============== ===============================================
51462306a36Sopenharmony_ci		loopback:	(WO)
51562306a36Sopenharmony_ci		led_override:	(WO)
51662306a36Sopenharmony_ci		hrtbt_enable:	(RW)
51762306a36Sopenharmony_ci		status:		(RO)
51862306a36Sopenharmony_ci
51962306a36Sopenharmony_ci		status_str:	(RO) Displays information about the link state,
52062306a36Sopenharmony_ci				possible cable/switch problems, and hardware
52162306a36Sopenharmony_ci				errors. Possible states are- "Initted",
52262306a36Sopenharmony_ci				"Present", "IB_link_up", "IB_configured" or
52362306a36Sopenharmony_ci				"Fatal_Hardware_Error".
52462306a36Sopenharmony_ci		=============== ===============================================
52562306a36Sopenharmony_ci
52662306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/ports/<N>/diag_counters/rc_resends
52762306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/ports/<N>/diag_counters/seq_naks
52862306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/ports/<N>/diag_counters/rdma_seq
52962306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/ports/<N>/diag_counters/rnr_naks
53062306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/ports/<N>/diag_counters/other_naks
53162306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/ports/<N>/diag_counters/rc_timeouts
53262306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/ports/<N>/diag_counters/look_pkts
53362306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/ports/<N>/diag_counters/pkt_drops
53462306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/ports/<N>/diag_counters/dma_wait
53562306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qibX/ports/<N>/diag_counters/unaligned
53662306a36Sopenharmony_ciDate:		May, 2010
53762306a36Sopenharmony_ciKernelVersion:	v2.6.35
53862306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
53962306a36Sopenharmony_ciDescription:
54062306a36Sopenharmony_ci		[to be documented]
54162306a36Sopenharmony_ci
54262306a36Sopenharmony_ci
54362306a36Sopenharmony_cisysfs interface for Mellanox Connect-IB HCA driver mlx5
54462306a36Sopenharmony_ci-------------------------------------------------------
54562306a36Sopenharmony_ci
54662306a36Sopenharmony_ciWhat:		/sys/class/infiniband/mlx5_X/hw_rev
54762306a36Sopenharmony_ciWhat:		/sys/class/infiniband/mlx5_X/hca_type
54862306a36Sopenharmony_ciWhat:		/sys/class/infiniband/mlx5_X/reg_pages
54962306a36Sopenharmony_ciWhat:		/sys/class/infiniband/mlx5_X/fw_pages
55062306a36Sopenharmony_ciDate:		Jul, 2013
55162306a36Sopenharmony_ciKernelVersion:	v3.11
55262306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
55362306a36Sopenharmony_ciDescription:
55462306a36Sopenharmony_ci		[to be documented]
55562306a36Sopenharmony_ci
55662306a36Sopenharmony_ci
55762306a36Sopenharmony_cisysfs interface for Cisco VIC (usNIC) Verbs Driver
55862306a36Sopenharmony_ci--------------------------------------------------
55962306a36Sopenharmony_ci
56062306a36Sopenharmony_ciWhat:		/sys/class/infiniband/usnic_X/board_id
56162306a36Sopenharmony_ciWhat:		/sys/class/infiniband/usnic_X/config
56262306a36Sopenharmony_ciWhat:		/sys/class/infiniband/usnic_X/qp_per_vf
56362306a36Sopenharmony_ciWhat:		/sys/class/infiniband/usnic_X/max_vf
56462306a36Sopenharmony_ciWhat:		/sys/class/infiniband/usnic_X/cq_per_vf
56562306a36Sopenharmony_ciWhat:		/sys/class/infiniband/usnic_X/iface
56662306a36Sopenharmony_ciDate:		Sep, 2013
56762306a36Sopenharmony_ciKernelVersion:	v3.14
56862306a36Sopenharmony_ciContact:	Christian Benvenuti <benve@cisco.com>,
56962306a36Sopenharmony_ci		Dave Goodell <dgoodell@cisco.com>,
57062306a36Sopenharmony_ci		linux-rdma@vger.kernel.org
57162306a36Sopenharmony_ciDescription:
57262306a36Sopenharmony_ci
57362306a36Sopenharmony_ci		=============== ===============================================
57462306a36Sopenharmony_ci		board_id:	(RO) Manufacturing board id
57562306a36Sopenharmony_ci
57662306a36Sopenharmony_ci		config:		(RO) Report the configuration for this PF
57762306a36Sopenharmony_ci
57862306a36Sopenharmony_ci		qp_per_vf:	(RO) Queue pairs per virtual function.
57962306a36Sopenharmony_ci
58062306a36Sopenharmony_ci		max_vf:		(RO) Max virtual functions
58162306a36Sopenharmony_ci
58262306a36Sopenharmony_ci		cq_per_vf:	(RO) Completion queue per virtual function
58362306a36Sopenharmony_ci
58462306a36Sopenharmony_ci		iface:		(RO) Shows which network interface this usNIC
58562306a36Sopenharmony_ci				entry is associated to (visible with ifconfig).
58662306a36Sopenharmony_ci		=============== ===============================================
58762306a36Sopenharmony_ci
58862306a36Sopenharmony_ciWhat:		/sys/class/infiniband/usnic_X/qpn/summary
58962306a36Sopenharmony_ciWhat:		/sys/class/infiniband/usnic_X/qpn/context
59062306a36Sopenharmony_ciDate:		Sep, 2013
59162306a36Sopenharmony_ciKernelVersion:	v3.14
59262306a36Sopenharmony_ciContact:	Christian Benvenuti <benve@cisco.com>,
59362306a36Sopenharmony_ci		Dave Goodell <dgoodell@cisco.com>,
59462306a36Sopenharmony_ci		linux-rdma@vger.kernel.org
59562306a36Sopenharmony_ciDescription:
59662306a36Sopenharmony_ci		[to be documented]
59762306a36Sopenharmony_ci
59862306a36Sopenharmony_ci
59962306a36Sopenharmony_cisysfs interface for Emulex RoCE HCA Driver
60062306a36Sopenharmony_ci------------------------------------------
60162306a36Sopenharmony_ci
60262306a36Sopenharmony_ciWhat:		/sys/class/infiniband/ocrdmaX/hw_rev
60362306a36Sopenharmony_ciDate:		Feb, 2014
60462306a36Sopenharmony_ciKernelVersion:	v3.14
60562306a36Sopenharmony_ciDescription:
60662306a36Sopenharmony_ci		hw_rev:		(RO) Hardware revision number
60762306a36Sopenharmony_ci
60862306a36Sopenharmony_ciWhat:		/sys/class/infiniband/ocrdmaX/hca_type
60962306a36Sopenharmony_ciDate:		Jun, 2014
61062306a36Sopenharmony_ciKernelVersion:	v3.16
61162306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
61262306a36Sopenharmony_ciDescription:
61362306a36Sopenharmony_ci		hca_type:	(RO) Display FW version
61462306a36Sopenharmony_ci
61562306a36Sopenharmony_ci
61662306a36Sopenharmony_cisysfs interface for Intel Omni-Path driver (HFI1)
61762306a36Sopenharmony_ci-------------------------------------------------
61862306a36Sopenharmony_ci
61962306a36Sopenharmony_ciWhat:		/sys/class/infiniband/hfi1_X/hw_rev
62062306a36Sopenharmony_ciWhat:		/sys/class/infiniband/hfi1_X/board_id
62162306a36Sopenharmony_ciWhat:		/sys/class/infiniband/hfi1_X/nctxts
62262306a36Sopenharmony_ciWhat:		/sys/class/infiniband/hfi1_X/serial
62362306a36Sopenharmony_ciWhat:		/sys/class/infiniband/hfi1_X/chip_reset
62462306a36Sopenharmony_ciWhat:		/sys/class/infiniband/hfi1_X/boardversion
62562306a36Sopenharmony_ciWhat:		/sys/class/infiniband/hfi1_X/nfreectxts
62662306a36Sopenharmony_ciWhat:		/sys/class/infiniband/hfi1_X/tempsense
62762306a36Sopenharmony_ciDate:		May, 2016
62862306a36Sopenharmony_ciKernelVersion:	v4.6
62962306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
63062306a36Sopenharmony_ciDescription:
63162306a36Sopenharmony_ci		=============== =============================================
63262306a36Sopenharmony_ci		hw_rev:		(RO) Hardware revision number
63362306a36Sopenharmony_ci
63462306a36Sopenharmony_ci		board_id:	(RO) Manufacturing board id
63562306a36Sopenharmony_ci
63662306a36Sopenharmony_ci		nctxts:		(RO) Total contexts available.
63762306a36Sopenharmony_ci
63862306a36Sopenharmony_ci		serial:		(RO) Board serial number
63962306a36Sopenharmony_ci
64062306a36Sopenharmony_ci		chip_reset:	(WO) Write "reset" to this file to reset the
64162306a36Sopenharmony_ci				chip if possible. Only allowed if no user
64262306a36Sopenharmony_ci				contexts are open that use chip resources.
64362306a36Sopenharmony_ci
64462306a36Sopenharmony_ci		boardversion:	(RO) Human readable board info
64562306a36Sopenharmony_ci
64662306a36Sopenharmony_ci		nfreectxts:	(RO) The number of free user ports (contexts)
64762306a36Sopenharmony_ci				available.
64862306a36Sopenharmony_ci
64962306a36Sopenharmony_ci		tempsense:	(RO) Thermal sense information
65062306a36Sopenharmony_ci		=============== =============================================
65162306a36Sopenharmony_ci
65262306a36Sopenharmony_ci
65362306a36Sopenharmony_ciWhat:		/sys/class/infiniband/hfi1_X/ports/<N>/CCMgtA/cc_settings_bin
65462306a36Sopenharmony_ciWhat:		/sys/class/infiniband/hfi1_X/ports/<N>/CCMgtA/cc_table_bin
65562306a36Sopenharmony_ciWhat:		/sys/class/infiniband/hfi1_X/ports/<N>/CCMgtA/cc_prescan
65662306a36Sopenharmony_ciDate:		May, 2016
65762306a36Sopenharmony_ciKernelVersion:	v4.6
65862306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
65962306a36Sopenharmony_ciDescription:
66062306a36Sopenharmony_ci		Per-port congestion control.
66162306a36Sopenharmony_ci
66262306a36Sopenharmony_ci		=============== ================================================
66362306a36Sopenharmony_ci		cc_table_bin	(RO) CCA tables used by PSM2 Congestion control
66462306a36Sopenharmony_ci				table size followed by table entries. Binary
66562306a36Sopenharmony_ci				attribute.
66662306a36Sopenharmony_ci
66762306a36Sopenharmony_ci		cc_settings_bin (RO) Congestion settings: port control, control
66862306a36Sopenharmony_ci				map and an array of 16 entries for the
66962306a36Sopenharmony_ci				congestion entries - increase, timer, event log
67062306a36Sopenharmony_ci				trigger threshold and the minimum injection rate
67162306a36Sopenharmony_ci				delay. Binary attribute.
67262306a36Sopenharmony_ci
67362306a36Sopenharmony_ci		cc_prescan	(RW) enable prescanning for faster BECN
67462306a36Sopenharmony_ci				response. Write "on" to enable and "off" to
67562306a36Sopenharmony_ci				disable.
67662306a36Sopenharmony_ci		=============== ================================================
67762306a36Sopenharmony_ci
67862306a36Sopenharmony_ciWhat:		/sys/class/infiniband/hfi1_X/ports/<N>/sc2vl/[0-31]
67962306a36Sopenharmony_ciWhat:		/sys/class/infiniband/hfi1_X/ports/<N>/sl2sc/[0-31]
68062306a36Sopenharmony_ciWhat:		/sys/class/infiniband/hfi1_X/ports/<N>/vl2mtu/[0-15]
68162306a36Sopenharmony_ciDate:		May, 2016
68262306a36Sopenharmony_ciKernelVersion:	v4.6
68362306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
68462306a36Sopenharmony_ciDescription:
68562306a36Sopenharmony_ci		=============== ===================================================
68662306a36Sopenharmony_ci		sc2vl/:		(RO) 32 files (0 - 31) used to translate sl->vl
68762306a36Sopenharmony_ci
68862306a36Sopenharmony_ci		sl2sc/:		(RO) 32 files (0 - 31) used to translate sl->sc
68962306a36Sopenharmony_ci
69062306a36Sopenharmony_ci		vl2mtu/:	(RO) 16 files (0 - 15) used to determine MTU for vl
69162306a36Sopenharmony_ci		=============== ===================================================
69262306a36Sopenharmony_ci
69362306a36Sopenharmony_ci
69462306a36Sopenharmony_ciWhat:		/sys/class/infiniband/hfi1_X/sdma_<N>/cpu_list
69562306a36Sopenharmony_ciWhat:		/sys/class/infiniband/hfi1_X/sdma_<N>/vl
69662306a36Sopenharmony_ciDate:		Sept, 2016
69762306a36Sopenharmony_ciKernelVersion:	v4.8
69862306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
69962306a36Sopenharmony_ciDescription:
70062306a36Sopenharmony_ci		sdma<N>/ contains one directory per sdma engine (0 - 15)
70162306a36Sopenharmony_ci
70262306a36Sopenharmony_ci		=============== ==============================================
70362306a36Sopenharmony_ci		cpu_list:	(RW) List of cpus for user-process to sdma
70462306a36Sopenharmony_ci				engine assignment.
70562306a36Sopenharmony_ci
70662306a36Sopenharmony_ci		vl:		(RO) Displays the virtual lane (vl) the sdma
70762306a36Sopenharmony_ci				engine maps to.
70862306a36Sopenharmony_ci		=============== ==============================================
70962306a36Sopenharmony_ci
71062306a36Sopenharmony_ci		This interface gives the user control on the affinity settings
71162306a36Sopenharmony_ci		for the device. As an example, to set an sdma engine irq
71262306a36Sopenharmony_ci		affinity and thread affinity of a user processes to use the
71362306a36Sopenharmony_ci		sdma engine, which is "near" in terms of NUMA configuration, or
71462306a36Sopenharmony_ci		physical cpu location, the user will do::
71562306a36Sopenharmony_ci
71662306a36Sopenharmony_ci		  echo "3" > /proc/irq/<N>/smp_affinity_list
71762306a36Sopenharmony_ci		  echo "4-7" > /sys/devices/.../sdma3/cpu_list
71862306a36Sopenharmony_ci		  cat /sys/devices/.../sdma3/vl
71962306a36Sopenharmony_ci		  0
72062306a36Sopenharmony_ci		  echo "8" > /proc/irq/<M>/smp_affinity_list
72162306a36Sopenharmony_ci		  echo "9-12" > /sys/devices/.../sdma4/cpu_list
72262306a36Sopenharmony_ci		  cat /sys/devices/.../sdma4/vl
72362306a36Sopenharmony_ci		  1
72462306a36Sopenharmony_ci
72562306a36Sopenharmony_ci		to make sure that when a process runs on cpus 4,5,6, or 7, and
72662306a36Sopenharmony_ci		uses vl=0, then sdma engine 3 is selected by the driver, and
72762306a36Sopenharmony_ci		also the interrupt of the sdma engine 3 is steered to cpu 3.
72862306a36Sopenharmony_ci		Similarly, when a process runs on cpus 9,10,11, or 12 and sets
72962306a36Sopenharmony_ci		vl=1, then engine 4 will be selected and the irq of the sdma
73062306a36Sopenharmony_ci		engine 4 is steered to cpu 8.  This assumes that in the above N
73162306a36Sopenharmony_ci		is the irq number of "sdma3", and M is irq number of "sdma4" in
73262306a36Sopenharmony_ci		the /proc/interrupts file.
73362306a36Sopenharmony_ci
73462306a36Sopenharmony_cisysfs interface for QLogic qedr NIC Driver
73562306a36Sopenharmony_ci------------------------------------------
73662306a36Sopenharmony_ci
73762306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qedrX/hw_rev
73862306a36Sopenharmony_ciWhat:		/sys/class/infiniband/qedrX/hca_type
73962306a36Sopenharmony_ciDate:		Oct, 2016
74062306a36Sopenharmony_ciKernelVersion:	v4.10
74162306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
74262306a36Sopenharmony_ciDescription:
74362306a36Sopenharmony_ci
74462306a36Sopenharmony_ci		=============== ==== ========================
74562306a36Sopenharmony_ci		hw_rev:		(RO) Hardware revision number
74662306a36Sopenharmony_ci
74762306a36Sopenharmony_ci		hca_type:	(RO) Display HCA type
74862306a36Sopenharmony_ci		=============== ==== ========================
74962306a36Sopenharmony_ci
75062306a36Sopenharmony_ci
75162306a36Sopenharmony_cisysfs interface for VMware Paravirtual RDMA driver
75262306a36Sopenharmony_ci--------------------------------------------------
75362306a36Sopenharmony_ci
75462306a36Sopenharmony_ciWhat:		/sys/class/infiniband/vmw_pvrdmaX/hw_rev
75562306a36Sopenharmony_ciWhat:		/sys/class/infiniband/vmw_pvrdmaX/hca_type
75662306a36Sopenharmony_ciWhat:		/sys/class/infiniband/vmw_pvrdmaX/board_id
75762306a36Sopenharmony_ciDate:		Oct, 2016
75862306a36Sopenharmony_ciKernelVersion:	v4.10
75962306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
76062306a36Sopenharmony_ciDescription:
76162306a36Sopenharmony_ci
76262306a36Sopenharmony_ci		=============== ==== =====================================
76362306a36Sopenharmony_ci		hw_rev:		(RO) Hardware revision number
76462306a36Sopenharmony_ci
76562306a36Sopenharmony_ci		hca_type:	(RO) Host channel adapter type
76662306a36Sopenharmony_ci
76762306a36Sopenharmony_ci		board_id:	(RO) Display PVRDMA manufacturing board ID
76862306a36Sopenharmony_ci		=============== ==== =====================================
76962306a36Sopenharmony_ci
77062306a36Sopenharmony_ci
77162306a36Sopenharmony_cisysfs interface for Broadcom NetXtreme-E RoCE driver
77262306a36Sopenharmony_ci----------------------------------------------------
77362306a36Sopenharmony_ci
77462306a36Sopenharmony_ciWhat:		/sys/class/infiniband/bnxt_reX/hw_rev
77562306a36Sopenharmony_ciWhat:		/sys/class/infiniband/bnxt_reX/hca_type
77662306a36Sopenharmony_ciDate:		Feb, 2017
77762306a36Sopenharmony_ciKernelVersion:	v4.11
77862306a36Sopenharmony_ciContact:	linux-rdma@vger.kernel.org
77962306a36Sopenharmony_ciDescription:
78062306a36Sopenharmony_ci		=============== ==== =========================
78162306a36Sopenharmony_ci		hw_rev:		(RO) Hardware revision number
78262306a36Sopenharmony_ci
78362306a36Sopenharmony_ci		hca_type:	(RO) Host channel adapter type
78462306a36Sopenharmony_ci		=============== ==== =========================
785