Skip to content

FROMLIST: phy: qcom: qmp-combo: Fix X1E80100 offsets table to enable PCS_AON clamp control - #2432

Open
tapas-rana2811 wants to merge 1 commit into
qualcomm-linux:tech/bus/usb/allfrom
tapas-rana2811:tapar/cr-4730864-1357-x1e80100-offsets-bus-all
Open

tapas-rana2811 wants to merge 1 commit into
qualcomm-linux:tech/bus/usb/allfrom
tapas-rana2811:tapar/cr-4730864-1357-x1e80100-offsets-bus-all

Conversation

@tapas-rana2811

Copy link
Copy Markdown

x1e80100_usb3dpphy_cfg uses qmp_v6_n4_usb3phy_regs_layout for .regs, which maps QPHY_PCS_CLAMP_ENABLE to QPHY_V6_PCS_AON_CLAMP_ENABLE, expecting the clamp-enable bit in the pcs_aon region. But its .offsets points to qmp_combo_offsets_v5, which has no usb3_pcs_aon member, so qmp->pcs_aon is never mapped. This forces qmp_combo_enable/disable_autonomous_mode() to fall back to pcs_misc and write the AON clamp offset there instead, so the I/O clamp is not correctly controlled during USB autonomous mode.

Add qmp_combo_usb43dp_offsets_v6, identical to qmp_combo_offsets_v5 but with usb3_pcs_aon = 0x0100 set, and point x1e80100_usb3dpphy_cfg offsets at it instead.

CRs-Fixed: 4730864

Link: https://lore.kernel.org/all/20261030105515.1948430-1-tapas.rana@oss.qualcomm.com/

Re-raised from #2263, which closed because its base branch tech/bus/usb/phy was removed/merged. Same change, rebased onto tech/bus/usb/all.

@qcomlnxci

Copy link
Copy Markdown

Topic branch CI failed — tree reproduction

This branch is not built on its own. CI rebuilds the whole qcom-next
tree from qcom-next.yaml, then applies the exact branch-tip SHA overrides
captured below before merging the PR head.

Input Value
Run 46583786519 (attempt 1)
Failed stage(s) build, build_rt
kernel-config 58784a34cca36ecc6bf011e70751817d419cf875 (main)
PR head merged after candidate 7f92f46d6f7b165e851204d04e2ade8cd54a0c2a
Candidate topic/dependency SHAs see table below
PR qualcomm-linux/kernel-topics#2432
automerge sgaud-quic/automerge @ sha_config_yaml
rerere cache qualcomm-linux/kernel-rrcache

Candidate topic overrides

Workflow job(s) Topic branch SHA
build, build_rt tech/bus/usb/all 50118ece31e7b81fe96ff8703e3d8c550dd8aa0d

qcom-next.yaml at kernel-config 58784a34cca3 pins the baseline
and every non-overridden topic to an explicit SHA. The table above captures
the exact topic and dependency overrides used by each build job.

Rebuild the exact tree
mkdir qcom-topic-repro && cd qcom-topic-repro

# 1. Topic config, at the exact commit this run used
git clone https://github.com/qualcomm-linux/kernel-config.git
git -C kernel-config checkout 58784a34cca36ecc6bf011e70751817d419cf875

# 2. Scratch tree; ci-merge resets it to the baseline named in the config
git clone https://github.com/qualcomm-linux/kernel.git

# 3. automerge tooling, same branch CI uses
git clone --branch sha_config_yaml https://github.com/sgaud-quic/automerge.git

# 4. Apply the exact candidate topic overrides from the table above
cp kernel-config/qcom-next.yaml qcom-next-pr.yaml
#    Set each listed topic branch to its recorded SHA and remove any tag field.
#    If build and build_rt differ, use the matching table for that job.

# 5. Reassemble the tree
cd kernel
git config user.email you@example.com
git config user.name "Your Name"
../automerge/ci-merge --yaml-config ../qcom-next-pr.yaml \
  -t head -i qcom-next \
  -c https://github.com/qualcomm-linux/kernel-rrcache | tee ../merge.log

# 6. Merge this PR on top, as CI does
git fetch https://github.com/qualcomm-linux/kernel-topics.git pull/2432/head:pr-2432
git merge pr-2432

# 7. Confirm the tree matches the run
grep '^Merge successful' ../merge.log
git log --oneline -1

The run log for the failed stage contains the same Merge successful lines;
comparing them against local merge.log confirms an identical tree. The
workspace is assembled by .github/actions/sync in
qualcomm-linux/kernel-config at that commit.

