-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Backport v2.9-nRF54H20-branch] tests: benchmarks: power_consumption: i2c: Fix increased power consumpion #19881
[Backport v2.9-nRF54H20-branch] tests: benchmarks: power_consumption: i2c: Fix increased power consumpion #19881
Conversation
Test was suspending test thread from the timer interrupt at random (but periodic) point. Some drivers which are tested in that framework handles power management in the thread context. Randomly suspending the test thread could lead to a case where driver did not finish requested operation and system goes to s2ram in the middle of the driver operation. Extending the test framework to allow more controlled thread suspension. Timer can indicate to the thread that is shall be suspended and thread calls self suspension when ready. Signed-off-by: Krzysztof Chruściński <[email protected]> (cherry picked from commit 6f4dc17)
Test thread cannot be suspended at any time because driver power management happens in the thread context so if thread is suspended at the random moment and system goes to s2ram it can lead to increased power consumption because thread got suspended before i2c device got properly suspended. Signed-off-by: Krzysztof Chruściński <[email protected]> (cherry picked from commit 4408403)
Add property to enable runtime PM for i2c and spi used for controlling the sensor. Signed-off-by: Krzysztof Chruściński <[email protected]> (cherry picked from commit 6dd7041)
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: e0df6cbbf191ada33252e857c29dae5bc829a326 more detailssdk-nrf:
Github labels
List of changed files detected by CI (3)
Outputs:ToolchainVersion: 11349092be Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
Backport 6dd7041~3..6dd7041 from #19861.