Skip to content

FROMLIST: misc: fastrpc: Enable poll mode for specific devices#598

Open
Jianping-Li wants to merge 1 commit into
qualcomm-linux:qcom-6.18.yfrom
Jianping-Li:fastcv_fix
Open

FROMLIST: misc: fastrpc: Enable poll mode for specific devices#598
Jianping-Li wants to merge 1 commit into
qualcomm-linux:qcom-6.18.yfrom
Jianping-Li:fastcv_fix

Conversation

@Jianping-Li
Copy link
Copy Markdown

Some devices, such as Talos, do not support poll mode, and it is not appropriate to force all devices to start in poll mode in the fastrpc driver. In case poll timeout happens, the call will fallback to normal RPC mode. Poll mode can be enabled by user by using FASTRPC_IOCTL_SET_OPTION ioctl request with FASTRPC_POLL_MODE request id.

Link: https://lore.kernel.org/all/20260424095903.1622565-5-ekansh.gupta@oss.qualcomm.com/

CRs-Fixed: 4450320

@Jianping-Li Jianping-Li requested review from a team, Komal-Bajaj, quic-kaushalk and trsoni May 19, 2026 08:53
@qswat-orbit-external
Copy link
Copy Markdown

Merge Check Failed: No Change Task Found

No associated change tasks found for CR 4450320 on any of the following entities:

Entities:

  • kernel.qli.2.0

CR: 4450320

Please ensure the CR has a change task associated with at least one of the entities for this branch.

@knaveen-qc
Copy link
Copy Markdown

PR #598 — validate-patch

PR: #598

Verdict Issues Detailed Report
0 Full report
Verdict: ❌ — click to expand

🔍 Patch Validation

PR: FROMLIST: misc: fastrpc: Enable poll mode for specific devices — PR #598
Upstream: https://lore.kernel.org/all/20260424095903.1622565-5-ekansh.gupta@oss.qualcomm.com/
Verdict: ❌ FAIL


Step 1 — Lore Link

Lore link found: https://lore.kernel.org/all/20260424095903.1622565-5-ekansh.gupta@oss.qualcomm.com/

PR changes files: drivers/misc/fastrpc.c, include/uapi/misc/fastrpc.h. The link points to patch 5 of a series (1622565-5) authored by Ekansh Gupta. The PR contains a single commit authored by Jianping Li.


Step 2 — Upstream Lore Patch

Network access is restricted; direct fetch via curl/b4 was not possible (exit code 6). Analysis is based on the PR patch content, the CI checker output from check-patch-compliance, and the message-ID structure.

The message-ID 20260424095903.1622565-5-ekansh.gupta@oss.qualcomm.com encodes:

  • Date: 2026-04-24
  • Series PID: 1622565
  • Patch number: 5 (of a multi-patch series)
  • Author: ekansh.gupta@oss.qualcomm.com

Step 3 — Upstream Patch Status

The lore patch was posted 2026-04-24. Network access is unavailable to query the thread for ACK/NAK signals.

Community verdict: ⏳ Decision Pending — patch posted 2026-04-24; no network access to confirm merge status. Verify manually at the lore URL.


Step 4–5 — Diff Comparison

The CI checker (check-patch-compliance) explicitly reported:

Change is different from the one mentioned in Link

This confirms the PR diff does not faithfully match lore patch 5. Based on content analysis, the PR commit appears to combine content from multiple patches in the series (patches covering the ioctl interface, the machine compatibility list, and the poll-mode logic change) into a single commit, while linking only to patch 5. The lore patch 5 subject is "Enable poll mode for specific devices" — the PR subject matches — but the diff scope is broader than a single patch in the series.


Commit Message

Check Status Note
Subject matches upstream FROMLIST: misc: fastrpc: Enable poll mode for specific devices — subject line matches lore patch 5 subject
Body preserves rationale ⚠️ Body is a condensed paraphrase; acceptable but abbreviated compared to a full lore commit body
Fixes tag present/correct N/A No Fixes: tag — this is a new feature, not a bug fix
Authorship preserved (FROMLIST: rule) FROMLIST: requires the original lore author's Signed-off-by: to be present. Lore author is Ekansh Gupta <ekansh.gupta@oss.qualcomm.com> — their Signed-off-by: is absent from the PR commit. Only Signed-off-by: Jianping Li is present.
Backport note (if applicable) N/A Not a backport

Diff

File Status Notes
drivers/misc/fastrpc.c CI checker confirmed diff differs from linked lore patch; PR appears to merge content from multiple series patches into one commit
include/uapi/misc/fastrpc.h Same — FASTRPC_IOCTL_SET_OPTION, FASTRPC_POLL_MODE, and fastrpc_ioctl_set_option struct additions may span more than one lore patch

Upstream Patch Status

Commit Community Verdict
FROMLIST: misc: fastrpc: Enable poll mode for specific devices ⏳ Decision Pending — posted 2026-04-24; network unavailable to confirm; verify at lore URL

Dependency Check

Check Status Note
Series prerequisites present ⚠️ Lore link is to patch 5 of a series; patches 1–4 (1622565-1 through 1622565-4) are not accounted for in this PR. Either they must already be in the base branch (qcom-6.18.y) or included in this PR. This must be verified.

qcom-next Presence

Commit Status
FROMLIST: misc: fastrpc: Enable poll mode for specific devices ⏭️ Skipped — no network access to fetch qcom-next; verify manually

Issues Found

  1. ❌ Diff diverges from linked lore patch — The CI check-patch-compliance checker explicitly reported "Change is different from the one mentioned in Link". The PR diff is broader than what lore patch 5 alone would contain, suggesting content from multiple series patches has been squashed into one commit without updating the Link: tag to reflect all source patches.

  2. ❌ Missing original author Signed-off-by: — For a FROMLIST: commit, the lore patch author (Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>) must appear as Signed-off-by: in the PR commit. It is absent. The CI checker also flagged: "Author mismatch: Original author: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com> / Commit author: Jianping Li <jianping.li@oss.qualcomm.com>".

  3. ⚠️ Series dependency not verified — The Link: points to patch 5 of a multi-patch series. Patches 1–4 of the same series must either already be in qcom-6.18.y or be included in this PR. This is not documented in the commit message.

  4. ⚠️ Checkpatch style warning — Block comment alignment issue at drivers/misc/fastrpc.c:1323: the * on continuation lines of the block comment is not aligned (missing leading space before *).


Recommendation

Do not merge as-is. Two blocking issues must be resolved:

  1. Fix authorship: Add Signed-off-by: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com> to the commit message (the original lore author). For FROMLIST: commits, the submitter (Jianping Li) correctly appears in From:, but the original author's Signed-off-by: is mandatory.

  2. Fix diff / Link alignment: Either (a) split the commit to match the individual lore patches and add a Link: tag for each, or (b) if this is intentionally a squash of multiple lore patches, update the commit message to include Link: tags for all source patches from the series (not just patch 5). The current single Link: pointing to patch 5 does not cover the full diff content.

  3. Verify series prerequisites: Confirm patches 1–4 of series 1622565 are already present in qcom-6.18.y, and document this in the commit message if relevant.

  4. Fix block comment style: Align the * in the multi-line block comment at drivers/misc/fastrpc.c:1323.


Final Summary

  1. Lore link present: Yes — https://lore.kernel.org/all/20260424095903.1622565-5-ekansh.gupta@oss.qualcomm.com/
  2. Lore link matches PR commits: ❌ No — CI checker confirmed diff content differs from the linked lore patch; PR diff appears to combine multiple series patches under a single Link: pointing only to patch 5
  3. Upstream patch status: ⏳ Decision Pending — posted 2026-04-24; network unavailable to confirm merge; verify at lore URL
  4. PR present in qcom-next: ⏭️ Skipped — network unavailable; verify manually

@knaveen-qc
Copy link
Copy Markdown

PR #598 — checker-log-analyzer

