Inside the Machines SN0
Inside the Origin 2000 and Onyx2
Architecture of the Origin 2000 and Onyx2: node boards, Hub, Routers, Crossbow and XIO, BaseIO, module controller, Solid Impact and InfiniteReality graphics, and what the emulator approximates.
The Origin 200 is a one- or two-node machine whose crossbar is a jumper. The Origin 2000 and the Onyx2 are the machines that jumper stands in for. They keep the same node-numbered address space, the same Hub and the same Bridge, and add what the small machine leaves out: a real eight-port crossbar between the Hubs and the I/O boards, Router chips that carry memory traffic between nodes, and a module controller that holds the machine’s identity.
The Onyx2 is the same hardware with a graphics pipe. Firmware tells the two apart only by what is fitted, and the emulator builds both on the same node boards and the same stock firmware.
This page assumes the shared concepts of the Origin 200 page: node number in the physical address, the four address spaces, interrupts as writes, and the Bridge as an IOMMU. It covers what changes when there is more than one node and more than one I/O board.
The parts, and how they connect
One module is a midplane with four node slots, two Router slots, two Crossbows and twelve XIO slots. An Origin 2000 deskside is one such module in a tower enclosure, and a rack carries two. The Onyx2 deskside has its own two-node midplane.
Each node board carries one or two R10000-family processors, a Hub, 16 memory slots holding two DIMMs each, eight directory-memory slots, and a BX ASIC. BX sits only in the main-memory data path: the Hub drives memory address and control directly, and talks to directory memory directly. A node takes up to 4 GiB.
The diagram draws two different networks. Dotted lines are the Router network, which joins Hubs to each other and carries memory traffic. Heavy lines are crosstalk, which joins Hubs to I/O. A Hub is on both. Router R1 joins n1 and n2, R2 joins n3 and n4, and the two Routers join each other, so n1 reaches n3 through both.
The Crossbows split the same four Hubs a different way. Crossbow 0 serves n1 and n3 and XIO slots IO1 to IO6. Crossbow 1 serves n2 and n4 and IO7 to IO12. Each Crossbow has eight ports: two face Hubs, six face XIO slots.
Nodes, and the number that is not in the hardware
The address space is the Origin 200’s: one flat 40-bit physical space with the node number in bits 39 to 32, a window of 4 GB per node (the model implements this M mode, and the nine-bit N mode is not built). Reaching another node’s memory, registers or flash is still a different value in the high bits.
What changes is where the number comes from. Node numbers are assigned by the firmware after
it discovers the machine, not by wiring. On a real two-module Origin 2000 the PROM numbered
module 1’s four node slots as nodes 0 to 3 and module 2’s as 4 to 7. On a real two-node Onyx2
deskside the PROM numbers n2 as node 0 and n1 as node 1, which is not slot order, and
what causes that is unknown. A Hub answers to its programmed number, not to a fixed one: until
the firmware writes it, every Hub holds the reset number 0.
The network side is the other half of that discovery. The emulator models a port on each Hub and Router, a cable object per cable, and Routers that forward vector packets by their own programmed tables, so the tables the stock firmware writes during discovery are the ones that route.
Every topology of both products accepts the same 55 per-node sizes from 64 to 4096 MiB, built from eight banks of 64, 128 or 512 MiB. A node’s 4 GiB ceiling is the node board’s, from the Theory of Operations manual. 256 MB banks, which later boards carry, are not built.
Directory memory exists because the machine keeps caches coherent across nodes with a directory at each home Hub rather than a snooping bus. The Hub memory and directory datasheet describes the read-miss protocol, and says plainly that a single-node emulator is not obliged to run it. The register interface and the directory back door that firmware tests are modelled.
The Router fabric
A Router is a six-port ASIC. In a module, R1 port 5 goes to n1, port 4 to n2 and port 6 to R2; R2 port 5 goes to n3, port 4 to n4 and port 6 to R1. Ports 1 to 3 face external cables. There are four kinds of Router board:
- Standard, the board in a full module.
- Null, a passive Hub-to-Hub link for two-node deskside systems, with no ASIC and no external connectors.
- Star, a carrier with no Router ASIC, paired with a Standard Router for three or four node desksides.
- Meta, the cabinet-level Router that joins racks above 64 processors.
Which Routers a module carries depends on how many node boards it has:
| Node boards | Router fit shipped | Router fit modelled |
|---|---|---|
| 1 | none required | none |
| 2 | Null Router (deskside); Standard (rack) | Null (deskside), two Standard (rack) |
| 3 or 4 | Standard plus Star (deskside) | two Standard |
Systems grow by cable. A rack holds two modules. A 32-processor machine is two racks and four modules, with eight cables: port 1 of each Router joins the two modules of a rack, port 3 joins the two racks, and port 2 is unused. The Xpress variant adds four more cables on port 2 that cross between Router numbers. The product reaches 128 node boards and 256 processors in 32 modules and 16 racks.
Module numbers are stored by the module system controller and name devices in the IRIX hardware graph.
The Crossbow and the XIO slots
Where the Origin 200 has a jumper, the Origin 2000 has a switch with real consequences. Widget numbers on a Crossbow are ports, a Hub reaches any widget on its Crossbow by choosing it, and two Hubs on one Crossbow can each reach every widget on it. The map for the eight-processor module comes from SGI’s quick-reference booklet.
| Widget | Crossbow 0 | Crossbow 1 |
|---|---|---|
| 8 | IO1, BaseIO | IO11 |
| 9 | n1 | n4 |
| A | n3 | n2 |
| B | IO4 | IO8 |
| C | IO2 | IO10 |
| D | IO6 | IO12 |
| E | IO5 | IO7 |
| F | IO3 | IO9 |
The booklet’s recommendation is that n1 control IO1, IO3 and IO5, n3 control IO2, IO4 and IO6, n2 control IO7, IO9 and IO11, and n4 control IO8, IO10 and IO12. This is SGI’s static partitioning of I/O: each widget has one owning node, assigned by software and changeable by it. The emulator stores the register that would enforce ownership and does not enforce it, so both Hubs reach every widget.
The deskside Onyx2 has its own midplane and a single Crossbow. Its widget map is different
from the module’s, as the real deskside’s firmware inventory shows: the BaseIO-G at widget
F (15) as io1, a PCI board at widget D (13) as io5, and the graphics pipe at widget 8 as
io4. On the module’s Crossbow 0 widget 8 is io1. A guest reading the same widget number
gets a different board depending on the chassis. Firmware tells the chassis apart by the
hardware fitted.
BaseIO
The BaseIO is the standard I/O board, in IO1. A Bridge connects it to the Crossbow, and a 32-bit PCI bus connects the Bridge to one IOC3 and two SCSI controllers. The IOC3 carries the serial console, a 10/100 Ethernet MAC with an MC34440 PHY, a 32 KiB Timekeeper clock and NVRAM, and a 64K by 18 SSRAM. The Super I/O behind it is a separate part that drives the two serial connectors. The model fits an ISP1040C-compatible SCSI controller and puts the three PCI devices at 0, 1 and 2 as the machine description documents, which does not claim that every physical board carried that package.
The board also holds a 1 MiB flash EPROM behind the Bridge. This is the I/O board’s own PROM, loaded by the node PROM at “Loading BASEIO prom”, and the launcher requires its image. Two one-wire identity parts sit on different buses, one on the Bridge and one on the IOC3, plus a serial-number region in the flash. They are three separate parts.
The Onyx2 uses the BaseIO-G, a BaseIO with a MediaIO daughterboard: a second IOC3, a Mach5 Super I/O, a RAD audio ASIC, parallel and extra serial ports, keyboard and mouse connections, and audio interfaces. The plain BaseIO has no keyboard or mouse port, so an Origin 2000 with a graphics pipe and the plain board gets no desktop, and the launcher fits the BaseIO-G whenever a pipe is added.
An interrupt crosses the Crossbow
The Origin 200’s chain is a Bridge write to a Hub register. The Origin 2000 inserts the Crossbow between them, and the target is whatever the guest programs into the Bridge’s interrupt-destination registers. Two Hubs share each Crossbow, so the target can be either.
In the model the BaseIO’s IOC3 raises Bridge interrupt pin 4, as the machine description wires it, and the delivered write lands in the target Hub’s pending bank exactly as on the Origin 200. The same path carries interrupts from a card in a spare XIO slot: it goes Bridge, Crossbow, Hub, and latches in the node’s interrupt-pending register. Machine tests cover remote interrupts between nodes. The Crossbow reports a packet to a widget number that names nothing, but does not fill the capture registers that would hold that packet’s address, so a driver attributing the error to a widget cannot do it.
Graphics
Graphics hang off XIO, so every pipe is a widget on a Crossbow, with a Bridge or a graphics ASIC at the far end.
Solid Impact. The MGRAS board (the stock firmware lists it as the “MARDIGRAS Graphics
Board”) is an XIO board in a slot such as IO3. A shipped Origin 2000 has no graphics, so an SI
board, like a BaseIO-G on an Origin 2000, is an emulator configuration, fitted in slot
IO3. With the SI disk, IRIX 6.5.30 reaches the login with
Graphics board: SI in hinv.
InfiniteReality. The Onyx2’s pipe is a KONA widget, XIO manufacturer 0x2aa and part 0xc102 as Linux and OpenBSD name it. It reaches the host differently in the two chassis.
In a rack, the pipe is in a separate graphics module, reached over a Crosstown cable from an Xtown board in a compute-module XIO slot to a Ktown board. The Xtown and Ktown are link extenders, so the widget on the XIO link is the geometry board’s XG ASIC. In the deskside, the geometry board sits on the midplane and takes XIO slot 4 directly, with no Ktown. A node controls at most one pipe. The booklet recommends Xtowns at IO2 to IO6 for a one-node system and IO7 for a larger one. The real rack capture has its pipe at IO3, Crossbow 0 widget F, and the model follows it.
The pipe’s one-wire chain tells the two apart. The rack presents the GE16-4 geometry record
and then the Ktown’s. The deskside presents the GE14-4 record and no Ktown, matching the
real deskside’s gfxinfo -v.
The deskside’s pipe presents InfiniteReality2 and the rack’s InfiniteReality3. In the rack’s September boots, IRIX listed its board as InfiniteReality2 in the hardware inventory. Since 24 October the rack’s default pipe has presented InfiniteReality3.
The emulated pipe is an approximation by design. The real geometry engine runs microcode
that is not available, so the model presents the registers, mailbox and windows the stock
PROM, kernel, X server and OpenGL library use, decodes the commands pushed to the pipe, and
renders them in software, with an optional host renderer. Correctness means the stock software
behaves, not that the pixels match a real board. An Onyx2 with KONA graphics runs X and the
atlantis OpenGL demo under IRIX 6.5.30. On the two-node deskside IRIX makes the second node
the pipe’s master, so the pipe must return its flow-control credits to the Hub that sent each
store, or IRIX kills the pipe and starts no X server. In the model each credit goes back to
the Hub that forwarded the store, and that Hub’s map passes it to the processor.
Firmware, controller and boot
Each node boots from its own 1 MiB flash holding the stock IP27 PROM. The launcher writes the
flash and the BaseIO’s Timekeeper NVRAM from the stock images into machine state and passes
no -bios. The firmware discovers the hardware and builds its own configuration records; the
emulator compiles a checked machine description into the QEMU descriptor and rejects any
attempt to hand the firmware a prebuilt configuration graph.
The module system controller is the part with no Origin 200 equivalent at this scale. One controller sits at I2C address 0x08 on one management bus shared by all four Hubs, each through its own PCF8584 interface, with 2048 bytes of configuration NVRAM across addresses 0x50 to 0x57. It holds the module number, a validity marker and a password. The firmware reads it during discovery. The emulator wires its reset, NMI and power outputs to the module and will not realize the device unless they are connected, so a command can never acknowledge an action nothing performs. A grant scheduler publishes eight address-only processor grants on the shared wire. The physical EEPROM count behind the logical space is not established.
The results are the evidence. The stock PROM on the four-node rack discovers four Hubs and
two Routers, reaches ALL DIAGS PASSED, and IRIX 6.5.30 boots to a login with eight
processors. Cold starts of that module reached an IRIX console login on 29 of 30 boots,
29 of them with all eight processors. Every chassis and node count in
the next section passes PROM diagnostics.
Topologies and sizes
QEMU’s nodes= property fits one node board up to the chassis’s maximum, in SGI’s fill
order. The count decides the Routers and which XIO slots are usable.
| Chassis | Product | Node boards | Routers | Graphics |
|---|---|---|---|---|
origin2000-rack | Origin 2000 | 1 to 4 | none, then two Standard | none; boards fitted by name |
origin2000-deskside | Origin 2000 | 1 to 4 | none, Null, then two Standard | none; boards fitted by name |
onyx2-rack | Onyx2 | 1 to 4 | none, then two Standard | one or two InfiniteReality pipes, at IO3 and, with two node boards, IO7 |
onyx2-deskside | Onyx2 | 1 to 2 | none, then Null | one pipe at widget 8 |
A node board fitted at launch in a slot that its count cannot use is refused, with the node board it needs named. An absent node board has no Hub, processors, flash or controller interface, and its Crossbow port reads as empty. Add-in boards are named by IRIX slot, and the board’s QOM name is that slot.
What the emulator does not model
| Not modelled | Why, and what is known |
|---|---|
| Star Router, so the three- and four-node desksides use two Standard Routers | The stock PROM’s discovery never settles on the Star wiring in the model. |
| Routing between modules, 32 processors and above | Within one module, Routers forward by their programmed tables. Cabled multi-module graphs are not built, and the physical maps above 128 processors, including the MetaRouter, are not established. |
| Router warm reset propagation | The hardware reset scope is unresolved. |
| Crossbow error capture and time-outs | The illegal-destination capture registers and the request and source time-outs are not raised, for want of a modelled cause. |
| Enforcement of widget ownership | The register is stored, not enforced, and what a Hub answers to a denied request is not established. |
| Hub link-layer reset state | The model has no link-layer buffers to reset, and the field that would show renegotiation cannot be set without inventing a value. |
| N-mode addressing and 256 MB banks | Neither guest the project targets selects them. |
| InfiniteReality microcode and pixel exactness | The microcode is not available. Unsupported command encodings are refused observably, and a convolved readback is refused because how the pipe returns it is unknown. |
| Other graphics board sets | Mixed InfiniteReality generations are unknown from the published inventories. |
| What answers at one deskside module-bus address | The two-node deskside PROM prints Addressed slave not responding twice. What the midplane carries there is unknown, so the model does not invent a part. |
| Physical test coverage | Neither of the project’s physical machines is an Origin 2000 or Onyx2. Everything above is a run on the emulator, which shows what the model does, not what hardware does. |