FROMLIST: misc: fastrpc: fix ADSP duplicate session creation - #1364
FROMLIST: misc: fastrpc: fix ADSP duplicate session creation#1364Vinayak Katoch (quic-vkatoch) wants to merge 3 commits into
Conversation
🔨 Build Failure Analysis — PR #1364PR: #1364
VerdictThis is not a compilation failure. All 4 errors are merge conflicts that occurred during the CI integration phase when merging 📎 Detailed analysis: Full report |
🔨 Build Failure Analysis — PR #1364PR: #1364
VerdictThe build failed during the merge/integration phase, not compilation. 1 of 4 merge conflicts is directly related to this PR's changes in fastrpc.c; the other 3 conflicts are pre-existing integration issues unrelated to this PR. 📎 Detailed analysis: Full report |
PR #1364 — validate-patchPR: #1364
Final Summary
Recommendation: ❌ DO NOT MERGE until:
|
PR #1364 — checker-log-analyzerPR: #1364
Detailed report: Full report
|
The merge-base changed after approval.
2c551d5 to
ca4fac2
Compare
734bde5 to
493c0bb
Compare
493c0bb to
e6ad413
Compare
🔨 Build Failure Analysis — PR #1364PR: #1364
VerdictThis is not a compilation failure. The build failed during the integration/merge phase due to conflicts between the PR changes and existing modifications in the integration baseline. The PR itself does not introduce compilation errors; it encounters merge conflicts when being integrated with other topic branches. 📎 Detailed analysis: Full report |
🔨 Build Failure Analysis — PR #1364PR: #1364
VerdictThis is not a compilation failure — the build failed during the merge/integration phase before compilation could begin. The PR introduces changes to 📎 Detailed analysis: Full report |
🔨 Build Failure Analysis — PR #1364PR: #1364
VerdictThis is not a compilation failure. Both errors are merge conflicts that occurred during integration branch merging, before compilation began. The PR code itself is syntactically correct; the conflicts arise because the integration branch has diverged from the PR's base. 📎 Detailed analysis: Full report |
PR #1364 — validate-patchPR: #1364
Final Summary
Recommendation: Author must fix the mutex initialization bug before this patch can be reviewed for merge. After fixing, the patch should be posted to the upstream mailing list before merging to the vendor tree.
|
PR #1364 — checker-log-analyzerPR: #1364
Detailed report: Full report
|
8353024 to
e014e35
Compare
e6ad413 to
bb03a22
Compare
🔨 Build Failure Analysis — PR #1364PR: #1364
VerdictThe build failed due to merge conflicts during integration, not compilation errors. 2 conflicts are directly related to this PR's changes to the fastrpc driver; 101 other conflicts are pre-existing integration issues unrelated to this PR. 📎 Detailed analysis: Full report |
🔨 Build Failure Analysis — PR #1364PR: #1364
VerdictThe build failed during the automerge phase before compilation could begin. The PR introduces merge conflicts in 📎 Detailed analysis: Full report |
bb03a22 to
72adb34
Compare
|
Merge Check Failed: No CR Numbers Found Error: No Change Request numbers were found. Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests. |
|
Merge Check Failed: No Component Found Configuration Error: No component found for branch 'tech/mm/fastrpc'. There is no component associated with the provided branch in Polaris. Please verify the branch configuration. Branch: |
PR #1364 — validate-patchPR: #1364
Final Summary
Note: These are FROMLIST commits from a v2 series posted 5 days ago. The presence of
|
PR #1364 — checker-log-analyzerPR: #1364
Detailed report: Full report
|
The merge-base changed after approval.
d167cb0 to
7afcba9
Compare
7afcba9 to
bff2f47
Compare
55a9e74 to
1bc7df1
Compare
72adb34 to
f88aacd
Compare
…form_populate of_platform_populate() only guarantees that child devices are registered, not that their probes have completed before it returns. This creates a window where fastrpc_cb_init() may not have run for all context bank nodes, leaving the channel context partially initialised. Iterate over the child device tree nodes directly, initialising each qcom,fastrpc-compute-cb device synchronously. This ensures all context banks are fully initialised before fastrpc_rpmsg_probe() returns. Since fastrpc_cb_driver is no longer needed as an independent platform driver, remove it along with its match table and remove callback. Set OF_POPULATED_BUS on the parent node so the OF framework treats the bus as already populated and does not attempt to re-enumerate children. In fastrpc_rpmsg_remove(), invalidate all sessions under the channel context lock to prevent any in-flight fastrpc_get_ctx() from picking up a session that is about to be torn down, then call of_platform_depopulate() to clean up the child platform devices. Link: https://lore.kernel.org/all/20260826-dup-sessions-v4-1-35555d2bfed4@oss.qualcomm.com/ Signed-off-by: Vinayak Katoch <vinayak.katoch@oss.qualcomm.com>
…driver For ADSP, only a limited number of FastRPC context banks (CBs) are available. Each CB supports a single session, which means only a few processes can run on ADSP simultaneously. If all sessions are consumed by fastrpc daemons, no session remains available when a user application starts, causing the application to fail. Previously, duplicate sessions were created per CB via the qcom,nsessions DT property during fastrpc_cb_init(). Now that CB initialisation is synchronous, create FASTRPC_DUP_SESSIONS duplicates of the last ADSP session in fastrpc_rpmsg_probe() after all CBs are initialised. Remove the per-CB duplication logic and the qcom,nsessions read from fastrpc_cb_init(). Link: https://lore.kernel.org/all/20260826-dup-sessions-v4-2-35555d2bfed4@oss.qualcomm.com/ Signed-off-by: Vinayak Katoch <vinayak.katoch@oss.qualcomm.com>
The qcom,nsessions property was used to duplicate FastRPC sessions inline during context bank initialisation. Session duplication is now handled by the driver. Mark it as deprecated. Link: https://lore.kernel.org/all/20260826-dup-sessions-v4-3-35555d2bfed4@oss.qualcomm.com/ Signed-off-by: Vinayak Katoch <vinayak.katoch@oss.qualcomm.com>
f88aacd to
24e3331
Compare
Link: https://lore.kernel.org/all/20260826-dup-sessions-v4-0-35555d2bfed4@oss.qualcomm.com/
CRs-Fixed: 4508505