-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
PM broke for ESP32 and ESP32-C3 after #6673 #10852
Comments
@tmedicci did your patch fixed this issue? |
I didn't submit any patch for that yet, Alan. I still had no time to investigate it further... |
I have debugged this issue and find the root cause. in arch/xtensa/src/esp32/esp32_idle.c esp32_idlepm()
This code means, if the newstate still in PM_NORMAL, that there must have someone doing pm_stay(), then relax it. And this assume is not suitable for all the situation: In the new version with greedy mode, when someone called pm_activity(), then pm_checkstate() will jump over the pm count. I will commit a patch to change the behavior of pm_activity(). But, this assume is still dangerous: |
The
esp32-devkitc:pm
defconfig for ESP32 andesp32c3-devkit:pm
for ESP32-C3 broke after #6673. It's been a while since that PR, but the problem only happens after typing something in the NSH terminal, so it's worth performing an investigation:Specifically, the issue was introduced by 479689e
The text was updated successfully, but these errors were encountered: