Skip to content

Commit d73f9a5

Browse files
nordic-seglnordicjm
authored andcommitted
tests: benchmarks: multicore: Disable S2RAM in coverage
When coverage is calculated counter variables are added to the build. These counters fail when MCU enters/leaves S2RAM low power state. Fix disabling S2RAM in coverage test configurations. CONFIG_PM_S2RAM is no longer user selectable. PM_S2RAM is enabled when any s2ram power state with status "okay" is present in the devicetree. Therefore, use DTS overlay to set status "disabled" to s2ram node. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 08395af commit d73f9a5

31 files changed

+40
-13
lines changed

tests/benchmarks/multicore/idle_adc/coverage.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ CONFIG_ADC=y
22
CONFIG_GPIO=y
33

44
CONFIG_PM=y
5-
CONFIG_PM_S2RAM=n
65
CONFIG_PM_DEVICE=y
76
CONFIG_PM_DEVICE_RUNTIME=y
87
CONFIG_POWEROFF=y
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
&s2ram {
2+
status = "disabled";
3+
};

tests/benchmarks/multicore/idle_adc/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ tests:
5252
- nrf54h20dk/nrf54h20/cpuapp
5353
extra_args:
5454
- CONF_FILE=coverage.conf
55+
- EXTRA_DTC_OVERLAY_FILE="disable_s2ram.overlay"
5556
- SHIELD=coverage_support
5657
harness: console
5758
harness_config:

tests/benchmarks/multicore/idle_clock_control/coverage.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
CONFIG_PM=n
2-
CONFIG_PM_S2RAM=n
32
CONFIG_PM_DEVICE=n
43
CONFIG_PM_DEVICE_RUNTIME=n
54
CONFIG_POWEROFF=n

tests/benchmarks/multicore/idle_comp/coverage.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ CONFIG_COMPARATOR=y
22
CONFIG_GPIO=y
33

44
CONFIG_PM=y
5-
CONFIG_PM_S2RAM=n
65
CONFIG_PM_DEVICE=y
76
CONFIG_PM_DEVICE_RUNTIME=y
87
CONFIG_POWEROFF=y
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
&s2ram {
2+
status = "disabled";
3+
};

tests/benchmarks/multicore/idle_comp/testcase.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ tests:
7070
integration_platforms:
7171
- nrf54h20dk/nrf54h20/cpuapp
7272
extra_args:
73-
- EXTRA_DTC_OVERLAY_FILE="boards/lpcomp.overlay"
73+
- EXTRA_DTC_OVERLAY_FILE="boards/lpcomp.overlay;disable_s2ram.overlay"
7474
- CONF_FILE=coverage.conf
7575
- SHIELD=coverage_support
7676
harness: console

tests/benchmarks/multicore/idle_exmif/coverage.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
CONFIG_MSPI=y
22

33
CONFIG_PM=y
4-
CONFIG_PM_S2RAM=n
54
CONFIG_PM_DEVICE=y
65
CONFIG_PM_DEVICE_RUNTIME=y
76
CONFIG_POWEROFF=y
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
&s2ram {
2+
status = "disabled";
3+
};

tests/benchmarks/multicore/idle_exmif/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ tests:
5656
- nrf54h20dk/nrf54h20/cpuapp
5757
extra_args:
5858
- CONF_FILE=coverage.conf
59+
- EXTRA_DTC_OVERLAY_FILE="disable_s2ram.overlay"
5960
- SHIELD=coverage_support
6061
harness: console
6162
harness_config:

0 commit comments

Comments
 (0)