Skip to content

ptl: userspace: temporarily switch to stack pool#10632

Open
lyakh wants to merge 1 commit intothesofproject:mainfrom
lyakh:stack
Open

ptl: userspace: temporarily switch to stack pool#10632
lyakh wants to merge 1 commit intothesofproject:mainfrom
lyakh:stack

Conversation

@lyakh
Copy link
Collaborator

@lyakh lyakh commented Mar 19, 2026

This fixes sporadic CI endurance test failures. Once Zephyr merges "kernel: dynamic stack to cached area if coherence" we should be able to switch back to dynamic stack allocation.

This fixes sporadic CI endurance test failures. Once Zephyr merges
"kernel: dynamic stack to cached area if coherence" we should be able
to switch back to dynamic stack allocation.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Copilot AI review requested due to automatic review settings March 19, 2026 12:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the Panther Lake ACE30 userspace configuration to avoid sporadic CI endurance failures by switching dynamic thread stack provisioning away from runtime allocation and toward a preallocated pool.

Changes:

  • Disable dynamic thread stack allocation preference and enable pool preference for dynamic threads.
  • Introduce a fixed-size dynamic thread stack pool configuration.
  • Reduce configured dynamic thread stack size and CONFIG_SOF_STACK_SIZE from 8192 to 4096.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +73 to +78
CONFIG_DYNAMIC_THREAD_ALLOC=n
CONFIG_DYNAMIC_THREAD_PREFER_ALLOC=n
CONFIG_DYNAMIC_THREAD_PREFER_POOL=y
CONFIG_DYNAMIC_THREAD_POOL_SIZE=4
CONFIG_DYNAMIC_THREAD_STACK_SIZE=4096
CONFIG_SOF_STACK_SIZE=4096
CONFIG_DYNAMIC_THREAD_ALLOC=n
CONFIG_DYNAMIC_THREAD_PREFER_ALLOC=n
CONFIG_DYNAMIC_THREAD_PREFER_POOL=y
CONFIG_DYNAMIC_THREAD_POOL_SIZE=4
Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but pls review/resolve copliot comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants