docs: S28.12 document vendored smsc9220 known limitations#483
Conversation
Adds the checks gated on main that the doc had drifted from: integration-linux-mbedtls (added earlier) plus the FreeRTOS analyze and lwIP lanes now required after S28.11 — analyze-tidy/iwyu-freertos-plustcp, bdd-freertos-qemu-lwip, build-freertos-target-lwip, and analyze-tidy/iwyu-freertos-lwip. The live set is now 24 checks. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The three CodeRabbit findings in the vendored Arm LAN9118 driver (busy-bit poll in smsc9220_mac_regwrite, TX filler DWORD on word-aligned chunks, smsc9220_check_id returning int into an enum) are real against silicon but inert on QEMU's deterministic MPS2 LAN9118 model. We run only under QEMU and have no real-hardware rig, so a fix would be unverifiable — document rather than patch. Adds netif/smsc9220/KNOWN-LIMITATIONS.md (provenance snapshot + the three defects with locations, correct fixes, and why each is benign on QEMU), softens the 'byte-for-byte verbatim' wording in the README and the driver's .clang-format (our snapshot predates upstream -Wconversion PR #1245), and records the decision in DEVLOG. Closes #479 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
👮 Files not reviewed due to content moderation or server errors (1)
📝 WalkthroughWalkthroughThis PR documents three known hardware defects in the vendored smsc9220/LAN9118 driver that are benign on QEMU but problematic on real silicon. Instead of patching, a KNOWN-LIMITATIONS.md file establishes provenance, describes each defect, and justifies deferred patching pending real hardware testing. Cross-references are added to README and .clang-format comment. DEVLOG records S28.12 closure and upstream reporting plans. CI workflow status checks are expanded. ChangesVendored smsc9220 Driver Documentation and CI Updates
Possibly Related PRs
Estimated Code Review Effort🎯 2 (Simple) | ⏱️ ~10 minutes
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
☀️ Quality Summary 🚦 build-linux-gcc: 100% successful (✔️ 1344 passed) Created by Quality Monitor v1.14.0 (#f3859fd). More details are shown in the GitHub Checks Result. |
Purpose
Closes #479. The S28.09 CodeRabbit review flagged three real defects in the
vendored, Arm-origin SMSC9220 / LAN9118 driver under
Bdd/Targets/FreeRtosLwip/netif/smsc9220/. They are benign on QEMU'sdeterministic MPS2 LAN9118 model (which is why every oracle lane is green) but
would bite real silicon. We run only under QEMU and have no real-hardware rig,
so a fix would be unverifiable on the only axis that matters — an untested change
to hardware-facing code is a liability. This PR takes the document-and-report
path rather than patching.
Change Description
netif/smsc9220/KNOWN-LIMITATIONS.md— provenance (our snapshotpredates upstream's
-Wconversioncleanup, PR #1245; the casts are unneededbecause the TU builds with
-Wno-conversion -Wno-sign-conversion) plus thethree defects with exact locations, the correct fix for each, and why each is
inert on QEMU. Includes an explicit "do not fix without a real-hardware rig"
warning, since QEMU cannot exercise the difference.
driver's
.clang-format— our copy is a known, slightly-stale snapshot, not averbatim mirror of upstream
main.DEVLOG.md, including the verdict that the threedefects cannot contribute to BDD flakiness (deterministic model → no
non-deterministic source) and the choice to report upstream as a single
good-citizen FreeRTOS-forum post (Libraries category) rather than file issues
or an untested PR.
smsc9220_eth_drv.{c,h},smsc9220_emac_config.hunchanged) — this is docs only.Test Evidence
Documentation only; no production or test code changed. No behavioural change,
so no tests added. The QEMU oracle lanes are unaffected (the driver binary is
byte-identical to before this PR).
Areas Affected
Bdd/Targets/FreeRtosLwip/(Tier-3 BDD target) docs only — README,netif/smsc9220/.clang-formatcomment, newnetif/smsc9220/KNOWN-LIMITATIONS.md,and the root
DEVLOG.md. No core/library or platform code touched; no impact onderived projects.
Summary by CodeRabbit