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

Low performance when booting on battery power only #555

Closed
mkopec opened this issue Oct 31, 2023 · 0 comments · Fixed by Dasharo/ec#51
Closed

Low performance when booting on battery power only #555

mkopec opened this issue Oct 31, 2023 · 0 comments · Fixed by Dasharo/ec#51
Labels
bug Something isn't working

Comments

@mkopec
Copy link
Member

mkopec commented Oct 31, 2023

Device

NovaCustom *

Dasharo version

v1.5.0 TGL, v1.7.0 ADL

Affected component(s) or functionality

Power limit configuration, power supply capabilities detection

Brief summary

In some cases the power limits are set to 0, which causes the CPU to throttle to 400mhz.

How reproducible

  • 100% when coldbooting on battery power
  • various, depending on AC adapter

How to reproduce

  • disconnect AC adapter
  • power on laptop
  • view CPU frequency, e.g. in Windows Task Manager or turbostat on Linux

Expected behavior

CPU freq scales freely up to its limits

Actual behavior

CPU is stuck at 400MHz

Screenshots

No response

Additional context

Some AC adapters take too long to establish a PD contract, causing a timeout when programming limits. This can be solved by utilizing the PD controller's interrupt instead of polling the Active Contract PDO reg in a loop.

Solutions you've tried

W/A: Unplug and plug AC adapter back in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant