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

[Backport v2.9-nRF54H20-branch] tests: benchmarks: power_consumption: i2c: Fix increased power consumpion #19881

Merged

Conversation

NordicBuilder
Copy link
Contributor

Backport 6dd7041~3..6dd7041 from #19861.

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)
@NordicBuilder NordicBuilder requested review from a team as code owners January 13, 2025 17:46
@github-actions github-actions bot added the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Jan 13, 2025
@NordicBuilder
Copy link
Contributor Author

NordicBuilder commented Jan 13, 2025

CI Information

To view the history of this post, clich the 'edited' button above
Build number: 1

Inputs:

Sources:

sdk-nrf: PR head: e0df6cbbf191ada33252e857c29dae5bc829a326

more details

sdk-nrf:

PR head: e0df6cbbf191ada33252e857c29dae5bc829a326
merge base: 4f00034e32ca1ec3a3ebf7a4a9b43a659620fdc7
target head (v2.9-nRF54H20-branch): 4f00034e32ca1ec3a3ebf7a4a9b43a659620fdc7
Diff

Github labels

Enabled Name Description
ci-disabled Disable the ci execution
ci-all-test Run all of ci, no test spec filtering will be done
ci-force-downstream Force execution of downstream even if twister fails
ci-run-twister Force run twister
ci-run-zephyr-twister Force run zephyr twister
List of changed files detected by CI (3)
boards
│  ├── shields
│  │  ├── pca63566
│  │  │  ├── boards
│  │  │  │  │ nrf54h20dk_nrf54h20_common.dtsi
tests
│  ├── benchmarks
│  │  ├── power_consumption
│  │  │  ├── common
│  │  │  │  │ main.c
│  │  │  ├── i2c
│  │  │  │  ├── src
│  │  │  │  │  │ driver_test.c

Outputs:

Toolchain

Version: 11349092be
Build docker image: docker-dtr.nordicsemi.no/sw-production/ncs-build:11349092be_912848a074

Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped; ⚠️ Quarantine

  • ◻️ Toolchain - Skipped: existing toolchain is used
  • ✅ Build twister
    • sdk-nrf test count: 25
  • ✅ Integration tests
    • ✅ test-fw-nrfconnect-fem
Disabled integration tests
    • desktop52_verification
    • doc-internal
    • test_ble_nrf_config
    • test-fw-nrfconnect-apps
    • test-fw-nrfconnect-ble_mesh
    • test-fw-nrfconnect-ble_samples
    • test-fw-nrfconnect-boot
    • test-fw-nrfconnect-chip
    • test-fw-nrfconnect-nfc
    • test-fw-nrfconnect-nrf-iot_libmodem-nrf
    • test-fw-nrfconnect-nrf-iot_lwm2m
    • test-fw-nrfconnect-nrf-iot_mosh
    • test-fw-nrfconnect-nrf-iot_nrf_provisioning
    • test-fw-nrfconnect-nrf-iot_positioning
    • test-fw-nrfconnect-nrf-iot_samples
    • test-fw-nrfconnect-nrf-iot_serial_lte_modem
    • test-fw-nrfconnect-nrf-iot_thingy91
    • test-fw-nrfconnect-nrf-iot_zephyr_lwm2m
    • test-fw-nrfconnect-nrf_crypto
    • test-fw-nrfconnect-ps
    • test-fw-nrfconnect-rpc
    • test-fw-nrfconnect-rs
    • test-fw-nrfconnect-tfm
    • test-fw-nrfconnect-thread
    • test-fw-nrfconnect-zigbee
    • test-low-level
    • test-sdk-audio
    • test-sdk-dfu
    • test-sdk-find-my
    • test-sdk-mcuboot
    • test-sdk-pmic-samples
    • test-sdk-sidewalk
    • test-sdk-wifi
    • test-secdom-samples-public

Note: This message is automatically posted and updated by the CI

@bjarki-andreasen bjarki-andreasen merged commit b525942 into v2.9-nRF54H20-branch Jan 14, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backport changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants