P2: a stranger would ask
An appendix to the milestone.
-
A fractional PLL2 reads as the vendor's default.
src/lib.rs:953-957returns 1,188,000,000 Hz unlessDACPDandDSMPDare both 1. Linux computes(parent * frac / 2^24 + parent * fbdiv) / (prediv << postdiv1)fromFRACin bits 23:0 of the word at0x30(verified), a word the crate already reads asphase_locked_loop_2_post_divider_1_word, and returns 0 only for the mixed mode. The recorded VisionFive 2 words are integer mode, so no board hits it today; a board that does gets a card clock and an I2C timing from a wrong parent rate. Fix: compute fractional mode as Linux does, keep the default for the mixed mode, and add the host case. M. Two-way. -
was_already_upreads the last reset only.BringUpReport(src/lib.rs:1272-1297) keeps one reset's words; forGMAC0_ALWAYS_ON_BRING_UP's two resets,was_already_up(:1343-1349) consults the second alone whileall_resets_are_releasedcounts both. No kernel caller askswas_already_upof a two-reset plan today, and pull request #3475'sCounts::already_upfolds every reset, so nothing misreports yet; the type's doc ("if the plan had one, the reset") does not say which reset. Fix: say "the last" in both docs, or add aresets_already_releasedcount. S. Two-way. -
The I2C counts are safe by an undocumented margin, and their floor is below the controller's.
counts(src/lib.rs:1069-1075) programsceil(t * ic_clk). Linux'si2c_dw_scl_hcntandi2c_dw_scl_lcnt(verified) hold that the controller spendsHCNT + 3(or+ 8) andLCNT + 1cycles per phase, so the crate's 198 and 297 at 49.5 MHz run the bus about 2% under 100 kHz. That is the safe direction, and the doc should state it. The floor of 1 is below the minimum programmable values the DesignWare databook gives forIC_SS_SCL_HCNTandIC_SS_SCL_LCNT(6 and 8, from the reviewer's memory, unverified). Only an input clock under about 1.5 MHz reaches it, and there the testa_slow_input_clock_still_produces_legal_countscalls the counts legal. Fix: document the margin; once verified, raise the floors to the databook's and rename the test. S. Two-way. -
name_indexdrops every empty entry, not the trailing one.src/lib.rs:1593-1597splits on NUL and filters empties, so"sys\0\0stg\0"answers 1 forstgwhere a device tree's string-list index is 2. No published tree has an emptyreg-namesentry. Fix: strip one trailing NUL, then split. S. Two-way. -
The two fallback paths disagree about the addresses.
from_nodes(src/lib.rs:660-673) keepscontroller_physical_windowandpower_management_chip_addresswhen the bus names noclocksand noresets, and forgets both when it names only foreign ones (the testsa_bus_naming_no_clocks_or_resets_keeps_the_constant_plan_and_the_addressesanda_bus_naming_only_foreign_specifiers_falls_back_and_forgets_the_addressespin each). The field docs give no reason for the difference, and the direct reset write depends on it. Fix: state the reason atcontroller_physical_window, or keep the addresses on both paths. S. Two-way. -
Doc comments carry fetch dates.
src/lib.rs:26-27,:184,:355. The commit pins in the header make them redundant, and the rule is that documents state the present and git keeps the history. Fix: delete the dates. S. Two-way. -
The README misses what the scaffold's README asks for. It has no "Building and testing" section with the three bare-metal targets and
rustup target add. It gives no figure forcargo kani(measured here: 9 harnesses, 3 minutes 59 seconds, 838 MB peak) and no single-harness command (cargo kani --harness verification::<name> --exact). It has no "Running one falsification patch" example with the-p1form the repository will use, and no badge row. Therelease / gaterefuses until a stranger run is on record, and a stranger needs these. Fix: the sections, with the figures above. S. Two-way. -
Manifest and repository plumbing for the move.
Cargo.tomllacksrepository,documentation, anincludelist and[package.metadata.docs.rs] targets;keywordscould addjh7110andstarfiveandcategoriesno-std::no-alloc, asjh7110_entropy's manifest does. The repository needsCHANGELOG.md,_typos.toml,deny.toml,rustfmt.toml,.kani-version,.github/accepted-wordswithjhand its reason, the caller workflows, and the falsification patches rewritten from-p3to-p1.src/lib.rs:1317names the architect inside a two-lineName:block; the move's strip must take the whole block, whichstandalone.pywill confirm.publish = falsestays until the release ruling. S. Two-way. -
README prose for the template's prose steps.
prose_caps.pyreports one 62-word sentence over the 40-word cap andpassive_voice.py8 passive constructions in 876 words against an allowance of 1. Both run underset -eincheck / standalone; whether each exits nonzero on a finding was not verified. Fix: split the sentence; put seven passives into the active voice. S. Two-way.