Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions tests/benchmarks/multicore/idle/Kconfig.sysbuild
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,21 @@

config REMOTE_BOARD
string "The board used for remote target"

if SOC_NRF54H20
choice NETCORE
default NETCORE_CUSTOM

Check warning on line 14 in tests/benchmarks/multicore/idle/Kconfig.sysbuild

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

tests/benchmarks/multicore/idle/Kconfig.sysbuild:14 please, no spaces at the start of a line

config NETCORE_CUSTOM
bool "Custom netcore FW"

Check warning on line 17 in tests/benchmarks/multicore/idle/Kconfig.sysbuild

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

tests/benchmarks/multicore/idle/Kconfig.sysbuild:17 please, no spaces at the start of a line
endchoice

config NETCORE_IMAGE_NAME
string

Check warning on line 21 in tests/benchmarks/multicore/idle/Kconfig.sysbuild

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

tests/benchmarks/multicore/idle/Kconfig.sysbuild:21 please, no spaces at the start of a line
default "remote" if NETCORE_CUSTOM

Check warning on line 22 in tests/benchmarks/multicore/idle/Kconfig.sysbuild

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

tests/benchmarks/multicore/idle/Kconfig.sysbuild:22 please, no spaces at the start of a line

config NETCORE_IMAGE_PATH
string

Check warning on line 25 in tests/benchmarks/multicore/idle/Kconfig.sysbuild

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

tests/benchmarks/multicore/idle/Kconfig.sysbuild:25 please, no spaces at the start of a line
default "${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/multicore/idle/remote" if NETCORE_CUSTOM

Check warning on line 26 in tests/benchmarks/multicore/idle/Kconfig.sysbuild

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

tests/benchmarks/multicore/idle/Kconfig.sysbuild:26 please, no spaces at the start of a line

endif # SOC_NRF54H20
24 changes: 13 additions & 11 deletions tests/benchmarks/multicore/idle/sysbuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@ if("${SB_CONFIG_REMOTE_BOARD}" STREQUAL "")
message(FATAL_ERROR "REMOTE_BOARD must be set to a valid board name")
endif()

# Add remote project
ExternalZephyrProject_Add(
APPLICATION remote
SOURCE_DIR ${APP_DIR}/remote
BOARD ${SB_CONFIG_REMOTE_BOARD}
BOARD_REVISION ${BOARD_REVISION}
)
set_property(GLOBAL APPEND PROPERTY PM_DOMAINS CPUNET)
set_property(GLOBAL APPEND PROPERTY PM_CPUNET_IMAGES remote)
set_property(GLOBAL PROPERTY DOMAIN_APP_CPUNET remote)
set(CPUNET_PM_DOMAIN_DYNAMIC_PARTITION remote CACHE INTERNAL "")
if(NOT SB_CONFIG_SOC_NRF54H20)
# Add remote project
ExternalZephyrProject_Add(
APPLICATION remote
SOURCE_DIR ${APP_DIR}/remote
BOARD ${SB_CONFIG_REMOTE_BOARD}
BOARD_REVISION ${BOARD_REVISION}
)
set_property(GLOBAL APPEND PROPERTY PM_DOMAINS CPUNET)
set_property(GLOBAL APPEND PROPERTY PM_CPUNET_IMAGES remote)
set_property(GLOBAL PROPERTY DOMAIN_APP_CPUNET remote)
set(CPUNET_PM_DOMAIN_DYNAMIC_PARTITION remote CACHE INTERNAL "")
endif()

# Add a dependency so that the remote image will be built and flashed first
add_dependencies(${DEFAULT_IMAGE} remote)
Expand Down
4 changes: 4 additions & 0 deletions tests/benchmarks/multicore/idle/sysbuild/mcuboot.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CONFIG_LOG=n
CONFIG_SERIAL=n

CONFIG_PM_S2RAM_RESUME_INTERMEDIARY=y
33 changes: 33 additions & 0 deletions tests/benchmarks/multicore/idle/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,39 @@ tests:
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption"
tags: ppk_power_measure

