Skip to content
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

SCSI/SATA link time power management breaks AHCI hotplugging on some motherboards #417

Open
misfitbob opened this issue Oct 12, 2023 · 2 comments

Comments

@misfitbob
Copy link

misfitbob commented Oct 12, 2023

Hello! After seeing how nice power usage under pop-os is. I added system76 power daemon to a custom ubuntu distribution However, I noticed it is causing issues with AHCI drives not enumerating on some motherboards after hotplug. Namely an Asus P5Q-EM-D0 (yes I know it is ancient)

Distribution (run cat /etc/os-release):
root@hostname ➜ ~ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Issue/Bug Description:
When com.system76.PowerDaemon is enabled, AHCI hotplug no longer works.
Even though "ahci.mobile_lpm_policy=1" is passed on the kernel commandline.

Steps to reproduce (if you know):
1). Build and install system76 power
2). Enable system76 power
3). reboot
4). Hotplug and run "lsscsi" and see only the OS drive. All other drives need an rescan of the SCSI bus to show up.

Expected behavior:
3). reboot
4). Hotplug and run "lsscsi" and see all drives that are attached to the system.

Other Notes:
Seems other people have seemingly run into this as well without realizing it is likely that this daemon is causing hotswap to not work for them:
https://www.reddit.com/r/pop_os/comments/evl3kk/sata_hot_plug_not_working_on_popos_but_does_on/
https://www.reddit.com/r/pop_os/comments/gmptkg/usb3_and_hotswap_sata_set_as_swappable_not_seeing/

Really just need a way to configure the default behavior of enable/disable SATA/SCSI link power management. It is uneeded on these systems and tends to cause more issues than solves (on these specific systems).
I'd really like to use system76 power as it gives much better results than power-profiles-daemon.
In the meantime, I am going to see if "libata.force=nolpm" kernel commandline helps and if not I plan to build system76 power with the SATA LPM commented out, if possible.

@misfitbob
Copy link
Author

misfitbob commented Oct 13, 2023

"libata.force=nolpm" kernel commandline param will make hotplug work if I scan the bus once, but unfortunately for my use case hot plug needs to work all the time.

@misfitbob
Copy link
Author

looking over the other issues, seems like a use case for #2

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

No branches or pull requests

1 participant