Skip to content

Enhance fastrpc_test for multi-domain and multi-PD execution#406

Open
anankulk wants to merge 1 commit intoqualcomm-linux:mainfrom
anankulk:fastrpc-multi-domain-test
Open

Enhance fastrpc_test for multi-domain and multi-PD execution#406
anankulk wants to merge 1 commit intoqualcomm-linux:mainfrom
anankulk:fastrpc-multi-domain-test

Conversation

@anankulk
Copy link
Copy Markdown

Adds runtime domain discovery to fastrpc_test, enabling looped execution across all supported DSP domains and PD modes without target-specific hardcoding.

Change Summary
Runtime fetch : Detects available domains via remoteproc/DT
Extended domain support: CDSP1, GPDSP0, GPDSP1
Domain-aware PD execution:
ADSP/MDSP/SDSP: signed only
CDSP/GPDSP: both signed and unsigned
Enhanced reporting: Tabular per-domain, per-PD summary

Expected Sample Output : (qcs9100-ride-sx)
Domain | PD Mode | Pass | Fail | Status

ADSP | Signed | 1 | 0 | PASS
CDSP | Signed | 1 | 0 | PASS
CDSP | Unsigned | 1 | 0 | PASS
CDSP1 | Signed | 1 | 0 | PASS
CDSP1 | Unsigned | 1 | 0 | PASS
GPDSP0 | Signed | 1 | 0 | PASS
GPDSP0 | Unsigned | 1 | 0 | PASS
GPDSP1 | Signed | 1 | 0 | PASS
GPDSP1 | Unsigned | 1 | 0 | PASS

Overall: Total runs: 9 | Passed: 9 | Failed: 0

Backward Compatibility
Explicit domain/PD overrides preserved via --domain, --domain-name, --pd-mode, and environment variables.

Impact
Coverage: Tests all available domains/PDs automatically
Maintenance: No target-specific configuration needed
Execution time: Increases proportionally to domain count (expected)

Enhance fastrpc_test to discover and test all supported
DSP domains at runtime instead of hardcoding a single domain.

Changes:
- Runtime domain discovery via dt_has_remoteproc_fw()
- Support for CDSP1, GPDSP0, GPDSP1 in addition to existing domains
- Domain-aware PD execution (ADSP/MDSP/SDSP: signed only;
  CDSP/GPDSP: both signed and unsigned)
- Tabular summary showing per-domain, per-PD test results

Default behavior now tests all discovered domains with appropriate PD
modes. Single-domain execution still supported via --domain-mode option.

Signed-off-by: Anand Kulkarni <anankulk@qti.qualcomm.com>
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