roadmap BUILT

220. This kernel drives no clock or reset controller, and the first real device will need one

Milestone 159 (a real hardware entropy source: the JH7110's TRNG) names this as the most likely reason a first bench boot of its driver fails.

two lines off a serial console. See "The bench settled the premise" below.

Status deliberately did not move on 2026-09-04, and this block's last three sections are that lane's report of why. The shape is that of milestone 218 (every boot of the VisionFive 2 needs a human typing four commands into U-Boot), for work that is written and has never run on the board. Milestone 159 chose the same shape for the same reason on its own first two passes. The driver, its host tests, the absence-path kernel test and the bench procedure all landed; QEMU's riscv64 virt machine has no clock or reset controller of any kind, so no phase of this runs end to end in an emulator. PARTIAL names a phase that does. NOT-STARTED is not right either, and it is less right than it was. It is still the closer of the two words this vocabulary has, and the gap is written out here rather than folded into a token that would overstate it.

In brief. nife has never programmed a clock or a reset line. Every device it has driven came up already running: QEMU's virtio devices, the PL011 and NS16550 consoles, the PLIC. Real SoC peripherals do not, and the JH7110 is the first case in reach.

Linux's own JH7110 TRNG driver takes two clocks and a reset line before it touches a register. nife's driver takes neither, because nothing in this tree can supply them. So the most likely outcome of milestone 159's first bench boot is not a driver bug: it is a register window that reads as nothing because the device is held in reset or its clock is gated.

Why it is minted before it is known to be needed

Milestone 159's lane deliberately did not build this on spec, which was right: a driver written against a datasheet for a device nobody has seen answer is exactly the shape this project's HARDWARE gate exists to defer. What it did instead is make the question answerable in one boot. Its hw entropy line carries a raw (STAT << 32) | ISTAT bring-up diagnostic, and that number separates the two failures a bench session otherwise cannot tell apart:

So this block exists so that a single observation at the bench routes to a milestone rather than to a person's memory of a conversation.

What it would need

A clock and reset generator driver for the JH7110, and a decision this block does not make about where such a thing lives in a capability system. That is the interesting question and it is why this is not simply a small driver:

The bench settled the premise, 2026-09-04

It is a measurement now. Two boots of radon, byte-identical:

hw entropy  : FAILED: JH7110 TRNG at 0x1600c000 (tree says starfive,trng, status disabled):
              report 0x524e475550, bring-up diagnostic 0x0000000000000000,
              draws 0/0 bytes, first-all-zero true, draws-differ false

Transcript: target/board/radon-2026-09-04-trng-bringup.log. The diagnostic is the raw (STAT << 32) | ISTAT, so the whole register file read back as zeros, which is the outcome milestone 159's own table routes here rather than to a defect in that driver.

Two independent signals agree. The device tree marks the node status disabled and the register window reads nothing. Milestone 239 (radon's device tree does not describe the TRNG, so a working driver never runs) deliberately reports status without acting on it. That same tree calls the S7 monitor core okay and gives it an MMU it does not have. Here the tree and the hardware say the same thing, so the agreement is corroboration rather than circularity.

The mechanism that made this attributable was built before the answer was known, which is the part worth keeping: 159's lane declined to write this driver on spec and instead made one boot separate the two candidate failures. It cost a diagnostic word and it saved a bench session.

What was built on 2026-09-04, and what it proves

What CI actually exercises is the absence path, and saying so is the point. QEMU's virt board names no clock controller, so memory::init records no window, nothing is mapped, and nothing is stored. no_clock_window_is_mapped_where_there_is_no_jh7110 pins exactly that, because the dangerous failure is silent in the other direction. jh7110_crg::discover deliberately never fails to produce an address (falling back to the constant both trees agree on), and a caller that took it unconditionally would store to 0x1023_0000 on every board this kernel boots.

Where it lives, and why the kernel holds it

The block left this open as the interesting question. It is answered by reusing DECISIONS §86 (whether an NVMe driver can leave the kernel, and what capability would let it) rather than inventing a second argument. The kernel keeps the admin plane, EL0 gets the data path, and no new system call surface is added. Three things make a clock controller a stronger case for that split than NVMe was:

Follow-on

BUGS

Index row

Linux's JH7110 TRNG driver takes two clocks and a reset line before touching a register; nife has never programmed either. The premise stopped being a prediction on 2026-09-04: radon's TRNG register file read back all zeros on two byte-identical boots, and the vendor tree independently marks the node disabled. A driver was written 2026-09-04 and radon was powered off with no bench session, so the token says what the outcome is rather than what was built. It holds the STG domain's arithmetic, the TRNG's three-step plan resolved identically from mainline Linux and the vendor U-Boot, a kernel-resident controller with §86's argument for why, and a boot-tour line whose before words can refute the whole premise. QEMU's virt has no clock controller, so CI exercises only the absence path. The block carries the bench procedure and what each outcome would mean