Skip to content

profiles: use med_power_with_dipm for SATA ALPM #745

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

retrixe
Copy link
Contributor

@retrixe retrixe commented Feb 4, 2025

Using min_power can lead to data loss, and med_power_with_dipm
delivers similar power savings without the chance of data loss. [1]

med_power_with_dipm is the default setting[2] in upstream Linux for
SATA Link Power Management, and should provide significant power
savings on laptops using SATA drives over medium_power.

[1] https://hansdegoede.livejournal.com/18412.html
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/ata/Kconfig?id=5433f0e7427ae4f5b128d89ec16ccaafc9fef5ee

Note: Testing on a SATA system would be appreciated to confirm this patch is setting med_power_with_dipm as expected, since unfortunately I'm not sure when I'll be able to get back to my desktop at home

The use of `min_power` can lead to data corruption[1] and has been
replaced in the documentation, and an example using `medium_power` was
updated to use `med_power_with_dipm` (the kernel default[2] with better
better power savings than `medium_power`).

[1] https://hansdegoede.livejournal.com/18412.html
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/ata/Kconfig?id=5433f0e7427ae4f5b128d89ec16ccaafc9fef5ee

Signed-off-by: Ibrahim Ansari <[email protected]>
Using `min_power` can lead to data loss, and `med_power_with_dipm`
delivers similar power savings without the chance of data loss. [1]

`med_power_with_dipm` is the default setting[2] in upstream Linux for
SATA Link Power Management, and should provide significant power
savings on laptops using SATA drives over `medium_power`.

[1] https://hansdegoede.livejournal.com/18412.html
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/ata/Kconfig?id=5433f0e7427ae4f5b128d89ec16ccaafc9fef5ee

Signed-off-by: Ibrahim Ansari <[email protected]>
@yarda
Copy link
Contributor

yarda commented Jul 23, 2025

Thanks LGTM. I tested it with the RHEL-8 kernel (probably the oldest supported configuration) and it's supported there, so we don't need to add fallback mechanism (like e.g. alpm = med_power_with_dipm | min_power). If there is a need for it, support can be added later.

@yarda yarda merged commit 8d6479c into redhat-performance:master Jul 23, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants