Skip to content
HUBrisOrigami project journal
Color Schemes
Color Scheme Browser
Desktop SchemesBase · gamma 1.7
Monitor gamma
Chrome type · pointer

/usr/lib/X11/schemes · x_eoe_6530m

IRIS InSight: HUBris Library

HUBris Library / Inside the Machines / Inside the O2page 17 of 97

NavigatorHUBris Library
Inside the Machinespage 17 of 97

Inside the Machines O2

Inside the O2

Architecture of the SGI O2 and O2+: CRIME, MACE and GBE around one unified memory, two-stage level interrupts, R5000/R10000/R12000 modules, and what the emulator approximates.

The Origin 200 hides its machine in the address: the node number, the memory space and the interrupt destination all travel with a request, and the interesting work is done by what the address does not say. The O2 is the opposite design. It is a single-processor workstation with one flat physical address space, one memory controller, and no node, no crossbar and no packet-borne interrupts. Its unusual property is that there is only one memory. The frame buffer, the texture store, the Ethernet and audio descriptor rings and the SCSI data all live in the same main RAM that the CPU runs from, and every agent in the machine reaches it through a single chip.

SGI called this a Unified Memory Architecture. This page describes the machine as it is modelled: which chips own which address windows, how an interrupt reaches the processor, why graphics has no frame buffer of its own, and where the emulator approximates. Statements about hardware come from SGI’s published CRIME, MACE and GBE specifications and the public Linux and NetBSD drivers. Statements about the emulator describe the model and say nothing about what a real O2 does.

The parts, and how they connect

MACE, the I/O ASIC

CRIME

SysAD

DMA

registers 0x16000000

DMA and PIO

MII

serial audio

CPU module

R5000 / R10000 / R12000

32 KiB I and D caches, 1 to 2 MiB L2

CPU interface

interrupt controller

timer, watchdog

memory controller

8 logical banks, ECC

rendering engine

memory transfer engine

VICE port

main memory

64 MB to 1 GB

DIMM pairs, shared by all

GBE

display back end

tile DMA from RAM

PCI host bridge

33 MHz

MAC-110 Ethernet

with DMA rings

serial A and B

16550-compatible

PS/2, RTC, timers,

one-wire identity line

audio interface

boot ROM decode

AIC-7880 SCSI

PCI device 1

AIC-7880 SCSI

PCI device 2

PCI expansion

device 3

ICS1890

PHY

AD1843

audio codec

AT29C040A

512 KiB flash

monitor

A CPU module plugs into the board. CRIME sits between it and everything else. MACE hangs off CRIME as the I/O ASIC, and GBE sits off the side as the display back end. Nothing is a node and nothing is routed: CRIME decodes a 40-bit physical address and the answering chip is determined by the window, as on a conventional workstation. The nearest thing to topology is which chip a given window belongs to.

What the chips do

CRIME is the memory controller, the CPU interface and the renderer in one chip. The documented revision is CRIME 1.5, revision 0.3 of its specification. It decodes processor addresses, owns the 32-bit interrupt controller, runs the memory banks with ECC, hosts the rendering engine and its memory transfer engine, and exposes a port for VICE, the O2’s image processing block. The emulator reports a legacy low ID byte 0xa1, taken from a public 195 MHz R10000 capture, rather than the 0xb1 the 1.5 specification gives. That is a documented model choice, not a measured CRIME revision.

MACE is the I/O ASIC. The documented revision is MACE 2.0. It holds the PCI host bridge, a 10/100 Ethernet MAC, two 16550-compatible serial ports, PS/2 keyboard and mouse, a real-time clock port, three timer-compare latches, an audio interface, the boot ROM decode, and the one-wire line used for board identity. The Ethernet MAC is inside MACE and is not a PCI device, which differs from the Origin 200 where the Ethernet sits in a PCI-attached I/O chip.

GBE is the display back end. It generates video timing, reads pixels from memory by DMA, applies a colour table and gamma, and draws a hardware cursor. It has no frame buffer of its own.

Address space

All windows below are CPU physical addresses, from the CRIME 1.5 address table.

StartSizeOwner and function
0x00000000256 MiBLow alias of the first part of RAM
0x1000000032 MiBFrame buffer aperture
0x1200000032 MiBDepth buffer aperture
0x1400000032 MiBCRIME registers
0x15000000Renderer registers (inside the CRIME register window)
0x1600000016 MiBGBE registers
0x1700000016 MiBVICE registers and RAM
0x1800000032 MiBLow PCI I/O, owned by MACE
0x1a00000032 MiBLow PCI memory, owned by MACE
0x1c0000004 MiBPCI configuration, owned by MACE
0x1f0000004 MiBMACE I/O registers
0x1f4000004 MiBMACE A/V registers
0x1f8000004 MiBMACE Super I/O registers
0x1fc000004 MiBSystem ROM
0x20000000512 MiBHigh alias of the rest of RAM
0x400000001 GiBFull RAM aperture
0x800000001 GiBRAM with ECC checking suppressed
0x1000000004 GiBFull PCI I/O space
0x2000000004 GiBFull PCI memory space