benchmarks.multicore.idle.nrf54h20dk_cpuapp_cpurad.s2ram.mcuboot:
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
extra_args:
- SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
- CONFIG_SOC_NRF54H20_CPURAD_ENABLE=y
- CONFIG_FIRST_SLEEP_OFFSET=y
- CONFIG_PM=y
- CONFIG_PM_S2RAM=y
- CONFIG_POWEROFF=y
- CONFIG_PM_S2RAM_CUSTOM_MARKING=y
- CONFIG_CONSOLE=n
- CONFIG_UART_CONSOLE=n
- CONFIG_SERIAL=n
- CONFIG_GPIO=n
- CONFIG_BOOT_BANNER=n
- remote_CONFIG_PM=y
- remote_CONFIG_POWEROFF=y
- remote_CONFIG_CONSOLE=n
- remote_CONFIG_UART_CONSOLE=n
- remote_CONFIG_SERIAL=n
- remote_CONFIG_GPIO=n
- remote_CONFIG_BOOT_BANNER=n
- SB_CONFIG_BOOTLOADER_MCUBOOT=y
harness: pytest
harness_config:
fixture: lfclk_at_lfxo
pytest_root:
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption"
tags: ppk_power_measure

benchmarks.multicore.idle.nrf54h20dk_cpuapp_cpurad.s2ram.fpu:
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
Expand Down
17 changes: 14 additions & 3 deletions tests/benchmarks/multicore/idle_adc/Kconfig.sysbuild
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@

source "share/sysbuild/Kconfig"

config REMOTE_BOARD
string
default "$(BOARD)/nrf54h20/cpurad" if SOC_NRF54H20_CPUAPP
choice NETCORE
default NETCORE_CUSTOM

Check warning on line 10 in tests/benchmarks/multicore/idle_adc/Kconfig.sysbuild

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

tests/benchmarks/multicore/idle_adc/Kconfig.sysbuild:10 please, no spaces at the start of a line

config NETCORE_CUSTOM
bool "Custom netcore FW"

Check warning on line 13 in tests/benchmarks/multicore/idle_adc/Kconfig.sysbuild

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

tests/benchmarks/multicore/idle_adc/Kconfig.sysbuild:13 please, no spaces at the start of a line
endchoice

config NETCORE_IMAGE_NAME
string

Check warning on line 17 in tests/benchmarks/multicore/idle_adc/Kconfig.sysbuild

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

tests/benchmarks/multicore/idle_adc/Kconfig.sysbuild:17 please, no spaces at the start of a line
default "remote" if NETCORE_CUSTOM

config NETCORE_IMAGE_PATH
string
default "${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/power_consumption/common/remote_sleep_forever"
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Copyright (c) 2025 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

/ {
aliases {
/delete-property/ led1;
};
};

/delete-node/ &led1;
22 changes: 0 additions & 22 deletions tests/benchmarks/multicore/idle_adc/sysbuild.cmake

This file was deleted.

4 changes: 4 additions & 0 deletions tests/benchmarks/multicore/idle_adc/sysbuild/mcuboot.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CONFIG_LOG=n
CONFIG_SERIAL=n

CONFIG_PM_S2RAM_RESUME_INTERMEDIARY=y
19 changes: 18 additions & 1 deletion tests/benchmarks/multicore/idle_adc/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ common:

tests:
benchmarks.multicore.idle_adc.nrf54h20dk_cpuapp_cpurad.s2ram:
tags:
- ci_build
- ci_tests_benchmarks_multicore
- ppk_power_measure
filter: not CONFIG_COVERAGE
harness: pytest
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
harness_config:
fixture: gpio_loopback
pytest_root:
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_adc"

benchmarks.multicore.idle_adc.nrf54h20dk_cpuapp_cpurad.s2ram.mcuboot:
tags:
- ci_build
- ci_tests_benchmarks_multicore
Expand All @@ -17,7 +33,8 @@ tests:
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
extra_args:
- FILE_SUFFIX=s2ram
- SB_CONFIG_BOOTLOADER_MCUBOOT=y
- mcuboot_EXTRA_DTC_OVERLAY_FILE="${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/multicore/idle_adc/boards/nrf54h20dk_mcuboot.overlay"
harness_config:
fixture: gpio_loopback
pytest_root:
Expand Down
17 changes: 14 additions & 3 deletions tests/benchmarks/multicore/idle_comp/Kconfig.sysbuild
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@

source "share/sysbuild/Kconfig"

config REMOTE_BOARD
string
default "$(BOARD)/nrf54h20/cpurad" if SOC_NRF54H20_CPUAPP
choice NETCORE
default NETCORE_CUSTOM

config NETCORE_CUSTOM
bool "Custom netcore FW"
endchoice

config NETCORE_IMAGE_NAME
string
default "remote" if NETCORE_CUSTOM

config NETCORE_IMAGE_PATH
string
default "${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/power_consumption/common/remote_sleep_forever"
22 changes: 0 additions & 22 deletions tests/benchmarks/multicore/idle_comp/sysbuild.cmake

