Repository navigation
debug: telemetry: prevent system workqueue stack overflow - #11553
Open
piotrhoppeintel wants to merge 1 commit into
Open
piotrhoppeintel wants to merge 1 commit into
piotrhoppeintel wants to merge 1 commit into
Conversation
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
force-pushed
the
error/21046322281_lnl_adsp-ipc-fialure-4-core
branch
from
November 27, 2026 19:13
9f34ed6 to
b38a2b7
Compare
abonislawski
marked this pull request as ready for review
November 30, 2026 08:57
abonislawski
requested review from
dbaluta,
kv2019i,
lbetlej,
lgirdwood,
mmaka1 and
plbossart
as code owners
November 30, 2026 08:57
Contributor
There was a problem hiding this comment.
🟡 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
| struct sof_tel_ppl_section *psec = &wnd->ppl_sec; | ||
| struct sof_tel_hot_line0 *hot0 = telemetry_get_hot_line0(); | ||
| struct tel_ppl_slot new_slots[SOF_TEL_MAX_PIPELINES]; | ||
| struct tel_ppl_slot *new_slots = tel_ppl_slots_staging; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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