Compared with the Origin 200 this map is plain. There is no node number, no second space beside the address, and no alias that means “my node”. The surprising part is that RAM appears four times. The low, high, full and no-ECC apertures all name the same memory, and the CRIME specification warns that the low, high and full CPU views of a single location cannot be mixed without software cache maintenance. DMA agents pick their own view: GBE reads through the full RAM window, and PCI bus masters go through separate MACE windows that differ in byte order and read-ahead behaviour.

Memory itself comes in DIMM pairs. The hardware guide describes four socket pairs and requires the first two sockets filled and each pair matched. CRIME sees eight logical banks, the front and back sides of those pairs, and eight 128 MiB banks make the documented 1 GiB maximum. The emulator wires eight 128 MiB logical banks through one decoder that every CPU and device view uses. Which physical socket feeds which bank register, and what a bank answers at reset before software configures it, are model policies rather than measured facts, and the model’s reset response is a stated approximation.

Interrupts are wires, in two stages

On an O2 an interrupt is an ordinary level signal, the direct opposite of the Origin 200 arrangement in which a device raises a pin and the Bridge sends a crosstalk write.

level

grouped

by source

edge

IP2 to IP6

device

(UART, RTC, timer, audio)

MACE

peripheral status

CRIME

interrupt status

AND enable

PCI inputs 0-7

GBE

CPU Cause bits

MACE collects its peripherals into three groups and signals CRIME when a group’s level changes: audio, then the real-time clock, keyboard, mouse and timers, then parallel and serial. PCI inputs 0 to 7 reach CRIME separately and a PCI error has its own line. CRIME ANDs status with its enable register, divides the surviving bits into groups of processor interrupt levels, and drives the CPU’s interrupt pins. Two software interrupt bits reach levels IP4 and IP5.

The interesting rule is acknowledgement. Masking an interrupt does not clear anything. A timer compare interrupt is cleared by rewriting the compare register, and an RTC or UART interrupt is cleared by serving the device. Then the group level falls, CRIME sees the change and drops its CPU line. Linux’s O2 handler reads CRIME status first and then the peripheral status for the three grouped sources, which is the two-stage structure the model follows.

The specification and its own tables disagree about routing of the CPU error and memory error causes, bits 20 and 21 in the CRIME status register. The model leaves them ungenerated until the conflict is resolved.

The CPU modules

The O2 has no motherboard CPU. The processor, its primary caches and its secondary cache are a module.

ModuleProcessorCachesEmulator state
030-1276-00xR5000, 200 MHz32 KiB I and D, 1 MiB L2CPU interface merged: identity, reset policy, 48-entry paired TLB, MIPS IV. Not booted
030-1247-001R10000SC, 195 MHz32 KiB I and D, 1 MiB L2The default o2 machine. Installs IRIX 6.5.30 and reaches the desktop
O2+R12000A, 400 MHz32 KiB I and D, 2 MiB L2Variant of o2 built on the parameterised R12000 family model with explicit identity words

The O2 shipped with the R5000, R10000 and R12000 families. The module catalogue numbers come from owner-maintained catalogues, not from SGI documents, and the R12000A identity words are explicit compatibility defaults. Revision-specific stepping is not established. An RM7000A at 350 MHz also shipped in later O2+ systems and is not implemented. Every module runs with the model’s coherent RAM, so the emulator does not model cache or secondary-cache timing. Only CPU-visible state and maintenance instructions are kept.

The ccNUMA machines scale by adding node boards, each with its own Hub, memory and directory. The O2 scales by swapping the module and the DIMMs. There is one CPU, one memory controller and one coherent view. Cache coherence for DMA is the software’s job, which is why the CRIME specification spends words on alias rules rather than directory states.

Graphics

Graphics is the part of the O2 with the clearest consequence of unified memory. There is no separate frame buffer. The renderer draws into main RAM, and GBE scans it out.

writes

tile DMA

CPU or driver

writes to renderer registers

CRIME renderer

0x15000000

tile TLBs

translate surface to RAM

pixel pipeline

blend, depth, stencil, dither

memory transfer engine

clears and copies

main RAM

64 KiB tiles

tile lists in RAM

GBE

video out

CRIME’s renderer registers sit at 0x15000000. They are partitioned into a host interface buffer, three tiled-framebuffer TLB banks, texture and linear page TLBs, pixel pipeline state with command aliases, memory transfer state, and an engine-status bank. The TLBs matter: rendering surfaces are tiled in RAM, and a software driver builds the translation from a surface coordinate to a physical tile.

GBE has registers at 0x16000000. Its device ID reads 0x666 for the documented 1.1 interface. Pixels live in 64 KiB tiles of 128 rows by 512 bytes, covering 512, 256 or 128 pixels per row at 8, 16 or 32 bits per pixel. A tile list in RAM holds the upper 16 bits of each tile’s physical address, and GBE fetches the lists at the start of vertical blanking. A zero entry suppresses DMA for that tile. Besides the normal pixel plane there is an overlay plane, a display-ID map, a 32-entry window ID table, a colour table, a gamma table and a hardware cursor. CPU accesses to GBE registers must be uncached, aligned and 32 bits wide.

