xref: /openbmc/linux/Documentation/ABI/testing/sysfs-block-device (revision 5b8a2345e64b7c9ad00d1bd2d5081d14c574d989)
10a65e125SAishwarya PantWhat:		/sys/block/*/device/sw_activity
20a65e125SAishwarya PantDate:		Jun, 2008
30a65e125SAishwarya PantKernelVersion:	v2.6.27
40a65e125SAishwarya PantContact:	linux-ide@vger.kernel.org
50a65e125SAishwarya PantDescription:
60a65e125SAishwarya Pant		(RW) Used by drivers which support software controlled activity
70a65e125SAishwarya Pant		LEDs.
80a65e125SAishwarya Pant
90a65e125SAishwarya Pant		It has the following valid values:
100a65e125SAishwarya Pant
1134433332SMauro Carvalho Chehab		==	========================================================
120a65e125SAishwarya Pant		0	OFF - the LED is not activated on activity
130a65e125SAishwarya Pant		1	BLINK_ON - the LED blinks on every 10ms when activity is
140a65e125SAishwarya Pant			detected.
150a65e125SAishwarya Pant		2	BLINK_OFF - the LED is on when idle, and blinks off
160a65e125SAishwarya Pant			every 10ms when activity is detected.
1734433332SMauro Carvalho Chehab		==	========================================================
180a65e125SAishwarya Pant
190a65e125SAishwarya Pant		Note that the user must turn sw_activity OFF it they wish to
200a65e125SAishwarya Pant		control the activity LED via the em_message file.
210a65e125SAishwarya Pant
220a65e125SAishwarya Pant
230a65e125SAishwarya PantWhat:		/sys/block/*/device/unload_heads
240a65e125SAishwarya PantDate:		Sep, 2008
250a65e125SAishwarya PantKernelVersion:	v2.6.28
260a65e125SAishwarya PantContact:	linux-ide@vger.kernel.org
270a65e125SAishwarya PantDescription:
280a65e125SAishwarya Pant		(RW) Hard disk shock protection
290a65e125SAishwarya Pant
300a65e125SAishwarya Pant		Writing an integer value to this file will take the heads of the
310a65e125SAishwarya Pant		respective drive off the platter and block all I/O operations
320a65e125SAishwarya Pant		for the specified number of milliseconds.
330a65e125SAishwarya Pant
340a65e125SAishwarya Pant		- If the device does not support the unload heads feature,
350a65e125SAishwarya Pant		  access is denied with -EOPNOTSUPP.
360a65e125SAishwarya Pant		- The maximal value accepted for a timeout is 30000
370a65e125SAishwarya Pant		  milliseconds.
380a65e125SAishwarya Pant		- A previously set timeout can be cancelled and disk can resume
390a65e125SAishwarya Pant		  normal operation immediately by specifying a timeout of 0.
400a65e125SAishwarya Pant		- Some hard drives only comply with an earlier version of the
410a65e125SAishwarya Pant		  ATA standard, but support the unload feature nonetheless.
420a65e125SAishwarya Pant		  There is no safe way Linux can detect these devices, so this
430a65e125SAishwarya Pant		  is not enabled by default. If it is known that your device
440a65e125SAishwarya Pant		  does support the unload feature, then you can tell the kernel
450a65e125SAishwarya Pant		  to enable it by writing -1. It can be disabled again by
460a65e125SAishwarya Pant		  writing -2.
470a65e125SAishwarya Pant		- Values below -2 are rejected with -EINVAL
480a65e125SAishwarya Pant
490a65e125SAishwarya Pant		For more information, see
509e1cbedeSMauro Carvalho Chehab		Documentation/admin-guide/laptops/disk-shock-protection.rst
510a65e125SAishwarya Pant
520a65e125SAishwarya Pant
530a65e125SAishwarya PantWhat:		/sys/block/*/device/ncq_prio_enable
540a65e125SAishwarya PantDate:		Oct, 2016
550a65e125SAishwarya PantKernelVersion:	v4.10
560a65e125SAishwarya PantContact:	linux-ide@vger.kernel.org
570a65e125SAishwarya PantDescription:
58*5b8a2345SNiklas Cassel		(RW) Write to the file to turn on or off the SATA NCQ (native
59*5b8a2345SNiklas Cassel		command queueing) priority support. By default this feature is
60*5b8a2345SNiklas Cassel		turned off. If the device does not support the SATA NCQ
61*5b8a2345SNiklas Cassel		priority feature, writing "1" to this file results in an error.
62*5b8a2345SNiklas Cassel
63*5b8a2345SNiklas Cassel
64*5b8a2345SNiklas CasselWhat:		/sys/block/*/device/sas_ncq_prio_enable
65*5b8a2345SNiklas CasselDate:		Oct, 2016
66*5b8a2345SNiklas CasselKernelVersion:	v4.10
67*5b8a2345SNiklas CasselContact:	linux-ide@vger.kernel.org
68*5b8a2345SNiklas CasselDescription:
69*5b8a2345SNiklas Cassel		(RW) This is the equivalent of the ncq_prio_enable attribute
70*5b8a2345SNiklas Cassel		file for SATA devices connected to a SAS host-bus-adapter
71*5b8a2345SNiklas Cassel		(HBA) implementing support for the SATA NCQ priority feature.
72*5b8a2345SNiklas Cassel		This file does not exist if the HBA driver does not implement
73*5b8a2345SNiklas Cassel		support for the SATA NCQ priority feature, regardless of the
74*5b8a2345SNiklas Cassel		device support for this feature.
75