tuningsysfs: use med_power_with_dipm for SATA link power management
Ross Burton
PATCH 1/1 tuningsysfs: use med_power_with_dipm for SATA link power management
From: Ross Burton <ross.burton(a)intel.com>
Instead of using min_power, which has reports of data corruption, use med_power_with_dipm (Device Interface Power Management) available since 4.15.
This has the same behaviour as the Windows IRST driver so both power usage and stability should be improved.
See https://lore.kernel.org/patchwork/patch/830838/ for more context.
Signed-off-by Ross Burton <ross.burton(a)intel.com>
--- src/tuning/tuningsysfs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/tuning/tuningsysfs.cpp +1 -1
@@ -121,7 +121,7 @@ static void add_sata_tunables_callback(const char *d_name) snprintf(filename, sizeof(filename), "/sys/class/scsi_host/%s/link_power_management_policy", d_name); snprintf(msg, sizeof(msg), _("Enable SATA link power management for %s"), d_name); - add_sysfs_tunable(msg, filename,"min_power"); + add_sysfs_tunable(msg, filename, "med_power_with_dipm"); } void add_sata_tunables(void)
Signature · 1 line
2.25.1