Both parts are modelled functionally. The model renders CRIME’s native primitives into the tiled surfaces: flat and shaded triangles, lines, constant-colour rectangles, unit points, depth and stencil, alpha, blending and dithering, and texture sampling. GBE scans the tiles out to a QEMU display with a fixed 20 MHz external clock input that the model chose, not one the hardware is known to have. The cursor uses an architectural approximation that is not a silicon pipeline equation.

Recorded results are narrow. An installed IRIX 6.5.30 reaches the graphical login and desktop, restores a Console window with real mouse input, and moves it. A stock direct GL probe draws a triangle, and a clock application renders and advances. A twenty-case GLperf run completed all twenty cases on an O2+. None of these results establish pixel conformance, full OpenGL, or physical raster fidelity.

Storage, network and ports

The PCI bus is MACE’s, 33 MHz, with three expansion positions and two fixed onboard SCSI masters. The AIC-7880 controllers sit at PCI devices 1 and 2, and the usable expansion position at device 3. Interrupt routing follows the OpenBSD map. The emulator wires both controllers unconditionally and executes the SCSI sequencer, so a disk need not be attached for the controller to exist. The fixed population deliberately rejects extra PCI cards, so the three expansion positions are not offered yet.

Ethernet is the MAC-110 inside MACE at 0x1f280000, with its own DMA rings and a register file that repeats through a 512 KiB block. An MII management interface reaches the PHY, which the model places at MDIO address 8 as an ICS1890-compatible functional part. Whether a real O2 carries that part is not established. The MAC drives network boot and the installer.

The serial ports are 16550-compatible byte registers at a 256-byte stride, with four separate DMA channels in MACE’s ring-based DMA engine. A single ring base register, aligned to 32 KiB, is shared by serial and audio DMA. The model refuses to move it while any of those channels is active, a programming-safety rule the model picked and the hardware is not known to require. PS/2 keyboard and mouse sit in MACE, and the real-time clock is a DS1685-class part at 0x1f3a0000.

Board identity is a one-wire line. The public MACE specification calls the device a “Number-In-a-Can” and gives no part number or image, and public drivers report a DS2502 in some configurations. The emulator’s identity bytes and Ethernet address are therefore caller-supplied inputs, not an invented factory image.

Audio is one AD1843 codec with one stereo capture channel and two stereo playback channels, driven by MACE’s audio DMA. The codec is modelled with a 24.576 MHz reference. The latest recorded IRIX attempt at audio still reports no registered driver and an empty capture, so audio does not work under IRIX on the model.

Firmware and boot

A MIPS processor starts executing at the top of the uncached ROM segment, which on the O2 decodes to the MACE ROM window at 0x1fc00000. The flash is a 512 KiB AT29C040A-compatible part, photographed on two O2 boards, and the model gives it eight read aliases and MACE’s write-enable connection. The emulator does not ship a firmware image. The caller supplies a complete 512 KiB image, its protection state and both boot-block lock states. A stock PROM extracted from IRIX 6.5.30 media starts and runs. No PROM image is committed to the repository.

The memory-bank registers matter at boot. Firmware probes CRIME’s bank controls to find fitted memory, and the model answers with the eight-bank wiring. The model also carries an explicit temporary boot-RAM approximation for the bootstrap’s private window.

Topologies and sizes

The O2 comes in one physical form, a desktop workstation. The emulator builds the same shape every time: one CPU, memory in eight 128 MiB logical banks, one GBE, two onboard SCSI controllers and the ICS1890-compatible PHY. The selected configuration is one 195 MHz R10000SC with 1 GiB. The O2+ variant uses one R12000A at 400 MHz with 1 GiB, which is the documented expansion capacity, not the starting SKU of 512 MB.

What the emulator does not model

Not modelledReason
Physical cache and ECC behaviourThe model uses coherent RAM and cache-data visibility off. CRIME’s ECC storage and error injection are outside the model
Watchdog and cold-reset requestWrites to the CPU interface control register are rejected rather than silently accepted
CPU and memory error interrupt routingThe specification’s table and prose disagree
VICE processorOnly a standalone host, local-memory and DMA backend exists. There is no instruction execution, so image-processing paths do not run
Camera, video capture and video outputMACE video interface is unsupported and observable. The model has no external frontend or camera endpoint
Extra PCI cards and digital audio optionsThe fixed population rejects them, because none is modelled
Parallel portThe frontend is not implemented
Full OpenGL and pixel conformanceLarger points and active point antialiasing remain unsupported. Rendering is functional, not bit-exact
Audio playback and capture under IRIXNo registered driver is reported on the latest attempt
Fitted board identity and revisionThe ID chip contents, MAC address and chip revisions are caller inputs or model choices
Other CPU modulesR5000 has a CPU model with no machine or PROM boot, RM7000A has none
Host-paced timingThe recorded identity and network runs use instruction counting. Host-paced virtual time is a known limitation

The O2’s whole point is that the machine has one memory. The same property that makes it cheap in hardware makes it simple to emulate at the address level and expensive at the edges, because every device that touches memory has its own view of it, and each view has to be right.