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(-)
diff --git a/src/tuning/tuningsysfs.cpp b/src/tuning/tuningsysfs.cpp
index 954f52e..631e9fd 100644
--- a/src/tuning/tuningsysfs.cpp
+++ b/src/tuning/tuningsysfs.cpp
@@ -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)
--
2.25.1