Skip to content

Commit

Permalink
core: set timeout to 400ms for secondary core disabling
Browse files Browse the repository at this point in the history
Linux driver set ipc timeout duration to 500ms, but FW wait 5000ms in
cpu_disable_core for SET_DX ipc message. This makes driver stop but fw
is still waiting. Actually the disabling can be successful in far less
than 5000ms and it was first designed for FPGA case. Now change it to
400ms to make debugging easier.

This patch changes cavs and ace15 platforms and doesn't change ace20
for its current state.

Signed-off-by: Rander Wang <[email protected]>
  • Loading branch information
RanderWang committed Sep 5, 2023
1 parent d964b7b commit 98ce87c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/boards/intel_adsp_ace15_mtpm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,5 @@ CONFIG_DEBUG_COREDUMP_MEMORY_DUMP_MIN=y

CONFIG_PROBE=y
CONFIG_PROBE_DMA_MAX=2

CONFIG_SECONDARY_CORE_DISABLING_TIMEOUT=400
2 changes: 2 additions & 0 deletions app/boards/intel_adsp_cavs25.conf
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,5 @@ CONFIG_DMA_DW_FIFO_PARTITION=y
CONFIG_DMA_INTEL_ADSP_GPDMA_HAS_LLP=y

CONFIG_HEAP_MEM_POOL_SIZE=8192

CONFIG_SECONDARY_CORE_DISABLING_TIMEOUT=400
2 changes: 2 additions & 0 deletions app/boards/intel_adsp_cavs25_tgph.conf
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,5 @@ CONFIG_DMA_DW_FIFO_PARTITION=y
CONFIG_DMA_INTEL_ADSP_GPDMA_HAS_LLP=y

CONFIG_HEAP_MEM_POOL_SIZE=8192

CONFIG_SECONDARY_CORE_DISABLING_TIMEOUT=400
2 changes: 1 addition & 1 deletion src/platform/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ config SOF_STACK_SIZE
components.

config SECONDARY_CORE_DISABLING_TIMEOUT
int
int "Secondary core disabling timeout"
default 5000
depends on MULTICORE
help
Expand Down

0 comments on commit 98ce87c

Please sign in to comment.