Note: automerge and the rerere cache are tracked by branch, not pinned, so a
later change to either can alter conflict resolution.

@qlijarvis

Copy link
Copy Markdown

🔨 Build Failure Analysis — PR #2432

PR: #2432
Build run: https://github.com/qualcomm-linux/kernel-config/actions/runs/46583786519

# Error File:Line PR-introduced? Root Cause
1 Merge conflict drivers/phy/qualcomm/phy-qcom-qmp-combo.c No (integration issue) The PR adds a new qmp_combo_usb43dp_offsets_v6 structure between lines 2400-2416, but the integrated tree already has conflicting changes in the same region. This is a merge conflict with the baseline tree, not a compilation error.

Verdict

This is not a compilation failure. The build failed during the merge phase when attempting to integrate PR #2432 into the automerged qcom-next tree. The conflict occurs in drivers/phy/qualcomm/phy-qcom-qmp-combo.c where the PR inserts a new offset structure. The PR changes themselves are syntactically correct, but conflict with modifications already present in the integration baseline.

📎 Detailed analysis: Full report

@qlijarvis

Copy link
Copy Markdown

🔨 Build Failure Analysis — PR #2432

PR: #2432
Build run: https://github.com/qualcomm-linux/kernel-config/actions/runs/46583786519

# Error File:Line PR-introduced? Root Cause
1 Merge conflict drivers/phy/qualcomm/phy-qcom-qmp-combo.c No Integration tree contains conflicting changes in the same region modified by the PR. The PR cannot be automatically merged into qcom-next.

Verdict

This is not a compilation failure. The build failed during the merge phase before compilation could begin. The PR needs to be rebased on the current integration tree to resolve the merge conflict.

📎 Detailed analysis: Full report

@qlijarvis

Copy link
Copy Markdown

PR #2432 — validate-patch

PR: #2432

Verdict Issues Detailed Report
⚠️ 2 Full report

Final Summary

  1. Lore link present: Yes — https://lore.kernel.org/all/20261030105515.1948430-1-tapas.rana@oss.qualcomm.com/
  2. Lore link matches PR commits: Yes — diff content is identical; line number differences are due to different kernel tree base (expected for FROMLIST); commit message body is faithful with minor improvements
  3. Upstream patch status: ⏳ In review — patch has three Reviewed-by: tags (Konrad Dybcio, Abel Vesa, Manivannan Sadhasivam) but no maintainer "applied" confirmation yet; posted as v2 on 2026-10-30
  4. PR present in qcom-next/topics: Partial - 1/1 commit(s) only have partial integration evidence
Verdict: ⚠️ — click to expand

🔍 Patch Validation

PR: #2432 - FROMLIST: phy: qcom: qmp-combo: Fix X1E80100 offsets table to enable PCS_AON clamp control
Upstream commit: https://lore.kernel.org/all/20261030105515.1948430-1-tapas.rana@oss.qualcomm.com/
Verdict: ⚠️ PARTIAL

Commit Message

Check Status Note
Subject matches upstream ⚠️ PR: "Fix X1E80100 offsets table to enable PCS_AON clamp control" vs Lore: "update offsets table for x1e80100" — PR subject is more descriptive and uses proper capitalization (X1E80100 vs x1e80100), which is an improvement
Body preserves rationale ✅ Core technical explanation preserved; PR version is slightly more detailed and clearer
Fixes tag present/correct N/A No Fixes tag in either version — this is a new feature/fix, not a regression fix
Authorship preserved ✅ From: matches lore author (Tapas Rana tapas.rana@oss.qualcomm.com)
Backport note (if applicable) N/A FROMLIST prefix used correctly — patch posted to mailing list but not yet merged

Diff

File Status Notes
drivers/phy/qualcomm/phy-qcom-qmp-combo.c ✅ Code changes identical; line numbers differ (PR: @@ -2400 / -2661, Lore: @@ -2762 / -3003) due to different kernel tree base — this is expected for FROMLIST patches applied to vendor trees

Issues

  • Missing Reviewed-by tags: The lore thread contains three Reviewed-by: tags from Konrad Dybcio, Abel Vesa, and Manivannan Sadhasivam. These should be added to the PR commit message before merging to preserve upstream review attribution.
  • Subject line differs: PR uses a more descriptive subject ("Fix X1E80100 offsets table to enable PCS_AON clamp control") vs lore ("update offsets table for x1e80100"). The PR version is clearer and follows better commit message style (proper capitalization, describes the fix), but differs from upstream.

