18c2ecf20Sopenharmony_ciWhat: /sys/block/*/device/sw_activity 28c2ecf20Sopenharmony_ciDate: Jun, 2008 38c2ecf20Sopenharmony_ciKernelVersion: v2.6.27 48c2ecf20Sopenharmony_ciContact: linux-ide@vger.kernel.org 58c2ecf20Sopenharmony_ciDescription: 68c2ecf20Sopenharmony_ci (RW) Used by drivers which support software controlled activity 78c2ecf20Sopenharmony_ci LEDs. 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci It has the following valid values: 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci == ======================================================== 128c2ecf20Sopenharmony_ci 0 OFF - the LED is not activated on activity 138c2ecf20Sopenharmony_ci 1 BLINK_ON - the LED blinks on every 10ms when activity is 148c2ecf20Sopenharmony_ci detected. 158c2ecf20Sopenharmony_ci 2 BLINK_OFF - the LED is on when idle, and blinks off 168c2ecf20Sopenharmony_ci every 10ms when activity is detected. 178c2ecf20Sopenharmony_ci == ======================================================== 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci Note that the user must turn sw_activity OFF it they wish to 208c2ecf20Sopenharmony_ci control the activity LED via the em_message file. 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciWhat: /sys/block/*/device/unload_heads 248c2ecf20Sopenharmony_ciDate: Sep, 2008 258c2ecf20Sopenharmony_ciKernelVersion: v2.6.28 268c2ecf20Sopenharmony_ciContact: linux-ide@vger.kernel.org 278c2ecf20Sopenharmony_ciDescription: 288c2ecf20Sopenharmony_ci (RW) Hard disk shock protection 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci Writing an integer value to this file will take the heads of the 318c2ecf20Sopenharmony_ci respective drive off the platter and block all I/O operations 328c2ecf20Sopenharmony_ci for the specified number of milliseconds. 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci - If the device does not support the unload heads feature, 358c2ecf20Sopenharmony_ci access is denied with -EOPNOTSUPP. 368c2ecf20Sopenharmony_ci - The maximal value accepted for a timeout is 30000 378c2ecf20Sopenharmony_ci milliseconds. 388c2ecf20Sopenharmony_ci - A previously set timeout can be cancelled and disk can resume 398c2ecf20Sopenharmony_ci normal operation immediately by specifying a timeout of 0. 408c2ecf20Sopenharmony_ci - Some hard drives only comply with an earlier version of the 418c2ecf20Sopenharmony_ci ATA standard, but support the unload feature nonetheless. 428c2ecf20Sopenharmony_ci There is no safe way Linux can detect these devices, so this 438c2ecf20Sopenharmony_ci is not enabled by default. If it is known that your device 448c2ecf20Sopenharmony_ci does support the unload feature, then you can tell the kernel 458c2ecf20Sopenharmony_ci to enable it by writing -1. It can be disabled again by 468c2ecf20Sopenharmony_ci writing -2. 478c2ecf20Sopenharmony_ci - Values below -2 are rejected with -EINVAL 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci For more information, see 508c2ecf20Sopenharmony_ci Documentation/admin-guide/laptops/disk-shock-protection.rst 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ciWhat: /sys/block/*/device/ncq_prio_enable 548c2ecf20Sopenharmony_ciDate: Oct, 2016 558c2ecf20Sopenharmony_ciKernelVersion: v4.10 568c2ecf20Sopenharmony_ciContact: linux-ide@vger.kernel.org 578c2ecf20Sopenharmony_ciDescription: 588c2ecf20Sopenharmony_ci (RW) Write to the file to turn on or off the SATA ncq (native 598c2ecf20Sopenharmony_ci command queueing) support. By default this feature is turned 608c2ecf20Sopenharmony_ci off. 61