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

peci: Add timeouts to infinitely blocking waits #414

Merged
merged 1 commit into from
Oct 12, 2023
Merged

Conversation

crawfxrd
Copy link
Member

@crawfxrd crawfxrd commented Oct 10, 2023

Add timeouts to the legacy PECI implementation to prevent the EC locking up when PECI stops working, such as during S0ix opportunistic suspend.

This is not the optimal solution, as PECI should not be available at all to cause the lock up in the first place, but it at least prevents the issue.

Test:

  • PECI works as expected during S0 working state (fans not stuck at 50%)
  • System no longer locks up after screen blank on TGL

Resolves: #412
Ref: #389

@crawfxrd crawfxrd requested review from a team October 10, 2023 18:16
Add timeouts to the legacy PECI implementation to prevent the EC locking
up when PECI stops working, such as during S0ix opportunistic suspend.

This is not the optimal solution, as PECI should not be available at all
to cause the lock up in the first place, but it at least prevents the
issue.

Signed-off-by: Tim Crawford <[email protected]>
Copy link
Member

@jacobgkau jacobgkau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both me and @leviport have had trouble recreating the issue on-demand across two lemp10's and a darp7. However, I've smoke-tested this on both models, and it doesn't seem to cause any issues. We'll perform full regression testing with the firmware release PRs (which is where this was previously observed on darp7.)

(Edit: As part of testing this, I did confirm that the fan still spins down after entering suspend if it's spun up before entering suspend.)

@crawfxrd crawfxrd merged commit 946415f into master Oct 12, 2023
41 checks passed
@crawfxrd crawfxrd deleted the peci-timeout branch October 12, 2023 15:09
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.

lemp10: EC locks up during opportunistic suspend
3 participants