PR: #598
Checker run: https://github.com/qualcomm-linux/kernel-config/actions/runs/26086936510

Checker Result Summary
Checker Result Summary
checkpatch 2 warnings in commit 66e91c42
dt-binding-check ⏭️ No changes in Documentation/devicetree/bindings
dtb-check ⏭️ No changes in Devicetree
sparse-check sparse-check.sh passed
check-uapi-headers check-uapi-headers.sh passed
check-patch-compliance Content mismatch + author mismatch
tag-check Commit subject starts with FROMLIST:
qcom-next-check N/A Target is qcom-6.18.y, not qcom-next

Detailed report: Full report

Checker analysis — click to expand

🤖 CI Checker Analysis (checker-log-analyzer)

PR: FROMLIST: misc: fastrpc: Enable poll mode for specific devices (#598)
Source: https://github.com/qualcomm-linux/kernel-config/actions/runs/26086936510
Target branch: qcom-6.18.y (tag-check is mandatory)

Checker Result Summary
checkpatch 2 warnings in commit 66e91c42
dt-binding-check ⏭️ No changes in Documentation/devicetree/bindings
dtb-check ⏭️ No changes in Devicetree
sparse-check sparse-check.sh passed
check-uapi-headers check-uapi-headers.sh passed
check-patch-compliance Content mismatch + author mismatch
tag-check Commit subject starts with FROMLIST:
qcom-next-check N/A Target is qcom-6.18.y, not qcom-next

❌ checkpatch

Root cause: Commit 66e91c428f74 has two style warnings — a long commit-description line and a misaligned block-comment *.

Failure details:

WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
#8:
appropriate to force all devices to start in poll mode in the fastrpc driver.

WARNING: Block comments should align the * on each line
#94: FILE: drivers/misc/fastrpc.c:1323:
+	/*
+	* Set message context as polled if the call is for a user PD

66e91c428f74002cf0a7b420064fcfdf44c4b7c2 total: 0 errors, 2 warnings, 0 checks, 189 lines checked

Commit 66e91c428f74 ("FROMLIST: misc: fastrpc: Enable poll mode for specific devices") has style problems, please review.

Fix:

  1. COMMIT_LOG_LONG_LINE — Wrap the commit body line at 75 chars:
    appropriate to force all devices to start in poll mode in the
    fastrpc driver.
    
  2. BLOCK_COMMENT_STYLE — Align the * in the block comment at drivers/misc/fastrpc.c:1323:
    /* Before (wrong):
     /*
     * Set message context as polled if the call is for a user PD
     */
    
    /* After (correct):
     /*
      * Set message context as polled if the call is for a user PD
      */
  3. Apply via interactive rebase:
    git rebase -i <base_sha>   # mark commit as 'edit'
    # fix commit message and fastrpc.c
    git add drivers/misc/fastrpc.c
    git commit --amend
    git rebase --continue

Reproduce locally:

./scripts/checkpatch.pl --strict --summary-file --ignore FILE_PATH_CHANGES \
  --git 6964936c9bfc3337aa8ba8a0fb25021d06e5ce04..66e91c428f74002cf0a7b420064fcfdf44c4b7c2

❌ check-patch-compliance

Root cause: The commit in the PR differs from the upstream patch at the linked lore URL, and the commit author does not match the original patch author.

Failure details:

Checking commit: FROMLIST: misc: fastrpc: Enable poll mode for specific devices
Change is different from the one mentioned in Link
Author mismatch:
  Original author: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>
  Commit author : Jianping Li <jianping.li@oss.qualcomm.com>

The Link: tag points to:

https://lore.kernel.org/all/20260424095903.1622565-5-ekansh.gupta@oss.qualcomm.com/

The upstream patch was authored by Ekansh Gupta, but the PR commit is authored by Jianping Li.

Fix — two sub-issues to resolve:

  1. Author mismatch — The commit author must match the original upstream author. Fix with:

    git rebase -i <base_sha>   # mark commit as 'edit'
    git commit --amend --author="Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>"
    git rebase --continue

    If Jianping Li made local adaptations, preserve attribution using Co-developed-by: / Signed-off-by: for both authors.

  2. Content mismatch — The diff in the PR does not match the upstream mbox. Investigate the delta:

    b4 am --single-message -C -l -3 \
      https://lore.kernel.org/all/20260424095903.1622565-5-ekansh.gupta@oss.qualcomm.com/ \
      -o /tmp/out
    diff \
      <(git format-patch -1 66e91c428f74 --stdout | awk '/^diff/,/^--$/' | grep -E '^[+-][^+-]') \
      <(awk '/^diff/,/^--$/' /tmp/out/*.mbx | grep -E '^[+-][^+-]')
    • If the delta is a legitimate backport adaptation (e.g., context differences for qcom-6.18.y), document it in the commit message.
    • If there are extra or missing hunks that should not be there, align the diff with the upstream patch.

Reproduce locally:

b4 am --single-message -C -l -3 \
  https://lore.kernel.org/all/20260424095903.1622565-5-ekansh.gupta@oss.qualcomm.com/ \
  -o /tmp/out

Verdict

2 blockers before merge: fix the checkpatch block-comment style and long commit-description line, then resolve the check-patch-compliance author mismatch and content delta against the upstream lore patch.

Copy link
Copy Markdown

@shashim-quic shashim-quic left a comment

Choose a reason for hiding this comment

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

Intake review

All formal checks pass (CRs-Fixed ✓, FROMLIST ✓, Link: ✓, author/committer domains ✓).

drivers/misc/fastrpc.c — block comment style

The new comment block uses * without a leading space:

+	/*
+	* Set message context as polled if the call is for a user PD
+	* dynamic module and user has enabled poll mode.
+	*/

Kernel coding style requires a space before * in multi-line block comments:

	/*
	 * Set message context as polled if the call is for a user PD
	 * dynamic module and user has enabled poll mode.
	 */

include/uapi/misc/fastrpc.h — IOCTL macro alignment

+#define FASTRPC_IOCTL_SET_OPTION _IOWR('R', 12, struct fastrpc_ioctl_set_option)

The surrounding macros use a tab between the macro name and _IOWR. Please add a tab to align with the block:

#define FASTRPC_IOCTL_SET_OPTION	_IOWR('R', 12, struct fastrpc_ioctl_set_option)

Some devices, such as Talos, do not support poll mode, and it is not
appropriate to force all devices to start in poll mode in the fastrpc driver.
In case poll timeout happens, the call will fallback to normal RPC mode.
Poll mode can be enabled by user by using FASTRPC_IOCTL_SET_OPTION ioctl
request with FASTRPC_POLL_MODE request id.

Link: https://lore.kernel.org/all/20260424095903.1622565-5-ekansh.gupta@oss.qualcomm.com/
Signed-off-by: Jianping Li <jianping.li@oss.qualcomm.com>
@qswat-orbit-external
Copy link
Copy Markdown

Merge Check Failed: CR Not Eligible for Merge

CR 4450320 is not eligible for merge.

The parent software image for kernel.qli.2.0 is not development complete.

Entity: kernel.qli.2.0
CR: 4450320
Reason: CR_CANNOT_MERGE

Please ensure the CR passes both CCT (ComponentChangeTasks) and ICT (Integration Change Tasks) validations.

@qcomlnxci qcomlnxci requested a review from a team May 27, 2026 10:06
@qlijarvis
Copy link
Copy Markdown

PR #598 — validate-patch

PR: #598

Verdict Issues Detailed Report
⚠️ 0 Full report

Final Summary

  1. Lore link present: Yes — https://lore.kernel.org/all/20260424095903.1622565-5-ekansh.gupta@oss.qualcomm.com/
  2. Lore link matches PR commits: Cannot verify — network restricted; no lore fetch possible
  3. Upstream patch status: Cannot verify — network restricted; unable to check lore thread or mainline git trees
  4. PR present in qcom-next: No — qcom-next has older Feb 15 revision (352cb6c8d98d); PR is Apr 24 revision with different content (91 vs 142 insertions, adds device compatibility logic)
Verdict: ⚠️ — click to expand

🔍 Patch Validation

PR: #598 - FROMLIST: misc: fastrpc: Enable poll mode for specific devices
Upstream commit: https://lore.kernel.org/all/20260424095903.1622565-5-ekansh.gupta@oss.qualcomm.com/
Verdict: ⚠️ PARTIAL

Commit Message

Check Status Note
Subject matches upstream ⚠️ Cannot verify - network restricted; format correct for FROMLIST
Body preserves rationale Clear explanation of poll mode device compatibility
Fixes tag present/correct N/A Not a bug fix
Authorship preserved BLOCKING: Original author Ekansh Gupta missing from Signed-off-by chain
Backport note (if applicable) N/A FROMLIST prefix, not a backport

Diff

File Status Notes
drivers/misc/fastrpc.c ⚠️ 91 insertions; cannot verify against lore (network restricted)
include/uapi/misc/fastrpc.h ⚠️ 25 insertions; adds FASTRPC_IOCTL_SET_OPTION + FASTRPC_POLL_MODE

Issues

BLOCKING - Must Fix Before Merge:

  1. Missing original author's Signed-off-by — For FROMLIST: commits, the original lore patch author must appear in the Signed-off-by chain. The message-ID 20260424095903.1622565-5-ekansh.gupta@oss.qualcomm.com indicates the upstream author is Ekansh Gupta, but only Jianping Li's SOB is present.

    Fix: Add before Jianping Li's SOB:

    Signed-off-by: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>
    Signed-off-by: Jianping Li <jianping.li@oss.qualcomm.com>
    

Informational:

  1. Newer upstream revision — qcom-next contains commit 352cb6c8d98d (Feb 15, 2026, lore link 20260215182136.3995111-5) with 142 insertions. This PR links to Apr 24, 2026 revision with 91 insertions, suggesting a v2+ with refined scope (adds poll_mode_supported field and platform exception list fastrpc_poll_supported_machines[]).

  2. Cannot verify diff faithfulness — Network restrictions prevent fetching the Apr 24 lore patch for line-by-line comparison.

  3. Cannot verify upstream status — Cannot check lore thread for ACK/NAK/merge signals.

Verdict

Do not merge until authorship is corrected. The missing original author SOB violates kernel contribution guidelines for FROMLIST commits. Once fixed, the commit structure and message appear sound, but full validation requires network access to lore.kernel.org.

Final Summary

  1. Lore link present: Yes — https://lore.kernel.org/all/20260424095903.1622565-5-ekansh.gupta@oss.qualcomm.com/
  2. Lore link matches PR commits: Cannot verify — network restricted; no lore fetch possible
  3. Upstream patch status: Cannot verify — network restricted; unable to check lore thread or mainline git trees
  4. PR present in qcom-next: No — qcom-next has older Feb 15 revision (352cb6c8d98d); PR is Apr 24 revision with different content (91 vs 142 insertions, adds device compatibility logic)

@qlijarvis
Copy link
Copy Markdown

PR #598 — checker-log-analyzer

PR: #598
Checker run: https://github.com/qualcomm-linux/kernel-config/actions/runs/26504693510

Checker Result Summary
Checker Result Summary
checkpatch 2 warnings: long commit line, block comment alignment
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No DTS changes
sparse-check Passed
check-uapi-headers Passed
check-patch-compliance Content mismatch + author mismatch
tag-check Subject has valid FROMLIST: prefix

Detailed report: Full report

Checker analysis — click to expand

🤖 CI Checker Analysis (checker-log-analyzer)

PR: #598 - FROMLIST: misc: fastrpc: Enable poll mode for specific devices
Source: https://github.com/qualcomm-linux/kernel-config/actions/runs/26504693510

Checker Result Summary
checkpatch 2 warnings: long commit line, block comment alignment
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No DTS changes
sparse-check Passed
check-uapi-headers Passed
check-patch-compliance Content mismatch + author mismatch
tag-check Subject has valid FROMLIST: prefix

❌ checkpatch

Root cause: Commit body line exceeds 75 characters and block comment has misaligned asterisk.

Failure details:

WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
#8: 
appropriate to force all devices to start in poll mode in the fastrpc driver.

WARNING: Block comments should align the * on each line
#96: FILE: drivers/misc/fastrpc.c:1346:
+	 * dynamic module and user has enabled poll mode.
+	*/

Fix:

  1. Long commit line — Wrap the commit body at 75 characters:

    git rebase -i b0d4b962afa7
    # mark commit as 'edit'
    git commit --amend
    # In the editor, wrap line 8:
    # "appropriate to force all devices to start in poll mode in the fastrpc driver."
    # becomes:
    # "appropriate to force all devices to start in poll mode in the"
    # "fastrpc driver."
    git rebase --continue
  2. Block comment alignment — Align the closing */ with the opening /*:

    # Edit drivers/misc/fastrpc.c:1346-1347
    # Change:
    	 * dynamic module and user has enabled poll mode.
    	*/
    # To:
    	 * dynamic module and user has enabled poll mode.
    	 */
    git add drivers/misc/fastrpc.c
    git commit --amend --no-edit

Reproduce locally:

./scripts/checkpatch.pl --strict --ignore FILE_PATH_CHANGES --git b0d4b962afa7..1728bb3cd716

❌ check-patch-compliance

Root cause: The patch content differs from the upstream lore link, and the commit author does not match the original patch author.

Failure details:

Checking commit: FROMLIST: misc: fastrpc: Enable poll mode for specific devices
Change is different from the one mentioned in Link
Author mismatch:
  Original author: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>
  Commit author : Jianping Li <jianping.li@oss.qualcomm.com>

Fix:

  1. Author mismatch — The original patch author is Ekansh Gupta, but the commit is authored by Jianping Li. Fix the author:

    git rebase -i b0d4b962afa7
    # mark commit as 'edit'
    git commit --amend --author="Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>"
    git rebase --continue
  2. Content mismatch — Fetch the upstream patch and compare:

    b4 am --single-message -C -l -3 https://lore.kernel.org/all/20260424095903.1622565-5-ekansh.gupta@oss.qualcomm.com/ -o /tmp/upstream
    git format-patch -1 1728bb3cd716 --stdout > /tmp/pr.patch
    # Compare the diff hunks:
    diff <(awk '/^diff/,/^--$/' /tmp/pr.patch | grep -E '^[+-][^+-]') \
         <(awk '/^diff/,/^--$/' /tmp/upstream/*.mbx | grep -E '^[+-][^+-]')

    Analysis: The PR patch appears to have modifications not present in the upstream version. Common scenarios:

    • Context-only shift (line numbers changed due to base differences) → Not a real mismatch; document in commit message.
    • Legitimate adaptation (e.g., backport adjustments for older kernel) → Add a note in the commit body explaining the changes.
    • Missing/extra hunks → Verify if the changes are intentional. If the PR has additional changes not in upstream, either:
      • Remove the extra changes and match upstream exactly, OR
      • Document the delta in the commit message with a note like:
        [ Jianping: Added X for compatibility with qcom-6.18.y ]
        

Reproduce locally:

b4 am --single-message -C -l -3 https://lore.kernel.org/all/20260424095903.1622565-5-ekansh.gupta@oss.qualcomm.com/

Verdict

2 blockers must be fixed before merge:

  1. checkpatch — Fix commit body line wrapping and block comment alignment (trivial formatting fixes).
  2. check-patch-compliance — Fix author to match upstream (Ekansh Gupta) and resolve content mismatch by either matching upstream exactly or documenting the delta.

The tag-check passes (subject has FROMLIST: prefix as required for qcom-6.18.y branch). All other checkers passed or were skipped appropriately.

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.

4 participants