Verdict

The patch is functionally correct and faithfully represents the lore upstream code changes. The commit message body is accurate and well-written. However, the PR is missing the Reviewed-by: tags from the upstream review thread, and the subject line has been reworded (improved, but different from upstream).

Recommendation: Add the three Reviewed-by: tags from the lore thread before merging. The subject line change is acceptable as it improves clarity, but note that it differs from what will eventually land upstream.

Final Summary

  1. Lore link present: Yes — https://lore.kernel.org/all/20261030105515.1948430-1-tapas.rana@oss.qualcomm.com/
  2. Lore link matches PR commits: Yes — diff content is identical; line number differences are due to different kernel tree base (expected for FROMLIST); commit message body is faithful with minor improvements
  3. Upstream patch status: ⏳ In review — patch has three Reviewed-by: tags (Konrad Dybcio, Abel Vesa, Manivannan Sadhasivam) but no maintainer "applied" confirmation yet; posted as v2 on 2026-10-30
  4. PR present in qcom-next/topics: Partial — integration_presence_report.md shows "partial - subject or partial tree evidence found, but full change was not verified" in qcom-next, and "missing" in topics; this is expected for a FROMLIST patch that hasn't been merged upstream yet

Deterministic Integration Presence

Integration Presence Report

This report is generated by Jarvis before validate-patch runs.
It is the authoritative source for whether PR changes are already present
in qcom-next or in the kernel topic branches.

Kernel repo: /local/mnt/workspace/sgaud/Qgenie/image_pipeline/kernel
qcom-next ref: 8fffe4778122b8d4fac6dd8396a2de99e05be00f
topics remote: topics -> https://github.com/qualcomm-linux/kernel-topics
topics fetch: fetched

Commit Subject qcom-next topics Final
1/1 [PATCH] FROMLIST: phy: qcom: qmp-combo: Fix X1E80100 offsets table to partial - subject or partial tree evidence found, but full change was not verified missing - no subject, patch-id, or full tree-content match found partial

Final Status

overall_status: PARTIAL
present_commits: 0/1
partial_commits: 1/1
missing_commits: 0/1
topics_checked_for_commits: 1/1
final_summary: PR present in qcom-next/topics: Partial - 1/1 commit(s) only have partial integration evidence

@qlijarvis

Copy link
Copy Markdown

PR #2432 — checker-log-analyzer

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

Checker Result Summary
Checker Result Summary
checkpatch ❌ Merge conflict - unable to run
dt-binding-check ❌ Merge conflict - unable to run
dtb-check ❌ Merge conflict - unable to run
sparse-check ❌ Merge conflict - unable to run
check-uapi-headers ❌ Merge conflict - unable to run
check-patch-compliance ❌ Merge conflict - unable to run
tag-check ✅ Subject has valid FROMLIST: prefix

Detailed report: Full report

Checker analysis — click to expand

🤖 CI Checker Analysis (checker-log-analyzer)

PR: #2432 - FROMLIST: phy: qcom: qmp-combo: Fix X1E80100 offsets table to enable PCS_AON clamp control
Source: https://github.com/qualcomm-linux/kernel-config/actions/runs/46583786568

Checker Result Summary
checkpatch ❌ Merge conflict - unable to run
dt-binding-check ❌ Merge conflict - unable to run
dtb-check ❌ Merge conflict - unable to run
sparse-check ❌ Merge conflict - unable to run
check-uapi-headers ❌ Merge conflict - unable to run
check-patch-compliance ❌ Merge conflict - unable to run
tag-check ✅ Subject has valid FROMLIST: prefix

❌ All Checkers — Merge Conflict

Root cause: The PR cannot be merged cleanly into the integration branch due to a content conflict in drivers/phy/qualcomm/phy-qcom-qmp-combo.c.

Failure details:

Merging topic branch: topic/tech/bus/usb/all
Auto-merging drivers/phy/qualcomm/phy-qcom-qmp-combo.c
CONFLICT (content): Merge conflict in drivers/phy/qualcomm/phy-qcom-qmp-combo.c
Automatic merge failed; fix conflicts and then commit the result.
Merge failed or conflicts detected. Aborting merge.
##[error]Process completed with exit code 3.

Analysis:

The CI workflow attempts to merge PR #2432 into an integration branch that includes:

  1. Baseline: 8fffe4778122b8d4fac6dd8396a2de99e05be00f
  2. Topic branch: topic/tech/bus/usb/all
  3. PR FROMLIST: phy: qcom: qmp-combo: Fix X1E80100 offsets table to enable PCS_AON clamp control #2432 changes

