]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ata: Kconfig: Update SATA_MOBILE_LPM_POLICY default to med_power_with_dipm
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 2 May 2024 09:26:53 +0000 (11:26 +0200)
committerNiklas Cassel <cassel@kernel.org>
Mon, 27 May 2024 09:34:50 +0000 (11:34 +0200)
Historically this was set to "keep_firmware_settings" to prevent problems
with power management on very old drives. However it's been observed that
almost all modern Linux distributions either set the policy to
"med_power_with_dipm" in the kernel configuration or update it to this via
userspace policy changes. Update the policy default in the kernel to
"med_power_with_dipm" to match that behavior as well.

Changing the default was previously not a good idea, because LPM disables
detection of hot plug removals, however, since commit ae1f3db006b7 ("ata:
ahci: do not enable LPM on external ports"), a port marked as external
will always be initialized to "keep_firmware_settings", regardless of the
SATA_MOBILE_LPM_POLICY Kconfig value. Therefore, changing the default is
now considered safe (external ports included).

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
[cassel: rebased and reworded commit message]
Signed-off-by: Niklas Cassel <cassel@kernel.org>
drivers/ata/Kconfig

index b595494ab9b49138c06aa9b4db982c27efdf0830..e00536b495529b5bd865fed8b0f6b93793419c61 100644 (file)
@@ -118,7 +118,7 @@ config SATA_AHCI
 config SATA_MOBILE_LPM_POLICY
        int "Default SATA Link Power Management policy"
        range 0 4
-       default 0
+       default 3
        depends on SATA_AHCI
        help
          Select the Default SATA Link Power Management (LPM) policy to use