Skip to content

Audio: Validate idle and streaming DSP crash recovery - #706

Draft
Srikanth Muppandam (smuppand) wants to merge 2 commits into
qualcomm-linux:mainfrom
smuppand:audio-dsp-recovery-validation
Draft

Srikanth Muppandam (smuppand) wants to merge 2 commits into
qualcomm-linux:mainfrom
smuppand:audio-dsp-recovery-validation

Conversation

@smuppand

@smuppand Srikanth Muppandam (smuppand) commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Add separate ALSA recovery tests for a crash while idle and during an owned running stream. Resolve card identity and DSP ownership from runtime ASoC links, preserve mixer state, require actual card re-registration and verify playback after recovery. The stream test also rejects hangs and requires a device-disconnect error.

Depends on the Remoteproc_Restart_Validation implementation in #643, reused for injection, recovery policy, event ordering and firmware/kernel fault classification. Without that dependency or image-provided optional prerequisites, the new suites skip. Existing AudioPlayback and AudioRecord behavior is unchanged.

Validation: 46 host runner controls cover success, missing prerequisites, unrelated cards, genuine child failures, wrong stream ownership, hangs, incomplete results, control restoration and kernel faults. ShellCheck 0.9.0, dash syntax, YAML/result contracts, notices and whitespace passed. Hardware validation on applicable Yocto, Debian, Ubuntu, CentOS and ramdisk images is pending. No packages are installed and no LAVA job was submitted.

Source walkthrough: qualcomm-linux/kernel 17bbb4b sound/soc/soc-core.c, sound/core/init.c and pcm.c, plus alsa-utils v1.2.14 aplay.c. The suites validate digital playback completion, not acoustic output. Explicit isolated-target opt-in is required.

Additional local validation: SIGTERM during the controlled operation produces FAIL and restores the test-owned state without leaking the owned playback process or leaving the selected video driver unbound. These are host fixtures, not DUT crash/rebind results.

Resolve stable card identity and runtime DSP component ownership, verify the owned PCM stream, and reuse bounded playback and selected-card mixer restoration without changing existing audio flows.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Add separate ALSA recovery tests for a crash while idle and during an owned running stream. Resolve card identity and DSP ownership from runtime ASoC links, preserve mixer state, require actual card re-registration and verify playback after recovery. The stream test also rejects hangs and requires a device-disconnect error.

Depends on the Remoteproc_Restart_Validation implementation in qualcomm-linux#643, reused for injection, recovery policy, event ordering and firmware/kernel fault classification. Without that dependency or image-provided optional prerequisites, the new suites skip. Existing AudioPlayback and AudioRecord behavior is unchanged.

Validation: 42 host runner controls cover success, missing prerequisites, unrelated cards, genuine child failures, wrong stream ownership, hangs, incomplete results, control restoration and kernel faults. ShellCheck 0.9.0, dash syntax, YAML/result contracts, notices and whitespace passed. Hardware validation on applicable Yocto, Debian, Ubuntu, CentOS and ramdisk images is pending. No packages are installed and no LAVA job was submitted.

Source walkthrough: qualcomm-linux/kernel 17bbb4b sound/soc/soc-core.c, sound/core/init.c and pcm.c, plus alsa-utils v1.2.14 aplay.c. The suites validate digital playback completion, not acoustic output. Explicit isolated-target opt-in is required.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>

This branch has not been deployed

No deployments
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.

1 participant