This file was deleted.

4 changes: 4 additions & 0 deletions tests/benchmarks/multicore/idle_comp/sysbuild/mcuboot.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CONFIG_LOG=n
CONFIG_SERIAL=n

CONFIG_PM_S2RAM_RESUME_INTERMEDIARY=y
22 changes: 20 additions & 2 deletions tests/benchmarks/multicore/idle_comp/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,26 @@ tests:
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
extra_args:
- FILE_SUFFIX=s2ram
- EXTRA_DTC_OVERLAY_FILE="boards/comp.overlay"
harness_config:
fixture: gpio_loopback
pytest_root:
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_comp"

benchmarks.multicore.idle_comp.nrf54h20dk_cpuapp_cpurad.s2ram.mcuboot:
tags:
- ci_build
- ci_tests_benchmarks_multicore
- ppk_power_measure
filter: not CONFIG_COVERAGE
harness: pytest
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
extra_args:
- SB_CONFIG_BOOTLOADER_MCUBOOT=y
- mcuboot_EXTRA_DTC_OVERLAY_FILE="${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/multicore/idle_comp/boards/nrf54h20dk_nrf54h20_cpuapp.overlay"
- EXTRA_DTC_OVERLAY_FILE="boards/comp.overlay"
harness_config:
fixture: gpio_loopback
Expand All @@ -35,7 +54,6 @@ tests:
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
extra_args:
- FILE_SUFFIX=s2ram
- EXTRA_DTC_OVERLAY_FILE="boards/lpcomp.overlay"
harness_config:
fixture: gpio_loopback
Expand Down
22 changes: 22 additions & 0 deletions tests/benchmarks/multicore/idle_counter/Kconfig.sysbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

source "share/sysbuild/Kconfig"

choice NETCORE
default NETCORE_CUSTOM

config NETCORE_CUSTOM
bool "Custom netcore FW"
endchoice

config NETCORE_IMAGE_NAME
string
default "remote" if NETCORE_CUSTOM

config NETCORE_IMAGE_PATH
string
default "${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/multicore/idle_counter/remote"
2 changes: 0 additions & 2 deletions tests/benchmarks/multicore/idle_counter/remote/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ CONFIG_PM_DEVICE=y
CONFIG_PM_DEVICE_RUNTIME=y

CONFIG_PM=y
CONFIG_PM_S2RAM=y
CONFIG_PM_S2RAM_CUSTOM_MARKING=y
CONFIG_POWEROFF=y
CONFIG_CONSOLE=n
CONFIG_UART_CONSOLE=n
Expand Down
15 changes: 0 additions & 15 deletions tests/benchmarks/multicore/idle_counter/sysbuild.cmake

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CONFIG_LOG=n
CONFIG_SERIAL=n

CONFIG_PM_S2RAM_RESUME_INTERMEDIARY=y
11 changes: 11 additions & 0 deletions tests/benchmarks/multicore/idle_counter/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@
fixture: ppk_power_measure
pytest_root:
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_fast_counter_and_s2ram_with_clock_control"

benchmarks.power_consumption.counter.mcuboot:
extra_args:
- SB_CONFIG_BOOTLOADER_MCUBOOT=y
- mcuboot_EXTRA_DTC_OVERLAY_FILE="${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/multicore/idle_counter/boards/nrf54h20dk_nrf54h20_cpuapp.overlay"
harness: pytest
harness_config:
fixture: ppk_power_measure
pytest_root:
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_fast_counter_and_s2ram_with_clock_control"

Check warning on line 38 in tests/benchmarks/multicore/idle_counter/testcase.yaml

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

YAMLLint (empty-lines)

tests/benchmarks/multicore/idle_counter/testcase.yaml:38 too many blank lines (1 > 0)
17 changes: 14 additions & 3 deletions tests/benchmarks/multicore/idle_exmif/Kconfig.sysbuild
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@

source "share/sysbuild/Kconfig"

config REMOTE_BOARD
string
default "$(BOARD)/nrf54h20/cpurad" if SOC_NRF54H20_CPUAPP
choice NETCORE
default NETCORE_CUSTOM

config NETCORE_CUSTOM
bool "Custom netcore FW"
endchoice

config NETCORE_IMAGE_NAME
string
default "remote" if NETCORE_CUSTOM

config NETCORE_IMAGE_PATH
string
default "${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/power_consumption/common/remote_sleep_forever"
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Copyright (c) 2025 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

/ {
aliases {
/delete-property/ led1;
};
};

/delete-node/ &led1;
Loading
Loading