162306a36Sopenharmony_ciWhat: /sys/block/*/device/sw_activity 262306a36Sopenharmony_ciDate: Jun, 2008 362306a36Sopenharmony_ciKernelVersion: v2.6.27 462306a36Sopenharmony_ciContact: linux-ide@vger.kernel.org 562306a36Sopenharmony_ciDescription: 662306a36Sopenharmony_ci (RW) Used by drivers which support software controlled activity 762306a36Sopenharmony_ci LEDs. 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci It has the following valid values: 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci == ======================================================== 1262306a36Sopenharmony_ci 0 OFF - the LED is not activated on activity 1362306a36Sopenharmony_ci 1 BLINK_ON - the LED blinks on every 10ms when activity is 1462306a36Sopenharmony_ci detected. 1562306a36Sopenharmony_ci 2 BLINK_OFF - the LED is on when idle, and blinks off 1662306a36Sopenharmony_ci every 10ms when activity is detected. 1762306a36Sopenharmony_ci == ======================================================== 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci Note that the user must turn sw_activity OFF it they wish to 2062306a36Sopenharmony_ci control the activity LED via the em_message file. 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ciWhat: /sys/block/*/device/unload_heads 2462306a36Sopenharmony_ciDate: Sep, 2008 2562306a36Sopenharmony_ciKernelVersion: v2.6.28 2662306a36Sopenharmony_ciContact: linux-ide@vger.kernel.org 2762306a36Sopenharmony_ciDescription: 2862306a36Sopenharmony_ci (RW) Hard disk shock protection 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci Writing an integer value to this file will take the heads of the 3162306a36Sopenharmony_ci respective drive off the platter and block all I/O operations 3262306a36Sopenharmony_ci for the specified number of milliseconds. 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci - If the device does not support the unload heads feature, 3562306a36Sopenharmony_ci access is denied with -EOPNOTSUPP. 3662306a36Sopenharmony_ci - The maximal value accepted for a timeout is 30000 3762306a36Sopenharmony_ci milliseconds. 3862306a36Sopenharmony_ci - A previously set timeout can be cancelled and disk can resume 3962306a36Sopenharmony_ci normal operation immediately by specifying a timeout of 0. 4062306a36Sopenharmony_ci - Some hard drives only comply with an earlier version of the 4162306a36Sopenharmony_ci ATA standard, but support the unload feature nonetheless. 4262306a36Sopenharmony_ci There is no safe way Linux can detect these devices, so this 4362306a36Sopenharmony_ci is not enabled by default. If it is known that your device 4462306a36Sopenharmony_ci does support the unload feature, then you can tell the kernel 4562306a36Sopenharmony_ci to enable it by writing -1. It can be disabled again by 4662306a36Sopenharmony_ci writing -2. 4762306a36Sopenharmony_ci - Values below -2 are rejected with -EINVAL 4862306a36Sopenharmony_ci 4962306a36Sopenharmony_ci For more information, see 5062306a36Sopenharmony_ci Documentation/admin-guide/laptops/disk-shock-protection.rst 5162306a36Sopenharmony_ci 5262306a36Sopenharmony_ci 5362306a36Sopenharmony_ciWhat: /sys/block/*/device/ncq_prio_enable 5462306a36Sopenharmony_ciDate: Oct, 2016 5562306a36Sopenharmony_ciKernelVersion: v4.10 5662306a36Sopenharmony_ciContact: linux-ide@vger.kernel.org 5762306a36Sopenharmony_ciDescription: 5862306a36Sopenharmony_ci (RW) Write to the file to turn on or off the SATA NCQ (native 5962306a36Sopenharmony_ci command queueing) priority support. By default this feature is 6062306a36Sopenharmony_ci turned off. If the device does not support the SATA NCQ 6162306a36Sopenharmony_ci priority feature, writing "1" to this file results in an error 6262306a36Sopenharmony_ci (see ncq_prio_supported). 6362306a36Sopenharmony_ci 6462306a36Sopenharmony_ci 6562306a36Sopenharmony_ciWhat: /sys/block/*/device/sas_ncq_prio_enable 6662306a36Sopenharmony_ciDate: Oct, 2016 6762306a36Sopenharmony_ciKernelVersion: v4.10 6862306a36Sopenharmony_ciContact: linux-ide@vger.kernel.org 6962306a36Sopenharmony_ciDescription: 7062306a36Sopenharmony_ci (RW) This is the equivalent of the ncq_prio_enable attribute 7162306a36Sopenharmony_ci file for SATA devices connected to a SAS host-bus-adapter 7262306a36Sopenharmony_ci (HBA) implementing support for the SATA NCQ priority feature. 7362306a36Sopenharmony_ci This file does not exist if the HBA driver does not implement 7462306a36Sopenharmony_ci support for the SATA NCQ priority feature, regardless of the 7562306a36Sopenharmony_ci device support for this feature (see sas_ncq_prio_supported). 7662306a36Sopenharmony_ci 7762306a36Sopenharmony_ci 7862306a36Sopenharmony_ciWhat: /sys/block/*/device/ncq_prio_supported 7962306a36Sopenharmony_ciDate: Aug, 2021 8062306a36Sopenharmony_ciKernelVersion: v5.15 8162306a36Sopenharmony_ciContact: linux-ide@vger.kernel.org 8262306a36Sopenharmony_ciDescription: 8362306a36Sopenharmony_ci (RO) Indicates if the device supports the SATA NCQ (native 8462306a36Sopenharmony_ci command queueing) priority feature. 8562306a36Sopenharmony_ci 8662306a36Sopenharmony_ci 8762306a36Sopenharmony_ciWhat: /sys/block/*/device/sas_ncq_prio_supported 8862306a36Sopenharmony_ciDate: Aug, 2021 8962306a36Sopenharmony_ciKernelVersion: v5.15 9062306a36Sopenharmony_ciContact: linux-ide@vger.kernel.org 9162306a36Sopenharmony_ciDescription: 9262306a36Sopenharmony_ci (RO) This is the equivalent of the ncq_prio_supported attribute 9362306a36Sopenharmony_ci file for SATA devices connected to a SAS host-bus-adapter 9462306a36Sopenharmony_ci (HBA) implementing support for the SATA NCQ priority feature. 9562306a36Sopenharmony_ci This file does not exist if the HBA driver does not implement 9662306a36Sopenharmony_ci support for the SATA NCQ priority feature, regardless of the 9762306a36Sopenharmony_ci device support for this feature. 9862306a36Sopenharmony_ci 9962306a36Sopenharmony_ci 10062306a36Sopenharmony_ciWhat: /sys/block/*/device/cdl_supported 10162306a36Sopenharmony_ciDate: May, 2023 10262306a36Sopenharmony_ciKernelVersion: v6.5 10362306a36Sopenharmony_ciContact: linux-scsi@vger.kernel.org 10462306a36Sopenharmony_ciDescription: 10562306a36Sopenharmony_ci (RO) Indicates if the device supports the command duration 10662306a36Sopenharmony_ci limits feature found in some ATA and SCSI devices. 10762306a36Sopenharmony_ci 10862306a36Sopenharmony_ci 10962306a36Sopenharmony_ciWhat: /sys/block/*/device/cdl_enable 11062306a36Sopenharmony_ciDate: May, 2023 11162306a36Sopenharmony_ciKernelVersion: v6.5 11262306a36Sopenharmony_ciContact: linux-scsi@vger.kernel.org 11362306a36Sopenharmony_ciDescription: 11462306a36Sopenharmony_ci (RW) For a device supporting the command duration limits 11562306a36Sopenharmony_ci feature, write to the file to turn on or off the feature. 11662306a36Sopenharmony_ci By default this feature is turned off. 11762306a36Sopenharmony_ci Writing "1" to this file enables the use of command duration 11862306a36Sopenharmony_ci limits for read and write commands in the kernel and turns on 11962306a36Sopenharmony_ci the feature on the device. Writing "0" disables the feature. 120