Skip to content

intel: platform: use Kconfig for IDC stack size#11031

Open
serhiy-katsyuba-intel wants to merge 1 commit into
thesofproject:mainfrom
serhiy-katsyuba-intel:stack_def
Open

intel: platform: use Kconfig for IDC stack size#11031
serhiy-katsyuba-intel wants to merge 1 commit into
thesofproject:mainfrom
serhiy-katsyuba-intel:stack_def

Conversation

@serhiy-katsyuba-intel

Copy link
Copy Markdown
Contributor

SOF_STACK_SIZE (on Intel platforms) is only used to define IDC worker thread stack size. However, we also have a Kconfig option CONFIG_SOF_STACK_SIZE. On some platforms, the IDC worker thread stack used a hard-coded value, which seems to have been an oversight.

The default CONFIG_SOF_STACK_SIZE value is 4096, but it is increased to 8192 on the PTL board and in some overlays, such as the MTL DAX overlay. Therefore, this change also increases the IDC worker thread stack size for those configurations.

The stack size is defined by the Kconfig option CONFIG_SOF_STACK_SIZE.
On some platforms, the IDC worker thread stack used a hard-coded value,
which seems to have been an oversight.

The default CONFIG_SOF_STACK_SIZE value is 4096, but it is increased to
8192 on the PTL board and in some overlays, such as the MTL DAX overlay.
Therefore, this change also increases the IDC worker thread stack size
for those configurations.

Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 aligns Intel platform stack sizing with the existing Kconfig setting by defining SOF_STACK_SIZE in terms of CONFIG_SOF_STACK_SIZE (instead of a hard-coded 0x1000). This makes the IDC worker thread stack size follow board/overlay configuration (e.g., PTL/MTL DAX overlays increasing it to 8192), matching how multiple other platforms already derive SOF_STACK_SIZE.

Changes:

  • Replace hard-coded SOF_STACK_SIZE (4KB) with CONFIG_SOF_STACK_SIZE on Meteorlake, Lunarlake, and ACE30.
  • Ensure IDC worker thread stack sizing tracks Kconfig/overlay adjustments for affected Intel targets.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/platform/meteorlake/include/platform/lib/memory.h Switch SOF_STACK_SIZE to use CONFIG_SOF_STACK_SIZE for MTL.
src/platform/lunarlake/include/platform/lib/memory.h Switch SOF_STACK_SIZE to use CONFIG_SOF_STACK_SIZE for LNL.
src/platform/ace30/include/platform/lib/memory.h Switch SOF_STACK_SIZE to use CONFIG_SOF_STACK_SIZE for ACE30.

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