Skip to content

debug: telemetry: prevent system workqueue stack overflow - #11553

Merged
kv2019i merged 1 commit into
thesofproject:mainfrom
piotrhoppeintel:error/21046322281_lnl_adsp-ipc-fialure-4-core
Dec 1, 2026
Merged

kv2019i merged 1 commit into
thesofproject:mainfrom
piotrhoppeintel:error/21046322281_lnl_adsp-ipc-fialure-4-core

Conversation

@piotrhoppeintel

Copy link
Copy Markdown
Contributor

Move telemetry collection buffers from the stack to static storage. Increase the system workqueue stack size to accommodate Xtensa interrupt frames during telemetry processing.

@piotrhoppeintel
piotrhoppeintel force-pushed the error/21046322281_lnl_adsp-ipc-fialure-4-core branch from 9f34ed6 to b38a2b7 Compare November 27, 2026 19:13
@abonislawski
abonislawski marked this pull request as ready for review November 30, 2026 08:57
Copilot AI balanced review requested due to automatic review settings November 30, 2026 08:58

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.

🟡 Changes recommended

Unsynchronized concurrent pipeline rebuilds can overwrite the shared staging buffer, publish incomplete telemetry slots, and lose saved XRUN counts.

1 open issue
What changed in this PR

This PR reduces telemetry’s system workqueue stack usage by moving collection buffers to static storage, helping prevent stack overflow during telemetry processing.

Changes:

  • Move pipeline staging slots and the thread collection context off the stack.
  • Update buffer initialization and context access for static storage.
  • The supplied diff does not include the stack-size increase mentioned in the description.
File Description
src/​kernel/​debug/​telemetry/​telemetry.c Moves pipeline and thread collection buffers to static storage and updates their usage.

Review effort: Balanced

Comment thread src/kernel/debug/telemetry/telemetry.c Resolved

@kv2019i kv2019i left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Code looks good, but commit is missing signed-of-by and the commit message mentions increasing stack sizing, but there's no matching change. If that is needed (so both moving data to static object and increasing stack size), that should probably be in separate commit.

Comment thread src/kernel/debug/telemetry/telemetry.c Resolved
@piotrhoppeintel
piotrhoppeintel force-pushed the error/21046322281_lnl_adsp-ipc-fialure-4-core branch 2 times, most recently from 5ba3ff6 to 9cb96dc Compare November 30, 2026 15:13
Move telemetry collection buffers from the stack to static storage.

Signed-off-by: Piotr Hoppe <piotr.hoppe@intel.com>
@piotrhoppeintel
piotrhoppeintel force-pushed the error/21046322281_lnl_adsp-ipc-fialure-4-core branch from 9cb96dc to f22b1ee Compare November 30, 2026 15:18
@intel-sofci

Copy link
Copy Markdown

PR 11553: test results

Run date: 2026-11-30 16:27 UTC

Tested commit: f22b1eed49f105ee50aa290b96e9baf68d4ceaa7

mtl pass rate lnl pass rate ptl pass rate wcl pass rate nvl pass rate

@abonislawski
abonislawski requested a review from kv2019i December 1, 2026 10:52
@kv2019i
kv2019i merged commit 70b989c into thesofproject:main Dec 1, 2026
45 checks passed
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.

6 participants