xref: /linux/Documentation/ABI/stable/sysfs-driver-ib_srp (revision cdd38c5f1ce4398ec58fec95904b75824daab7b5)
1a4605a93SBart Van AsscheWhat:		/sys/class/infiniband_srp/srp-<hca>-<port_number>/add_target
2a4605a93SBart Van AsscheDate:		January 2, 2006
3a4605a93SBart Van AsscheKernelVersion:	2.6.15
4a4605a93SBart Van AsscheContact:	linux-rdma@vger.kernel.org
5a4605a93SBart Van AsscheDescription:	Interface for making ib_srp connect to a new target.
6a4605a93SBart Van Assche		One can request ib_srp to connect to a new target by writing
7a4605a93SBart Van Assche		a comma-separated list of login parameters to this sysfs
8a4605a93SBart Van Assche		attribute. The supported parameters are:
9*98913408SMauro Carvalho Chehab
10a4605a93SBart Van Assche		* id_ext, a 16-digit hexadecimal number specifying the eight
11a4605a93SBart Van Assche		  byte identifier extension in the 16-byte SRP target port
12a4605a93SBart Van Assche		  identifier. The target port identifier is sent by ib_srp
13a4605a93SBart Van Assche		  to the target in the SRP_LOGIN_REQ request.
14a4605a93SBart Van Assche		* ioc_guid, a 16-digit hexadecimal number specifying the eight
15a4605a93SBart Van Assche		  byte I/O controller GUID portion of the 16-byte target port
16a4605a93SBart Van Assche		  identifier.
17a4605a93SBart Van Assche		* dgid, a 32-digit hexadecimal number specifying the
18a4605a93SBart Van Assche		  destination GID.
19a4605a93SBart Van Assche		* pkey, a four-digit hexadecimal number specifying the
20a4605a93SBart Van Assche		  InfiniBand partition key.
21a4605a93SBart Van Assche		* service_id, a 16-digit hexadecimal number specifying the
22a4605a93SBart Van Assche		  InfiniBand service ID used to establish communication with
23a4605a93SBart Van Assche		  the SRP target. How to find out the value of the service ID
24a4605a93SBart Van Assche		  is specified in the documentation of the SRP target.
25a4605a93SBart Van Assche		* max_sect, a decimal number specifying the maximum number of
26a4605a93SBart Van Assche		  512-byte sectors to be transferred via a single SCSI command.
27a4605a93SBart Van Assche		* max_cmd_per_lun, a decimal number specifying the maximum
28a4605a93SBart Van Assche		  number of outstanding commands for a single LUN.
29a4605a93SBart Van Assche		* io_class, a hexadecimal number specifying the SRP I/O class.
30a4605a93SBart Van Assche		  Must be either 0xff00 (rev 10) or 0x0100 (rev 16a). The I/O
31a4605a93SBart Van Assche		  class defines the format of the SRP initiator and target
32a4605a93SBart Van Assche		  port identifiers.
33a4605a93SBart Van Assche		* initiator_ext, a 16-digit hexadecimal number specifying the
34a4605a93SBart Van Assche		  identifier extension portion of the SRP initiator port
35a4605a93SBart Van Assche		  identifier. This data is sent by the initiator to the target
36a4605a93SBart Van Assche		  in the SRP_LOGIN_REQ request.
37a4605a93SBart Van Assche		* cmd_sg_entries, a number in the range 1..255 that specifies
38a4605a93SBart Van Assche		  the maximum number of data buffer descriptors stored in the
39a4605a93SBart Van Assche		  SRP_CMD information unit itself. With allow_ext_sg=0 the
40a4605a93SBart Van Assche		  parameter cmd_sg_entries defines the maximum S/G list length
41a4605a93SBart Van Assche		  for a single SRP_CMD, and commands whose S/G list length
42a4605a93SBart Van Assche		  exceeds this limit after S/G list collapsing will fail.
43a4605a93SBart Van Assche		* allow_ext_sg, whether ib_srp is allowed to include a partial
44a4605a93SBart Van Assche		  memory descriptor list in an SRP_CMD instead of the entire
45a4605a93SBart Van Assche		  list. If a partial memory descriptor list has been included
46a4605a93SBart Van Assche		  in an SRP_CMD the remaining memory descriptors are
47a4605a93SBart Van Assche		  communicated from initiator to target via an additional RDMA
48a4605a93SBart Van Assche		  transfer. Setting allow_ext_sg to 1 increases the maximum
49a4605a93SBart Van Assche		  amount of data that can be transferred between initiator and
50a4605a93SBart Van Assche		  target via a single SCSI command. Since not all SRP target
51a4605a93SBart Van Assche		  implementations support partial memory descriptor lists the
52a4605a93SBart Van Assche		  default value for this option is 0.
53a4605a93SBart Van Assche		* sg_tablesize, a number in the range 1..2048 specifying the
54a4605a93SBart Van Assche		  maximum S/G list length the SCSI layer is allowed to pass to
55a4605a93SBart Van Assche		  ib_srp. Specifying a value that exceeds cmd_sg_entries is
56a4605a93SBart Van Assche		  only safe with partial memory descriptor list support enabled
57a4605a93SBart Van Assche		  (allow_ext_sg=1).
584b5e5f41SBart Van Assche		* comp_vector, a number in the range 0..n-1 specifying the
59d92c0da7SBart Van Assche		  MSI-X completion vector of the first RDMA channel. Some
60d92c0da7SBart Van Assche		  HCA's allocate multiple (n) MSI-X vectors per HCA port. If
61d92c0da7SBart Van Assche		  the IRQ affinity masks of these interrupts have been
62d92c0da7SBart Van Assche		  configured such that each MSI-X interrupt is handled by a
63d92c0da7SBart Van Assche		  different CPU then the comp_vector parameter can be used to
64d92c0da7SBart Van Assche		  spread the SRP completion workload over multiple CPU's.
657bb312e4SVu Pham		* tl_retry_count, a number in the range 2..7 specifying the
667bb312e4SVu Pham		  IB RC retry count.
674d73f95fSBart Van Assche		* queue_size, the maximum number of commands that the
684d73f95fSBart Van Assche		  initiator is allowed to queue per SCSI host. The default
694d73f95fSBart Van Assche		  value for this parameter is 62. The lowest supported value
704d73f95fSBart Van Assche		  is 2.
71547ed331SHonggang Li		* max_it_iu_size, a decimal number specifying the maximum
72547ed331SHonggang Li		  initiator to target information unit length.
73a4605a93SBart Van Assche
74a4605a93SBart Van AsscheWhat:		/sys/class/infiniband_srp/srp-<hca>-<port_number>/ibdev
75a4605a93SBart Van AsscheDate:		January 2, 2006
76a4605a93SBart Van AsscheKernelVersion:	2.6.15
77a4605a93SBart Van AsscheContact:	linux-rdma@vger.kernel.org
78a4605a93SBart Van AsscheDescription:	HCA name (<hca>).
79a4605a93SBart Van Assche
80a4605a93SBart Van AsscheWhat:		/sys/class/infiniband_srp/srp-<hca>-<port_number>/port
81a4605a93SBart Van AsscheDate:		January 2, 2006
82a4605a93SBart Van AsscheKernelVersion:	2.6.15
83a4605a93SBart Van AsscheContact:	linux-rdma@vger.kernel.org
84a4605a93SBart Van AsscheDescription:	HCA port number (<port_number>).
85a4605a93SBart Van Assche
86a4605a93SBart Van AsscheWhat:		/sys/class/scsi_host/host<n>/allow_ext_sg
87a4605a93SBart Van AsscheDate:		May 19, 2011
88a4605a93SBart Van AsscheKernelVersion:	2.6.39
89a4605a93SBart Van AsscheContact:	linux-rdma@vger.kernel.org
90a4605a93SBart Van AsscheDescription:	Whether ib_srp is allowed to include a partial memory
91a4605a93SBart Van Assche		descriptor list in an SRP_CMD when communicating with an SRP
92a4605a93SBart Van Assche		target.
93a4605a93SBart Van Assche
94d92c0da7SBart Van AsscheWhat:		/sys/class/scsi_host/host<n>/ch_count
95d92c0da7SBart Van AsscheDate:		April 1, 2015
96d92c0da7SBart Van AsscheKernelVersion:	3.19
97d92c0da7SBart Van AsscheContact:	linux-rdma@vger.kernel.org
98d92c0da7SBart Van AsscheDescription:	Number of RDMA channels used for communication with the SRP
99d92c0da7SBart Van Assche		target.
100d92c0da7SBart Van Assche
101a4605a93SBart Van AsscheWhat:		/sys/class/scsi_host/host<n>/cmd_sg_entries
102a4605a93SBart Van AsscheDate:		May 19, 2011
103a4605a93SBart Van AsscheKernelVersion:	2.6.39
104a4605a93SBart Van AsscheContact:	linux-rdma@vger.kernel.org
105a4605a93SBart Van AsscheDescription:	Maximum number of data buffer descriptors that may be sent to
106a4605a93SBart Van Assche		the target in a single SRP_CMD request.
107a4605a93SBart Van Assche
108d92c0da7SBart Van AsscheWhat:		/sys/class/scsi_host/host<n>/comp_vector
109d92c0da7SBart Van AsscheDate:		September 2, 2013
110d92c0da7SBart Van AsscheKernelVersion:	3.11
111d92c0da7SBart Van AsscheContact:	linux-rdma@vger.kernel.org
112d92c0da7SBart Van AsscheDescription:	Completion vector used for the first RDMA channel.
113d92c0da7SBart Van Assche
114a4605a93SBart Van AsscheWhat:		/sys/class/scsi_host/host<n>/dgid
115a4605a93SBart Van AsscheDate:		June 17, 2006
116a4605a93SBart Van AsscheKernelVersion:	2.6.17
117a4605a93SBart Van AsscheContact:	linux-rdma@vger.kernel.org
118a4605a93SBart Van AsscheDescription:	InfiniBand destination GID used for communication with the SRP
119a4605a93SBart Van Assche		target. Differs from orig_dgid if port redirection has happened.
120a4605a93SBart Van Assche
121a4605a93SBart Van AsscheWhat:		/sys/class/scsi_host/host<n>/id_ext
122a4605a93SBart Van AsscheDate:		June 17, 2006
123a4605a93SBart Van AsscheKernelVersion:	2.6.17
124a4605a93SBart Van AsscheContact:	linux-rdma@vger.kernel.org
125a4605a93SBart Van AsscheDescription:	Eight-byte identifier extension portion of the 16-byte target
126a4605a93SBart Van Assche		port identifier.
127a4605a93SBart Van Assche
128a4605a93SBart Van AsscheWhat:		/sys/class/scsi_host/host<n>/ioc_guid
129a4605a93SBart Van AsscheDate:		June 17, 2006
130a4605a93SBart Van AsscheKernelVersion:	2.6.17
131a4605a93SBart Van AsscheContact:	linux-rdma@vger.kernel.org
132a4605a93SBart Van AsscheDescription:	Eight-byte I/O controller GUID portion of the 16-byte target
133a4605a93SBart Van Assche		port identifier.
134a4605a93SBart Van Assche
135a4605a93SBart Van AsscheWhat:		/sys/class/scsi_host/host<n>/local_ib_device
136a4605a93SBart Van AsscheDate:		November 29, 2006
137a4605a93SBart Van AsscheKernelVersion:	2.6.19
138a4605a93SBart Van AsscheContact:	linux-rdma@vger.kernel.org
139a4605a93SBart Van AsscheDescription:	Name of the InfiniBand HCA used for communicating with the
140a4605a93SBart Van Assche		SRP target.
141a4605a93SBart Van Assche
142a4605a93SBart Van AsscheWhat:		/sys/class/scsi_host/host<n>/local_ib_port
143a4605a93SBart Van AsscheDate:		November 29, 2006
144a4605a93SBart Van AsscheKernelVersion:	2.6.19
145a4605a93SBart Van AsscheContact:	linux-rdma@vger.kernel.org
146a4605a93SBart Van AsscheDescription:	Number of the HCA port used for communicating with the
147a4605a93SBart Van Assche		SRP target.
148a4605a93SBart Van Assche
149a4605a93SBart Van AsscheWhat:		/sys/class/scsi_host/host<n>/orig_dgid
150a4605a93SBart Van AsscheDate:		June 17, 2006
151a4605a93SBart Van AsscheKernelVersion:	2.6.17
152a4605a93SBart Van AsscheContact:	linux-rdma@vger.kernel.org
153a4605a93SBart Van AsscheDescription:	InfiniBand destination GID specified in the parameters
154a4605a93SBart Van Assche		written to the add_target sysfs attribute.
155a4605a93SBart Van Assche
156a4605a93SBart Van AsscheWhat:		/sys/class/scsi_host/host<n>/pkey
157a4605a93SBart Van AsscheDate:		June 17, 2006
158a4605a93SBart Van AsscheKernelVersion:	2.6.17
159a4605a93SBart Van AsscheContact:	linux-rdma@vger.kernel.org
160a4605a93SBart Van AsscheDescription:	A 16-bit number representing the InfiniBand partition key used
161a4605a93SBart Van Assche		for communication with the SRP target.
162a4605a93SBart Van Assche
163a4605a93SBart Van AsscheWhat:		/sys/class/scsi_host/host<n>/req_lim
164a4605a93SBart Van AsscheDate:		October 20, 2010
165a4605a93SBart Van AsscheKernelVersion:	2.6.36
166a4605a93SBart Van AsscheContact:	linux-rdma@vger.kernel.org
167a4605a93SBart Van AsscheDescription:	Number of requests ib_srp can send to the target before it has
168a4605a93SBart Van Assche		to wait for more credits. For more information see also the
169a4605a93SBart Van Assche		SRP credit algorithm in the SRP specification.
170a4605a93SBart Van Assche
171a4605a93SBart Van AsscheWhat:		/sys/class/scsi_host/host<n>/service_id
172a4605a93SBart Van AsscheDate:		June 17, 2006
173a4605a93SBart Van AsscheKernelVersion:	2.6.17
174a4605a93SBart Van AsscheContact:	linux-rdma@vger.kernel.org
175a4605a93SBart Van AsscheDescription:	InfiniBand service ID used for establishing communication with
176a4605a93SBart Van Assche		the SRP	target.
177a4605a93SBart Van Assche
178848b3082SBart Van AsscheWhat:		/sys/class/scsi_host/host<n>/sgid
179848b3082SBart Van AsscheDate:		February 1, 2014
180848b3082SBart Van AsscheKernelVersion:	3.13
181848b3082SBart Van AsscheContact:	linux-rdma@vger.kernel.org
182848b3082SBart Van AsscheDescription:	InfiniBand GID of the source port used for communication with
183848b3082SBart Van Assche		the SRP target.
184848b3082SBart Van Assche
185a4605a93SBart Van AsscheWhat:		/sys/class/scsi_host/host<n>/zero_req_lim
186a4605a93SBart Van AsscheDate:		September 20, 2006
187a4605a93SBart Van AsscheKernelVersion:	2.6.18
188a4605a93SBart Van AsscheContact:	linux-rdma@vger.kernel.org
189a4605a93SBart Van AsscheDescription:	Number of times the initiator had to wait before sending a
190a4605a93SBart Van Assche		request to the target because it ran out of credits. For more
191a4605a93SBart Van Assche		information see also the SRP credit algorithm in the SRP
192a4605a93SBart Van Assche		specification.
193