From 67f3d0b92392b7c2d27d1e209afff24e2811a7cb Mon Sep 17 00:00:00 2001 From: Sudan Landge Date: Tue, 13 Aug 2024 15:05:13 +0100 Subject: [PATCH] tests: kernel: smp: Test cpu affinity with custom ROM offset What is the changed? CPU affinity test for SMP cores will now cover a change in ROM offset. How is it changed? Add a new testcase section with ROM offset set to something other than the default 0. Why is it change? There is no test to cover the issue reported in #76182 and the cpu affinity test is the closest to test the issue. Adding a new testcase will makes sure there is no breaking change in the future. Signed-off-by: Sudan Landge --- tests/kernel/smp/testcase.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/kernel/smp/testcase.yaml b/tests/kernel/smp/testcase.yaml index 6138c7c2627..650ed72c208 100644 --- a/tests/kernel/smp/testcase.yaml +++ b/tests/kernel/smp/testcase.yaml @@ -24,3 +24,13 @@ tests: filter: (CONFIG_MP_MAX_NUM_CPUS > 1) extra_configs: - CONFIG_SCHED_CPU_MASK=y + + kernel.multiprocessing.smp.affinity.custom_rom_offset: + tags: + - kernel + - smp + ignore_faults: true + filter: (CONFIG_MP_MAX_NUM_CPUS > 1) + extra_configs: + - CONFIG_SCHED_CPU_MASK=y + - CONFIG_ROM_START_OFFSET=0x80