-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Open
Labels
bugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bug
Description
Describe the bug
Same issue is occurred here: #98762
Occurs on platform:
- intel_adsp/ace15_mtpm/sim
There is failed test with statuses:
| test suite | test case | test suite status | test case status | fails reason |
|---|---|---|---|---|
| kernel.smp_abort | smp_abort.smp_thread_abort_deadlock | failed | failed | rc=2 |
Regression
- This is a regression.
Steps to reproduce
twister -p intel_adsp/ace15_mtpm/sim --device-testing --hardware-map hw-map-file -s kernel.smp_abort
Relevant log output
Fail log for test suite on platform: intel_adsp/ace15_mtpm/sim.
Failed reason: rc=2
Test suite name: kernel.smp_abort
×
ninja: Entering directory `/zephyr/twister-out/intel_adsp_ace15_mtpm_sim/xt-clang/tests/kernel/smp_abort/kernel.smp_abort'
[0/1] cd /zephyr/twister-out/intel_adsp_ace15_mtpm_sim/xt-clang/tests/kernel/smp_abort/kernel.smp_abort && /zephyr/intel/std_sim/acesim.py --soc ace15_mtpm --rimage /zephyr/twister-out/intel_adsp_ace15_mtpm_sim/xt-clang/tests/kernel/smp_abort/kernel.smp_abort/zephyr/zephyr.ri
[TOOL]: DSP SIM TOOL, built Sep 6 2024 at 14:53:21
[TOOL]: No outputsfiles to load
Starting: /zephyr/intel/std_sim/intel_ace15_mtpm/dsp_sim-mtl --api.connection_id=1218818 --loadbin=/zephyr/intel/std_sim/intel_ace15_mtpm/dsp_rom_mtl_release.bin --config=/tmp/acesim.tmpqeuhnvhc/acesim.tmp6gbrj764 --turbo=true
Simulator started with pid: 1218822
SystemC 2.3.3-Accellera --- Nov 30 2022 15:33:42
Copyright (c) 1996-2018 by all Contributors,
ALL RIGHTS RESERVED
NOTE: 0.0/000: 0[ms]: Log level taken from [cmd] or [config] = NOTE
NOTE: 0.0/000: 0[ms]: Standalone DSP simulator, version 1.1.0.9490, built Sep 6 2024 at 14:53:23
NOTE: 0.0/000: 0[ms]: -------------------------------------------------------------------------------------
NOTE: 0.0/000: 0[ms]: PLATFORM: mtl
NOTE: 0.0/000: 0[ms]: CORE: ace10_LX7HiFi4_2022_10
NOTE: 0.0/000: 0[ms]: CORE CONFIG DIR: /opt/toolchains/xtensa/XtDevTools/install/tools/RI-2022.10-linux/XtensaTools/config
NOTE: 0.0/000: 0[ms]: XTENSA TOOLS VERSION: RI-2022.10-linux
NOTE: 0.0/000: 0[ms]: TEXT LOGGING CONFIG DIR: /zephyr/intel/std_sim/text_logging_config/log_level_1.txt
NOTE: 0.0/000: 0[ms]: CONFIG DIR: /tmp/acesim.tmpqeuhnvhc/acesim.tmp6gbrj764
NOTE: 0.0/000: 0[ms]: TURBO MODE: Enabled
NOTE: 0.0/000: 0[ms]: GNA LIB VERSION: 4.5.0.2631
NOTE: 0.0/000: 0[ms]: -------------------------------------------------------------------------------------
NOTE: 0.0/000: 0[ms]: Connecting host_fabric to dsp_fabric
NOTE: 0.0/000: 0[ms]: Creating DSP Core0 with following params: core_id: 0, core_type: 0, l1_mmio_name:dram0
NOTE: 0.0/000: 0[ms]: Creating DSP Core1 with following params: core_id: 1, core_type: 1, l1_mmio_name:dram0
NOTE: 0.0/000: 0[ms]: Creating DSP Core2 with following params: core_id: 2, core_type: 1, l1_mmio_name:dram0
NOTE: 0.0/000: 0[ms]: Building host...
NOTE: 0.0/000: 0[ms]: Building host module...
NOTE: 0.0/000: 0[ms]: Building host module... DONE
NOTE: 0.0/000: 0[ms]: Creating host mmio...
NOTE: 0.0/000: 0[ms]: Connect mmio to fabric...
NOTE: 0.0/000: 0[ms]: Creating host memory...
NOTE: 0.0/000: 0[ms]: Connecting memory to fabric...
NOTE: 0.0/000: 0[ms]: Host memory... DONE
NOTE: 0.0/000: 0[ms]: Configuring module dsp_mmio
NOTE: 0.0/000: 0[ms]: Connecting module dsp_mmio to fabric... Port: 0
NOTE: 0.0/000: 0[ms]: Configuring IMR... (delay=623)
NOTE: 0.0/000: 0[ms]: Connecting IMR to fabric...
NOTE: 0.0/000: 0[ms]: Connecting HPSRAM to fabric...
NOTE: 0.0/000: 0[ms]: Configuring LPSRAM
NOTE: 0.0/000: 0[ms]: Connecting LPSRAM to fabric...
NOTE: 0.0/000: 0[ms]: Building ace interrupts...
NOTE: 0.0/000: 0[ms]: Building ace interrupts... DONE
NOTE: 0.0/000: 0[ms]: Building ace controls...
NOTE: 0.0/000: 0[ms]: Creating alh control...
NOTE: 0.0/000: 0[ms]: Creating misc(DTF, SETIDVAL) control...
NOTE: 0.0/000: 0[ms]: Creating comm widget...
NOTE: 0.0/000: 0[ms]: Creating ssp control...
NOTE: 0.0/000: 0[ms]: Creating uaol control...
NOTE: 0.0/000: 0[ms]: Creating soundwire control...
NOTE: 0.0/000: 0[ms]: Creating soundwire master 0 control...
NOTE: 0.0/000: 0[ms]: Creating soundwire master 1 control...
NOTE: 0.0/000: 0[ms]: Creating soundwire master 2 control...
NOTE: 0.0/000: 0[ms]: Creating soundwire master 3 control...
NOTE: 0.0/000: 0[ms]: Creating tlb module on HP SRAM...
NOTE: 0.0/000: 0[ms]: Connecting TLB to mmio...
NOTE: 0.0/000: 0[ms]: Connecting tlb module to fabric...
NOTE: 0.0/000: 0[ms]: Creating hda_dma...
NOTE: 0.0/000: 0[ms]: Connecting hda_dma to fabric
NOTE: 0.0/000: 0[ms]: Connecting GNA accelerator to dsp fabric
NOTE: 0.0/000: 0[ms]: Simulation initialization done, took: 1.1s, starting simulation...
[TOOL]: Initializing
[TOOL]: Initializing IOB Manager
[TOOL]: Executing step: LOAD_ROM_EXT (file_id=rom_ext_bin)
[TOOL]: Loading ROM_EXT: '/zephyr/intel/std_sim/intel_ace15_mtpm/dsp_lib_rom_ext_mtl_release.bin'
[TOOL]: Executing step: LOAD_FW (commands: #1, file_id=fw_bin)
[TOOL]: Loading FW: '/tmp/acesim.tmpqeuhnvhc/acesim.tmpkar60_6s'
[TOOL]: Streamer: creating stream: streamer_type=INPUT file_type=FW node_id=0x0 file=/tmp/acesim.tmpqeuhnvhc/acesim.tmpkar60_6s
[TOOL]: Streamer: node_id=0x0 sent: 262144 bytes (262144/262144)
[TOOL]: Streamer: node_id=0x0 processed data drained
[TOOL]: Streamer: node_id=0x0 sent: 0 bytes (262144/262144)
[TOOL]: Got IPC: primary=0x9b080000, extension=0x0, type: NOTIFICATION (27)
[TOOL]: Notification, type: FW_READY
*** Booting Zephyr OS build v4.3.0-rc1-122-gfb01c781b6c0 ***
Running TESTSUITE smp_abort
===================================================================
[TOOL]: Notification FwReadyNotification received!
[TOOL]: Executing step: WAIT (type=SLEEP, duration=60)
START - test_smp_thread_abort_deadlock
Thread 1 started
Thread 2 started
Thread 0 started
ASSERTION FAIL [old_thread->switch_handle == ((void*)0)] @ ZEPHYR_BASE/kernel/sched.c:866
old thread handle should be null.
E: ** FATAL EXCEPTION
E: ** CPU 1 EXCCAUSE 63 (zephyr exception)
E: ** PC 0xa0031a57 VADDR 0
E: ** PS 0x60520
E: ** (INTLEVEL:0 EXCM: 0 UM:1 RING:0 WOE:1 OWB:5 CALLINC:2)
E: ** A0 0xa00341a8 SP 0xa0040870 A2 0x4 A3 0x1
E: ** A4 0xa0040860 A5 0x60523 A6 0x40043ec0 A7 0x20000
E: ** A8 0xa0034081 A9 0xa00407f0 A10 0x1 A11 0xa0042501
E: ** A12 0x1 A13 0 A14 0 A15 0
E: ** LBEG 0xa003a351 LEND 0xa003a35e LCOUNT 0xffffffe4
E: ** SAR 0x1b
E: ** THREADPTR 0
Backtrace:0xa0031a54:0xa0040870 0xa00341a5:0xa0040880 0xa003376c:0xa00408a0 0xa00350f5:0xa00408e0 0x60031b67:0xa0040900 |<-CORRUPTED
E: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 1
E: Current thread: 0xa0042500 (unknown)
E: Halting systemImpact
Annoyance – Minor irritation; no significant impact on usability or functionality.
Environment
OS: Ubuntu 24.02
Zephyr version: v4.3.0-rc1-122-gfb01c781b6c0
toolchain: zephyr
SDK: 0.17.4
Additional Context
No response
Metadata
Metadata
Assignees
Labels
bugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bug