Skip to content

Commit bcc3c19

Browse files
committed
tests: kernel/smp: intel_adsp needs more relaxing NOPs
It has been observed that, during the switching stress test, the context switching becomes very slow due to enough CPUs doing RCW transaction on hardware bus (e.g. spin locks). Since the number of NOPs are the same for all CPUs, they are simply entering and exiting the relax loop at the same time, and hitting the bus with RCW transactions at the same time. Not exactly a deadlock but it slows down the execution enough to result in the test timing out. The SoC layer has added an option to offset the number of NOPs per CPU by adding the CPU to the number of NOPs. So enabling it for the Intel ADSP boards to workaround the above mentioned issue. I haven't encountered another slowdown after turning on this option. So hopefully this lowers the probability of that happening such that a simple retry can pass the test. Signed-off-by: Daniel Leung <[email protected]>
1 parent 59e9f84 commit bcc3c19

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
CONFIG_SOC_SERIES_INTEL_ADSP_ACE_NUM_SPIN_RELAX_NOPS_ADD_CPU_ID=y
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
CONFIG_SOC_SERIES_INTEL_ADSP_ACE_NUM_SPIN_RELAX_NOPS_ADD_CPU_ID=y
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
CONFIG_SOC_SERIES_INTEL_ADSP_ACE_NUM_SPIN_RELAX_NOPS_ADD_CPU_ID=y
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
CONFIG_SOC_SERIES_INTEL_ADSP_ACE_NUM_SPIN_RELAX_NOPS_ADD_CPU_ID=y

0 commit comments

Comments
 (0)