Repository navigation
Conversation
🔨 Build Failure Analysis — PR #2217PR: #2217 Analysis ResultNo compilation errors found. The build failed during the automerge/integration phase, not during compilation.
Merge Conflicts:
VerdictThis PR introduces no compilation errors. The failure is an integration/merge conflict issue, not a code quality or compilation problem. The PR code itself (new driver 📎 Detailed analysis: Full report |
🔨 Build Failure Analysis — PR #2217PR: #2217 VerdictNo compilation errors were introduced by this PR. The build failure occurred during the automerge step when the CI attempted to integrate this PR with other topic branches. The failure is due to merge conflicts in files unrelated to the PR changes (e.g., Root Cause: Automerge conflict during CI integration testing, not a code compilation issue. PR Code Quality: The new driver code ( 📎 Detailed analysis: Full report |
PR #2217 — validate-patchPR: #2217
Final Summary
|
PR #2217 — checker-log-analyzerPR: #2217
Detailed report: Full report
|
Shiraz Hashim (shashim-quic)
left a comment
There was a problem hiding this comment.
net: stmmac: add Shikra ETHQOS thin recovery driver
For DPDK to function after qcom-ethqos is unbound, the PHY reset must be
sequenced and the EMAC clocks enabled. This thin driver performs that
setup.
why in workaround ? what is the formal upstream aligned solution.
Hi Shiraz, Could you please suggest which branch this change should target? |
|
This PR targeted for QLI2.2 “qli-2.2 pull-request freeze" |
|
Dev Completion validation failed CR: 4685512 The change task for this CR could not be moved to Dev Complete because of the error above. Please resolve the issue in Orbit and re-run the failed Orbit check. |
1 similar comment
|
Dev Completion validation failed CR: 4685512 The change task for this CR could not be moved to Dev Complete because of the error above. Please resolve the issue in Orbit and re-run the failed Orbit check. |
30210f2 to
1ebdd2f
Compare
|
Dev Completion validation failed CR: 4685512 The change task for this CR could not be moved to Dev Complete because of the error above. Please resolve the issue in Orbit and re-run the failed Orbit check. |
Komal Bajaj (Komal-Bajaj)
left a comment
There was a problem hiding this comment.
mdegalwa Please add proper tags to commits, also get jira approval for workaround changes
|
Dev Completion validation failed CR: 4685512 The change task for this CR could not be moved to Dev Complete because of the error above. Please resolve the issue in Orbit and re-run the failed Orbit check. |
1ebdd2f to
2796583
Compare
|
Dev Completion validation failed CR: 4685512 The change task for this CR could not be moved to Dev Complete because of the error above. Please resolve the issue in Orbit and re-run the failed Orbit check. |
🔨 Build Failure Analysis — PR #2217PR: #2217
VerdictThe build failure is not caused by this PR. The failure occurred during the automerge phase when integrating multiple topic branches, with a merge conflict in Note: The PR code contains a potential compilation issue with 📎 Detailed analysis: Full report |
🔨 Build Failure Analysis — PR #2217PR: #2217
VerdictThis is not a compilation failure. The build failed during the automerge (topic branch integration) step with a merge conflict in a file unrelated to this PR. The PR introduces no compilation errors. 📎 Detailed analysis: Full report |
PR #2217 — validate-patchPR: #2217
Final Summary
|
PR #2217 — checker-log-analyzerPR: #2217
Detailed report: Full report
|
🔨 Build Failure Analysis — PR #2217PR: #2217
VerdictThis is NOT a compilation failure. The build failed during the automerge phase before compilation could begin. The merge conflict in 📎 Detailed analysis: Full report |
|
Dev Completion validation failed CR: 4685512 The change task for this CR could not be moved to Dev Complete because of the error above. Please resolve the issue in Orbit and re-run the failed Orbit check. |
PR #2217 — validate-patchPR: #2217
Final Summary
|
PR #2217 — checker-log-analyzerPR: #2217
Detailed report: Full report
|
dccdecc to
17a28d7
Compare
Topic branch CI failed — tree reproductionThis branch is not built on its own. CI rebuilds the whole
Rebuild the exact treemkdir 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 d51602be3dd03603c2372513d0ec65f4e81e932e
# 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. Override only this topic with the PR head
cp kernel-config/qcom-next.yaml qcom-next-pr.yaml
# In qcom-next-pr.yaml, under the entry for 'tech/net/eth', set:
# sha: 17a28d751db1dd29d6cc97596ebc85521c5afc3d
# tag: null
# Repeat for every branch named by a 'Depends-on:' line in the PR body.
# 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 \
-n -p | tee ../merge.log
# 6. Merge this PR on top, as CI does
git fetch https://github.com/qualcomm-linux/kernel-topics.git pull/2217/head:pr-2217
git merge pr-2217
# 7. Confirm the tree matches the run
grep '^Merge successful' ../merge.log
git log --oneline -1The run log for the failed stage contains the same Note: automerge and the rerere cache are tracked by branch, not pinned, so a |
🔨 Build Failure Analysis — PR #2217PR: #2217
Verdict0 of 2 errors are introduced by this PR; both are pre-existing integration conflicts. The PR branch ( 📎 Detailed analysis: Full report |
🔨 Build Failure Analysis — PR #2217PR: #2217
Verdict0 of 2 errors are introduced by this PR; both are pre-existing integration conflicts. The build never reached compilation. The failure occurred during the automerge phase when integrating the 📎 Detailed analysis: Full report |
PR #2217 — validate-patchPR: #2217
Final Summary
|
PR #2217 — checker-log-analyzerPR: #2217
Detailed report: Full report
|
|
cannot we add this PR on overlay or workaround branch? |
Initially it was on workaround branch only, later Shiraz suggested to use eth specific branch. |
Please suggest and confirm which one can be used overlay/workaround/eth specific Komal Bajaj (@Komal-Bajaj) /Shiraz Hashim (@shashim-quic). If overlay branch would be better for this, we'll use. |
| { .compatible = "qcom,shikra-ethqos" }, | ||
| { /* sentinel */ } | ||
| }; | ||
| MODULE_DEVICE_TABLE(of, shikra_ethqos_recovery_of_match); |
There was a problem hiding this comment.
Please do not match qcom,shikra-ethqos from this recovery driver. The OF match table and MODULE_DEVICE_TABLE() allow automatic binding and expose the same modalias as dwmac-qcom-ethqos.
Once this is built as a module, the recovery driver could claim the device while qcom-ethqos is deferred, preventing the normal Ethernet interface from appearing.
I guess you can make this override-only by removing the OF match table and MODULE_DEVICE_TABLE() and then using the platform bus driver_override interface for explicit binding instead. This avoids competing with normal qcom-ethqos matching. I am not sure of the commands but it would be something like:
- modprobe shikra-ethqos-recovery
- echo shikra-ethqos-recovery > /sys/bus/platform/devices/${dev}/driver_override
- echo ${dev} > /sys/bus/platform/drivers/qcom-ethqos/unbind
- echo ${dev} > /sys/bus/platform/drivers/shikra-ethqos-recovery/bind
There was a problem hiding this comment.
Thanks, we've incorporated this approach. The recovery driver is now override-only and no longer participates in normal qcom-ethqos matching. It will not bind during boot and is only loaded via modprobe and explicitly bound through driver_override.
This avoids any conflict with the normal Ethernet driver probe path.
For DPDK to function after qcom-ethqos is unbound, the PHY reset must be sequenced and the EMAC clocks enabled. This thin driver performs that setup. Unbinding qcom-ethqos from a qcom,shikra-ethqos device asserts the PHY reset GPIO and disables the MAC clocks. On latest Meta, the PHY regulators also remain down after the recovery driver is bound. These states can prevent the MAC and PHY from being reinitialized, resulting in errors such as: "MDIO device at address 7 is missing" "cannot attach to PHY (-ENODEV)" Add a lightweight platform driver that restores the hardware state needed for the recovery-driver handoff, including the PHY regulator state on latest Meta. During probe(), the driver: - deasserts the optional GCC reset specified by the "resets" property; - enables the required MAC clocks; - pulses the PHY reset GPIO using the PHY node's reset-assert-us and reset-deassert-us properties, defaulting to 10 ms and 50 ms when unspecified. All resources are obtained from device tree, allowing the same driver to support both Shikra EMAC instances. The driver has no OF match table, so it does not bind by compatible and is not autoloaded by the OF modalias. Bind it manually using driver_override. For DPDK handoff, where <dev> is e.g. 5d00000.ethernet: modprobe shikra-ethqos-recovery echo <dev> > /sys/bus/platform/drivers/qcom-ethqos/unbind echo shikra-ethqos-recovery > /sys/bus/platform/devices/<dev>/driver_override echo <dev> > /sys/bus/platform/drivers/shikra-ethqos-recovery/bind echo <dev> > /sys/bus/platform/drivers/shikra-ethqos-recovery/unbind echo vfio-platform > /sys/bus/platform/devices/<dev>/driver_override echo <dev> > /sys/bus/platform/drivers/vfio-platform/bind By default, remove() preserves the hardware state for handoff to vfio-platform and the DPDK STMMAC PMD. Setting cleanup_on_remove=1 asserts reset and disables the clocks on driver removal, powering down the hardware. Typical handoff sequence: qcom-ethqos -> shikra-ethqos-recovery -> vfio-platform -> DPDK PMD Signed-off-by: Mohan Degalwade <mdegalwa@qti.qualcomm.com>
17a28d7 to
a34c9db
Compare
PR #2217 — validate-patchPR: #2217
Final Summary
|
PR #2217 — checker-log-analyzerPR: #2217
Detailed report: Full report
|
Enable CONFIG_SHIKRA_ETHQOS_RECOVERY=m in qcom.config to build the thin ETHQOS recovery driver for the Shikra IQS EVK platform. This config symbol is Shikra-specific and enables the stmmac thin recovery driver required for DPDK use on the Shikra EVK. Depends on the driver patch currently under review: qualcomm-linux#2217 (net: stmmac: add Shikra ETHQOS thin recovery driver) Signed-off-by: Mohan Degalwade <mdegalwa@qti.qualcomm.com>
Mohd Ayaan Anwar (ayaan-anwar)
left a comment
There was a problem hiding this comment.
Approving due to https://jira-dc.qualcomm.com/jira/browse/QLIJIRA-204
Komal Bajaj (@Komal-Bajaj) are your good with the current change? |
For DPDK to function after qcom-ethqos is unbound, the PHY reset must be sequenced and the EMAC clocks enabled. This thin driver performs that setup.
Unbinding qcom-ethqos from a qcom,shikra-ethqos device asserts the PHY reset GPIO and disables the MAC clocks. Subsequent attempts to reinitialize the MAC can then fail with:
"MDIO device at address 7 is missing"
"cannot attach to PHY (-ENODEV)"
Add a lightweight platform driver that restores the hardware state after qcom-ethqos has been unbound.
During probe(), the driver:
All resources are obtained from device tree, allowing the same driver to support both Shikra EMAC instances.
By default, remove() preserves the hardware state for handoff to vfio-platform and the DPDK STMMAC PMD. Setting cleanup_on_remove=1 asserts reset and disables the clocks on driver removal, powering down the hardware.
Typical handoff sequence:
qcom-ethqos -> shikra-ethqos-recovery -> vfio-platform -> DPDK PMD
Jira-exception: https://jira-dc.qualcomm.com/jira/browse/QLIJIRA-204 - Approved.
CRs-fixed: 4685512