Engineering Notes Origin 2000
The I2C STOP That Hung Origin 2000 Cold Boots
An I2C STOP dropped mid-byte left the module bus held and hung some four-node Origin 2000 cold boots at the firmware barrier. The fix is unconfirmed on silicon.
Some cold boots of our four-node Origin 2000 never reached the firmware’s maintenance menu. The
master processor printed waiting for node with nic ... at global barrier and waited forever, or
peer discovery ran out its clock and the PROM stopped with HUB not done yet. It happened on a
fraction of boots, so any single run proved nothing. The cause was one dropped I2C STOP.
A bus nobody released
Each node’s Hub talks to the module controller over an I2C bus, through a Philips PCF8584 bus controller. The module controller publishes a “grant” in turn to each processor; a processor waits for its grant, then uses the shared bus. One wire serves four nodes.
The stock PROM measures an I2C transaction against a single deadline. If the deadline passes while the adapter’s PIN bit still reads inactive, the PROM writes a STOP straight away and gives up, with its own data byte still on the wire. The PCF8584 datasheet’s table gives the STOP operation for a master and says nothing about which byte boundary it applies at.
Our emulated adapter dropped a STOP that arrived mid-byte and logged it as unsupported. The byte then finished, the adapter paused with the clock line held low between bytes, and the transfer never ended. The module controller does not publish a grant while the shared bus is busy, so from that moment every processor on every node timed out waiting. In six traced eight-processor boots, the first such STOP came 7 to 41 seconds after launch and no grant followed it. Each node’s first processor then spent 50 to 240 failed grant waits of up to a second each. A peer that fell far enough behind never set its discovery-done flag within the master’s 120-second peer wait. Five of 30 boots failed that way.
A boot run with -d unimp logged the dropped STOP and ended in the discovery timeout. In a stalled
boot of the barrier kind, node 1’s adapter had a STOP written but still held the bus between bytes of
a read from the module controller, and the other three nodes’ first processors waited for grants that
never came, so they never reached the barrier.
Counting before guessing
To check whether that day’s change to Crossbow port presence was the cause, on 25 September 2026 we alternated cold boots between two QEMU revisions: 6 of 8 reached the menu at one, 4 of 6 at the other. The second was the revision just before the Crossbow change, so the new change was not the cause. One failure there was the barrier stall and the other the discovery timeout, so both signatures predate that day’s Crossbow and topology changes. Two more launches failed in the launcher before the machine started and were not counted.
So the stall was older than the day’s work, and rare enough that only counts could show it.
The fix is a guess, and says so
Real silicon’s answer to a STOP mid-byte is unpublished. The datasheet does not say whether the chip generates the stop at once, after the byte, or ignores it. Our model now holds the request and places the STOP after the byte’s ninth clock, where the chip next waits for its host. This is a compatibility approximation: placing it at once would also end the transfer, and after the byte was chosen because it keeps every byte whole on the wire, so no peer adapter ever sees a byte cut in half, a case the wire model does not represent.
With it, 16 of 16 boots passed discovery and the grant ring ran to the end of every trace. A second change, which also handles a held STOP whose pending START goes back to waiting, passed 24 of 24, none of which held a STOP. Eight clean boots on the combined revision all reached the menu, against 9 of 12 on the earlier revision over the same period.
We needed that second change because of a mistake in the first. A held STOP stayed set when the adapter’s START was queued back behind a peer’s, so the stale STOP fired after an address byte and closed a transfer the host had just opened. It also failed the device’s own migration check. The unit tests write STOP right after a data byte and require the bus to come free and grants to resume, and a second pair queues STARTs behind another adapter to check the withdrawn case. The path where the wire itself refuses a line change has no test.
What it does not establish
Nothing here says a real PCF8584 behaves this way. We have marked the mid-byte behaviour unknown on silicon. It would be settled by writing a data byte and then the STOP command before the chip signals completion, with SDA and SCL on a logic analyser, repeated for a STOP during the START and during the address byte, recording the part marking and date code.
Eight clean boots do not set the remaining failure rate. They are evidence the stall is gone in the case we saw, not that no cold boot will ever fail.
Not every failed boot was traced. The mechanism rests on the boots that were. Five of 30 boots failed this way before the fix, and 9 of 12 reached the menu at the revision before it.