The conflict occurs in drivers/phy/qualcomm/phy-qcom-qmp-combo.c when merging the PR after the topic branch has been applied. This indicates that either:

  • The topic branch topic/tech/bus/usb/all contains overlapping changes to the same region of phy-qcom-qmp-combo.c
  • The baseline has diverged from the PR's base, introducing conflicting changes

What the PR changes:

  • Adds a new qmp_combo_usb43dp_offsets_v6 structure with usb3_pcs_aon = 0x0100
  • Updates x1e80100_usb3dpphy_cfg.offsets to point to the new structure instead of qmp_combo_offsets_v5

Fix:

The PR author needs to rebase the PR on top of the current integration state:

# Fetch the latest topic branch
git fetch origin topic/tech/bus/usb/all

# Rebase the PR branch on top of the topic branch
git rebase origin/topic/tech/bus/usb/all

# Resolve conflicts in drivers/phy/qualcomm/phy-qcom-qmp-combo.c
# The conflict likely involves:
#   - New offset structures added by the topic branch
#   - The qmp_combo_usb43dp_offsets_v6 structure added by this PR
#   - Changes to x1e80100_usb3dpphy_cfg

# After resolving conflicts:
git add drivers/phy/qualcomm/phy-qcom-qmp-combo.c
git rebase --continue

# Force-push the rebased branch
git push --force-with-lease

Reproduce locally:

# Clone the kernel-topics repo
git clone https://github.com/qualcomm-linux/kernel-topics.git
cd kernel-topics

# Fetch the PR
git fetch origin pull/2432/head:pr-2432

# Fetch and checkout the topic branch
git fetch origin topic/tech/bus/usb/all
git checkout topic/tech/bus/usb/all

# Attempt to merge the PR
git merge --no-commit pr-2432

# Examine the conflict
git diff

✅ tag-check

Status: PASS

The commit subject starts with FROMLIST:, which is a valid prefix for commits targeting topic branches (non-qcom-next/qcom-next-staging branches).

Commit subject:

FROMLIST: phy: qcom: qmp-combo: Fix X1E80100 offsets table to enable PCS_AON clamp control

The commit also includes a proper Link: trailer pointing to the upstream lore.kernel.org submission:

Link: https://lore.kernel.org/all/20261030105515.1948430-1-tapas.rana@oss.qualcomm.com/

Verdict

BLOCKER: Merge conflict must be resolved before any checkers can run.

The PR cannot be evaluated for code quality, style, or correctness until the merge conflict in drivers/phy/qualcomm/phy-qcom-qmp-combo.c is resolved. Once the conflict is resolved and the PR is rebased:

  1. Re-trigger the CI workflow to run all checkers
  2. The patch itself appears well-formed with proper subject prefix and upstream link
  3. No other issues can be assessed until the merge succeeds

Recommended action: Rebase PR #2432 on top of topic/tech/bus/usb/all and resolve the merge conflict in drivers/phy/qualcomm/phy-qcom-qmp-combo.c.

…PCS_AON clamp control

x1e80100_usb3dpphy_cfg uses qmp_v6_n4_usb3phy_regs_layout for .regs,
which maps QPHY_PCS_CLAMP_ENABLE to QPHY_V6_PCS_AON_CLAMP_ENABLE,
expecting the clamp-enable bit in the pcs_aon region. But its
.offsets points to qmp_combo_offsets_v5, which has no usb3_pcs_aon
member, so qmp->pcs_aon is never mapped. This forces
qmp_combo_enable/disable_autonomous_mode() to fall back to pcs_misc
and write the AON clamp offset there instead, so the I/O clamp is
not correctly controlled during USB autonomous mode.

Add qmp_combo_usb43dp_offsets_v6, identical to qmp_combo_offsets_v5
but with usb3_pcs_aon = 0x0100 set, and point x1e80100_usb3dpphy_cfg
offsets at it instead.

Link: https://lore.kernel.org/all/20261030105515.1948430-1-tapas.rana@oss.qualcomm.com/
Signed-off-by: Tapas Rana <tapas.rana@oss.qualcomm.com>
@tapas-rana2811
tapas-rana2811 force-pushed the tapar/cr-4730864-1357-x1e80100-offsets-bus-all branch from 7f92f46 to b34cf1c Compare December 1, 2026 06:18
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.

3 participants