blob: 7ac7b19b2f7224572652bf850e51f575757fd0ee [file] [log] [blame]
Aishwarya Pant0a65e122018-02-13 13:48:16 +05301What: /sys/block/*/device/sw_activity
2Date: Jun, 2008
3KernelVersion: v2.6.27
4Contact: linux-ide@vger.kernel.org
5Description:
6 (RW) Used by drivers which support software controlled activity
7 LEDs.
8
9 It has the following valid values:
10
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +010011 == ========================================================
Aishwarya Pant0a65e122018-02-13 13:48:16 +053012 0 OFF - the LED is not activated on activity
13 1 BLINK_ON - the LED blinks on every 10ms when activity is
14 detected.
15 2 BLINK_OFF - the LED is on when idle, and blinks off
16 every 10ms when activity is detected.
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +010017 == ========================================================
Aishwarya Pant0a65e122018-02-13 13:48:16 +053018
19 Note that the user must turn sw_activity OFF it they wish to
20 control the activity LED via the em_message file.
21
22
23What: /sys/block/*/device/unload_heads
24Date: Sep, 2008
25KernelVersion: v2.6.28
26Contact: linux-ide@vger.kernel.org
27Description:
28 (RW) Hard disk shock protection
29
30 Writing an integer value to this file will take the heads of the
31 respective drive off the platter and block all I/O operations
32 for the specified number of milliseconds.
33
34 - If the device does not support the unload heads feature,
35 access is denied with -EOPNOTSUPP.
36 - The maximal value accepted for a timeout is 30000
37 milliseconds.
38 - A previously set timeout can be cancelled and disk can resume
39 normal operation immediately by specifying a timeout of 0.
40 - Some hard drives only comply with an earlier version of the
41 ATA standard, but support the unload feature nonetheless.
42 There is no safe way Linux can detect these devices, so this
43 is not enabled by default. If it is known that your device
44 does support the unload feature, then you can tell the kernel
45 to enable it by writing -1. It can be disabled again by
46 writing -2.
47 - Values below -2 are rejected with -EINVAL
48
49 For more information, see
Mauro Carvalho Chehab9e1cbed2019-06-13 15:07:43 -030050 Documentation/admin-guide/laptops/disk-shock-protection.rst
Aishwarya Pant0a65e122018-02-13 13:48:16 +053051
52
53What: /sys/block/*/device/ncq_prio_enable
54Date: Oct, 2016
55KernelVersion: v4.10
56Contact: linux-ide@vger.kernel.org
57Description:
Niklas Cassel5b8a2342021-08-16 10:44:55 +090058 (RW) Write to the file to turn on or off the SATA NCQ (native
59 command queueing) priority support. By default this feature is
60 turned off. If the device does not support the SATA NCQ
Damien Le Moalf5975d12021-08-16 10:44:56 +090061 priority feature, writing "1" to this file results in an error
62 (see ncq_prio_supported).
Niklas Cassel5b8a2342021-08-16 10:44:55 +090063
64
65What: /sys/block/*/device/sas_ncq_prio_enable
66Date: Oct, 2016
67KernelVersion: v4.10
68Contact: linux-ide@vger.kernel.org
69Description:
70 (RW) This is the equivalent of the ncq_prio_enable attribute
71 file for SATA devices connected to a SAS host-bus-adapter
72 (HBA) implementing support for the SATA NCQ priority feature.
73 This file does not exist if the HBA driver does not implement
74 support for the SATA NCQ priority feature, regardless of the
Damien Le Moalf5975d12021-08-16 10:44:56 +090075 device support for this feature (see sas_ncq_prio_supported).
76
77
78What: /sys/block/*/device/ncq_prio_supported
79Date: Aug, 2021
80KernelVersion: v5.15
81Contact: linux-ide@vger.kernel.org
82Description:
83 (RO) Indicates if the device supports the SATA NCQ (native
84 command queueing) priority feature.
85
86
87What: /sys/block/*/device/sas_ncq_prio_supported
88Date: Aug, 2021
89KernelVersion: v5.15
90Contact: linux-ide@vger.kernel.org
91Description:
92 (RO) This is the equivalent of the ncq_prio_supported attribute
93 file for SATA devices connected to a SAS host-bus-adapter
94 (HBA) implementing support for the SATA NCQ priority feature.
95 This file does not exist if the HBA driver does not implement
96 support for the SATA NCQ priority feature, regardless of the
Niklas Cassel5b8a2342021-08-16 10:44:55 +090097 device support for this feature.