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

tests: benchmarks: multicore: Test PM in SPI driver with locks #19037

Conversation

nordic-segl
Copy link
Contributor

Extend test that checks:

  • current consumption in IDLE, S2RAM when SPIM was used;
  • SPIM works correctly after leaving low power state.

Add tests suites where SPI is configured with
SPI_HOLD_ON_CS and/or SPI_LOCK_ON.

@nordic-segl nordic-segl requested review from a team as code owners November 22, 2024 14:58
@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 Nov 22, 2024
@NordicBuilder
Copy link
Contributor

NordicBuilder commented Nov 22, 2024

CI Information

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

Inputs:

Sources:

sdk-nrf: PR head: 3d9a1688a0ff689580ef2260ee2187c541b31888

more details

sdk-nrf:

PR head: 3d9a1688a0ff689580ef2260ee2187c541b31888
merge base: 774fb09920dbf2f7c2788690a77e52f3322bce0f
target head (main): 774fb09920dbf2f7c2788690a77e52f3322bce0f
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 (10)
tests
│  ├── benchmarks
│  │  ├── multicore
│  │  │  ├── idle_spim_loopback
│  │  │  │  ├── Kconfig
│  │  │  │  ├── Kconfig.sysbuild
│  │  │  │  ├── boards
│  │  │  │  │  ├── nrf54h20dk_nrf54h20_cpuapp.overlay
│  │  │  │  │  │ nrf54h20dk_nrf54h20_cpuapp_fast.overlay
│  │  │  │  ├── prj.conf
│  │  │  │  ├── prj_s2ram.conf
│  │  │  │  ├── src
│  │  │  │  │  │ main.c
│  │  │  │  ├── sysbuild.cmake
│  │  │  │  ├── sysbuild
│  │  │  │  │  │ nrf54h20dk_nrf54h20_cpurad.conf
│  │  │  │  │ testcase.yaml

Outputs:

Toolchain

Version: b77d8c1312
Build docker image: docker-dtr.nordicsemi.no/sw-production/ncs-build:b77d8c1312_912848a074

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

  • ◻️ Toolchain - Skipped: existing toolchain is used
  • ✅ Build twister
    • sdk-nrf test count: 104
  • ✅ Integration tests
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-fem
    • 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

@NordicBuilder
Copy link
Contributor

You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds.

Note: This comment is automatically posted by the Documentation Publish GitHub Action.

@nordic-segl nordic-segl force-pushed the NRFX-6663_Extend-idle_spim_loopback-with-CS-SPI-lock branch from 3a8af08 to 1e20ad1 Compare November 22, 2024 16:02
tests/benchmarks/multicore/idle_spim_loopback/Kconfig Outdated Show resolved Hide resolved
tests/benchmarks/multicore/idle_spim_loopback/prj.conf Outdated Show resolved Hide resolved
@@ -80,9 +140,26 @@ int main(void)
test_pass = true;
timer_expired = false;

/* clear edge counters */
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/* clear edge counters */
/* Clear edge counters */

Capitalise first letters of comments

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed. However, I left three comments starting from small letter:

		while (!timer_expired) {
		(...)
		} /* while (!timer_expired) */

#if defined(CONFIG_TEST_SPI_RELEASE_BEFORE_SLEEP)
(...)
#else /* defined(CONFIG_TEST_SPI_RELEASE_BEFORE_SLEEP) */
(...)
#endif /* defined(CONFIG_TEST_SPI_RELEASE_BEFORE_SLEEP) */

tests/benchmarks/multicore/idle_spim_loopback/src/main.c Outdated Show resolved Hide resolved
@nordic-segl nordic-segl force-pushed the NRFX-6663_Extend-idle_spim_loopback-with-CS-SPI-lock branch 2 times, most recently from 4a7bc2e to 2709a0e Compare November 25, 2024 09:20
@nordic-segl nordic-segl force-pushed the NRFX-6663_Extend-idle_spim_loopback-with-CS-SPI-lock branch 3 times, most recently from 29cce95 to c6d3d04 Compare November 25, 2024 13:05
Extend test that checks:
- current consumption in IDLE, S2RAM when SPIM was used;
- SPIM works correctly after leaving low power state.

Add test suites where SPI is configured with
SPI_HOLD_ON_CS and/or SPI_LOCK_ON.

Confirm that SPI CS line activation/deactivation is
according to:
- SPI_HOLD_ON_CS configuration;
- spi_release_dt() calls;
- not affected by the Device Runtime Power Management.

Signed-off-by: Sebastian Głąb <[email protected]>
@nordic-segl nordic-segl force-pushed the NRFX-6663_Extend-idle_spim_loopback-with-CS-SPI-lock branch from c6d3d04 to 3d9a168 Compare November 26, 2024 08:44
@nordicjm nordicjm merged commit 20e489e into nrfconnect:main Nov 26, 2024
13 checks passed
@nordic-segl nordic-segl deleted the NRFX-6663_Extend-idle_spim_loopback-with-CS-SPI-lock branch November 26, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

5 participants