Skip to content

fix(remoteproc): make SSR optional across remoteproc tests to avoid wedge and harden CLI parsing#302

Merged
vnarapar merged 4 commits intoqualcomm-linux:mainfrom
smuppand:remoteproc
Feb 17, 2026
Merged

fix(remoteproc): make SSR optional across remoteproc tests to avoid wedge and harden CLI parsing#302
vnarapar merged 4 commits intoqualcomm-linux:mainfrom
smuppand:remoteproc

Conversation

@smuppand
Copy link
Contributor

@smuppand smuppand commented Feb 17, 2026

This PR changes the *_remoteproc test to avoid issuing stop/start (SSR) by default, because stopping can wedge the stack (e.g., /proc/asound/pcm hang / D-state tasks) and lead to system deadlocks on some boards. SSR is now opt-in via a CLI flag so we can keep running remoteproc coverage without triggering the known freeze path.
What changed

  • Default behavior: SSR OFF
  • Test validates subsystems is present in DT, enumerates the matching /sys/class/remoteproc/* entry, and checks it is running.
  • No stop/start is performed unless explicitly requested.

SSR is optional via --ssr

  • When enabled, performs stop_remoteproc + wait_remoteproc_state(... offline ...), then start_remoteproc + wait_remoteproc_state(... running ...).
  • Keeps existing timeout/poll behavior.

Default to a non-disruptive mode that only validates ADSP presence/boot state,
avoiding stop/start sequences that can wedge the audio stack on some boards.

- Add --ssr flag to explicitly enable remoteproc stop/start
- Keep wait_remoteproc_state polling (timeout + poll interval) for SSR mode
- Harden arg parsing for options requiring values to prevent "shift count out of range"
- Retain existing logging/results behavior and dmesg/rproc log capture

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

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Default the test to non-destructive mode (no remoteproc stop/start) to avoid
triggering SSR-related wedges. Add POSIX-safe argument parsing and expose
--ssr plus --stop-to/--start-to/--poll-i overrides, matching adsp_remoteproc
behavior. Keep existing DT gating, logging, and result semantics unchanged.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Default to non-destructive mode (no remoteproc stop/start) and require --ssr
to perform WPSS SSR. Add POSIX-safe argument parsing for --stop-to/--start-to/
--poll-i, and align logging with other remoteproc tests. Keep ath11k fallback
path behavior unchanged.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
@smuppand smuppand changed the title fix(remoteproc): make ADSP SSR optional to avoid audio wedge and harden CLI parsing fix(remoteproc): make SSR optional across remoteproc tests to avoid wedge and harden CLI parsing Feb 17, 2026
Copy link
Contributor

@vnarapar vnarapar left a comment

Choose a reason for hiding this comment

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

lgtm

@vnarapar vnarapar merged commit 1605411 into qualcomm-linux:main Feb 17, 2026
7 of 8 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.

2 participants

Comments