roadmap PARTIAL

816. designware_ethernet: proven DesignWare Ethernet QoS logic, released on its own

(From calef's rulings on pull request #1806; the title and slug are drafts. Milestone 813 (a proven FAT crate released on its own) is the shape this follows.)

calef's rulings, quoted from the maintainer comments on #1806 of 2026-10-07 (UTC):

What exists, checked 2026-10-07 (UTC)

Reuse: the alternatives were surveyed in #1806's other-implementations.md appendix (looked up 2026-10-07), and none is taken, because calef ruled this crate "publish ours". elliott10's dwmac-my 0.2.0 (2026-02, MIT) is the one Rust DWMAC crate on crates.io, with 35 downloads, no reverse dependencies and no proofs found. Linux's stmmac (GPL-2.0) stays the reference for behavior and is read, never copied. No upstream offer goes anywhere, by the ruling in milestone 814 (proven NVMe queue logic).

What is proven

Each row is a property this crate must prove before it publishes. The harness cell reads as in milestone 813's table. Each patch is at crates/designware_ethernet/falsifications/. All 3 proven under stock Kani.

property harness
A delivered frame always fits the buffer and the room proofs::a_delivered_frame_always_fits_the_buffer_and_the_room
Every ring offset is inside the region proofs::every_ring_offset_is_inside_the_region
The PHY link decode (motorcomm_physical_layer_device::link_from_registers, which motorcomm_physical_layer_device::read_link calls) is total and sound: any register answer yields a link or none without a panic, and a link needs the status bit up and the PHY not isolated, autonegotiation complete when it is on, and a speed and duplex both ends advertise (or the forced bits when it is off) proofs::a_link_is_decoded_only_from_what_the_registers_say

The third row answers the question BUGS asks below: the PHY's answers are device input and the link decode is the state a stranger's driver acts on. Its falsification patch drops the isolate check. Not proven: the register reads in motorcomm_physical_layer_device::read_link (the double read of the latched status bit), MDIO sequencing (mdio), the PHY configuration writes, the DMA-coherence probe's verdict (cache_coherence) and controller bring-up.

Release, by #1806's rulings

  1. The name is settled before anything leaves (857's Fork 5 as calef amended it on 2026-10-11 UTC). script/names designware_ethernet reports it ratified, crates.io answers 404 for it (or it is already ours), and partsfoundry/designware_ethernet does not exist yet. script/crate-standalone checks the first.
  2. Make the cut above. cargo tree -p designware_ethernet then lists no nife crate, and the tests read only fixtures inside the package.
  3. In the tree, script/verify proves the harnesses and Cargo.toml says publish = false.
  4. The package meets Fork 3 of milestone 857 (crates released on their own). cargo package --list shows its harnesses and falsification patches.
  5. Ready means proofs passing and the API stable. Milestone 814 (proven NVMe queue logic) says how each is measured; here the soak is step 6. When the soak exits, calef adds it to the lint-checked publish allowlist. The partsfoundry/designware_ethernet repository is created when the crate moves, on the shared CI template (milestone 887), through reusable workflows: Kani through kani-github-action, lint, release. Its release workflow refuses to publish unless the proof job is green. No harness here reads target_arch, so stock Kani proves them. §218 (carry a Kani patch so riscv64 is proved) applies only if a harness comes to need riscv64. Milestone 589 (Kani can prove riscv64 from the hosts we already have) built it.
  6. Soak, as its own repository, until the soak's five end conditions in the runbook hold.
  7. Publish and consume the release by version, by the runbook's publication steps.

Parity

Pure logic, tested on the host against a simulated controller. This lane built it on 2026-10-07 with the pinned nightly for aarch64-unknown-none-softfloat, riscv64imac-unknown-none-elf, x86_64-unknown-none and the host, all exit 0. The release workflow builds the same four. The silicon is riscv64 only; the crate is not.

Standalone

script/crate-standalone designware_ethernet is clean: the manifest and files pass, the crate has no dependency, it builds on 1.88 for the host and the three bare-metal targets, stock Kani proves all six harnesses, and each falsification patch makes its harness fail. script/names reports the crate's name and all 173 of its Name: blocks ratified.

Before the move

The shared template's check job holds a crate repository's names and prose at a ceiling of 0, and script/crate-standalone runs none of those gates. Run over the tree script/crate-move --dry-run stages, at the template commit the moved crate repositories pin, they find:

gate findings what they are
register_names 91 60 uses of address with no bus or mac qualifier, where it means a PHY's management bus address or the station (MAC) address; 20 lengths and sizes with no unit, burst lengths among them; 4 offsets that do not end _REGISTER; 2 constants the gate calls unexpanded; 3 doc comments that state a source spelling with no matching alias
spelled_out 2 the two private 100BASE-TX constants: the gate reads TX as transmit, where it is the standard's name for the twisted-pair layer
prose_acronyms 25 acronyms in doc comments not expanded at their first use

Each is a rename or a doc-comment edit in this tree before the move, with its consumers. A rename of a public name the architect ratified goes to the architect as one table before the move; the maintainer decides the private names, parameters and tests provisionally. The README meets the template's prose caps.

Review before release

Exit

A check proves it. In nife, cargo tree --locked -i designware_ethernet resolves to v0.1.x from crates.io with a checksum in Cargo.lock, crates/designware_ethernet no longer exists, and the tree builds for all three targets. In partsfoundry/designware_ethernet, the run that published 0.1.0 shows the Kani job green ahead of the publish job, and every harness's falsification patch makes its proof fail. The five soak criteria of release step 6 hold before it publishes.

The name check of release step 1 passes first, by Fork 5 of milestone 857. Before the move, script/crate-standalone designware_ethernet exits 0 in nife, and every row of What is proven names a harness that stock Kani proves in the copy and whose falsification patch makes it fail. No crate publishes without the proofs milestone 857 (crates released on their own) requires.

What the crate no longer cites

The crate's source cites nothing of this tree beyond its Name: blocks. This section keeps the links it carried, by milestone 857's provenance rule.

BUGS

Follow-on

Index row

nife's Synopsys DesignWare Ethernet QoS controller logic, three Kani proofs and their falsification patches, cut free of nife's device tree and address map and published on crates.io as designware_ethernet 0.1 from its own nifeos repository, then consumed back by nife.