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 / Engineering Notes / The Origin 3000: From Stock PROM to Sixteen Processorspage 43 of 97

NavigatorHUBris Library
Engineering Notespage 43 of 97

Engineering Notes SN1

The Origin 3000: From Stock PROM to Sixteen Processors

The Origin 3000 family from datasheets to a sixteen-processor Origin 3900 login, through a Fibre Channel disk, a missing clock and a reset alias that hid node zero's pages, then a V-brick that IRIX wanted to be an X-brick and the 1 GHz IP59 node board.

The last bug between us and a sixteen-processor Origin 3900 login was a memory alias that only existed when each node held 2 GiB. Twelve of the sixteen processors could not see node 0’s pages. Before it, bring-up was ordinary, apart from a missing clock.

Every run here is the stock PROM, version 6.210, and IRIX 6.5.30 on our emulated Origin 3000 family. It shows what they did on our model and says nothing about the real bricks.

A machine made of boxes

The Origin 3000 is not a board in a chassis. It is a stack of separate units, called bricks, joined by cables: a C-brick holds processors and memory, an I-brick the base I/O, an R-brick a router, a D-brick disks, and the Onyx 3000 adds graphics bricks. The Origin 3900 packs four node boards and a router into one Cx-brick. We wrote a datasheet for each of twelve brick types before building a model of any, and each machine is a composition of those models, not one hand-built board.

Where no source fixes a value, the datasheet marks it as a model choice. The processor and memory fit of an Onyx 3000 C-brick, the Cx-brick’s router ports and its node board part are all in that category.

The Origin 3200: PROM, network, disk

An Origin 3200 is two C-bricks and an I-brick. The stock PROM found both nodes without help:

8 CPUs on 2 nodes found.

It also netbooted the standalone disk tool over the I-brick’s Ethernet, which then found no disk. The I-brick’s disks are not SCSI. They sit on a QLogic ISP2200 Fibre Channel loop, and the PROM, which drives the card itself before any IRIX exists, rejected our first model of it:

scsi_ram: QL write data failure at 1 word
diag_scsi_mem: /hw/module/001c04/xtalk/15/pci/1: FAILED

A register trace of the PROM’s own accesses found three causes. It waits for a command-pending bit to drop that our card never cleared. It loads the card’s firmware and reads it back with two mailbox commands we did not answer. And it lays out its control block for a 64-bit data phase, while our card did not declare itself a 64-bit adapter. With those fixed the PROM found the loop disk, and fx and the IRIX installer saw it:

Probing Fibre Adapter 0: Found 1 device(s).

The slot wiring that makes the 64-bit phase work is inferred from the PROM’s layout alone [inference].

The clock that wasn’t there

Our first complete install and boot did not work. The installer printed The system is being restarted. and the console went silent. The machine did not reset:

Ready to restart the system.  Restart? { (y)es, (n)o, (sh)ell, (h)elp }: y
Preparing to restart system ...

The system is being restarted.

Booting the installed disk from the PROM menu did not reach a login either. IRIX ran its start-up scripts for about thirty minutes:

WARNING: System time-of-day chip is not advancing.
  CHECK AND RESET THE DATE!
[...]
WARNING: preposterous time in file system
[...]
UX:suattr: ERROR: Sorry
UX:whoami: ERROR: no login associated with uid 0.

The disk was intact: the password file was complete and the installer had unmounted the root cleanly. Booted single-user with the date set by hand, the same disk reached a login in about two minutes. The I/O chip had no time-of-day part in our model, so IRIX started at the epoch. We have not traced which step of the start-up scripts turns that into a failed suattr.

We gave the I-brick the Timekeeper the Origin 300 uses. Three things changed at once: the date was plausible, the start-up scripts finished, and the installer’s restart reset the machine into the PROM:

The system is being restarted.

Reboot started from CPU 1
CPU 0 rebooting

The restart is the part we cannot explain. Run from the same miniroot shell on one build, with and without the Timekeeper, the restart command took under a minute with it and stayed silent for over eight minutes without. The path from a missing clock to a reset that never happens is not one we have established. The Timekeeper itself is an approximation: which part the real I-brick carries is not in a source we hold, so we borrowed the Origin 300’s.

The variants

With a login on the Origin 3200, the rest of the family was a matter of composition, and each stock-PROM and IRIX run was archived:

  • A D-brick on the loop. Three more disks in bays of an sgi-dbrick. The PROM prints Probing Fibre Adapter 0: Found 4 device(s). and IRIX answers 4 FCP targets., listing disk units 1, 3, 4 and 5. Both treat the enclosure’s disks as ordinary loop ports. Published inventories do the same.
  • The Origin 3400. Four C-bricks on one router, 16 processors and 16384 MB. Booted from the Origin 3200’s installed disk, hinv read 16 400 MHZ IP35 Processors.
  • The Onyx 3000. The same two C-bricks and I-brick with a V-brick and its V12. The PROM lists an ODYSSEY Graphics Board in the second C-brick’s module. IRIX reached a login with it fitted, once the V-brick answered on its own system controller and its two PCI heads were in place. Booted from a disk with the VPro software installed, it draws the 4Dwm desktop, and gfxinfo reports the V12 managing a 1280 by 1024 display at 60 Hz. The keyboard and mouse are USB devices on the I-brick, as they are on the real machine.

The IRIX 4Dwm desktop drawn by a VPro V12 in the V-brick of an emulated Onyx 3000: Toolchest, Console icon, desktop icons and the Icon Catalog

  • The Onyx 3400 with InfiniteReality3. Four C-bricks, an I-brick, an N-brick and two G-bricks, with all four graphics pipes cabled and one pipe fitted. IRIX 6.5.30 installs on it and the installed system draws 4Dwm on both channels of its DG5-2. gfxinfo -v lists channel 0 and channel 1, each at 1280 by 1024 and 60 Hz. Started this way, both channels begin at the same origin, so the second head mirrors the first. A stored combination later joins them into one wide desktop, as the two-head release describes. Onyx 3400: Four Pipes in One Machine tells how it took four.

The IRIX 4Dwm desktop on head 0 of an emulated Onyx 3400's InfiniteReality3: an xclock, the Icon Catalog and a shell showing gfxinfo -v with both DG5-2 channels at 1280 by 1024

Each of these still uses the Origin 3200’s processor, cache and memory fit, because no source we hold gives the others’. The Origin 3900 was the first to need new values.

The Onyx 3400 and the shared guard

The first Onyx 3400 install died in its graphics exit commands with a bus error, and the kernel’s error dump blamed the router ports next to each node. The routers were innocent. On a routed machine, each processor reaches its own node’s hub through a view of the network, and every one of those views belonged to the node device. QEMU’s guard against a device re-entering itself is kept per device, so all four processors on a node shared one guard. When one processor sat inside the graphics pipe waiting for a drawing slice, the pipe released the emulator’s global lock. A second processor on the same node then read its own hub’s error registers and was refused. The kernel took that refusal as a hardware fault.

The views only forward an access and hold nothing across it, so they no longer take the guard. On the way we found that credits the pipe returns to a processor on another node had been sent only across the hub’s own cable, which on a routed machine ends at the router. They now follow the route tables. A qtest pins each fix, and both fail without it.

The Origin 3900 and the page nobody could see

The Origin 3900 is four node boards in one Cx-brick, each with four R16000 processors at 700 MHz and 2 GiB. The stock PROM found 16 CPUs on 4 nodes. IRIX started, found the Fibre Channel disk, and then, in the start-up scripts, four programs died:

/etc/rc2.d/S23autoconfig[113]: 82 Memory fault(coredump)
/usr/etc/dhcpcopt[85]: 283 Memory fault(coredump)

No login prompt came in half an hour. An earlier run ended in a kernel fault on CPU 12, a processor of the last node.

It was not the brick or the processor. An Origin 3400, whose machine descriptor we edited locally to 2 GiB per node, failed the same way. The Origin 3900 with R12000 processors did not, and nor did a Cx-brick with 4 GiB per node. The failure followed memory size per node.

The cause is how the PROM’s address range is aliased. A processor’s reset vector sits at a physical address inside node field zero, and the Origin 300 decision our model builds on gives each reader the payload of its own node there, because on a single node field zero and “my node” are the same place. On four nodes they are not. The rule had been applied to every reference, so a processor on node 1, 2 or 3 that read or wrote one of node 0’s pages at an address in that window got its own node’s memory. On 2 GiB nodes IRIX used pages there. A block-transfer copy into node 0’s page was invisible to the twelve processors of the other three nodes, and their processes faulted.

The reset view now splits by what is being referenced. The firmware’s own references, through cache algorithm 3 or the uncached compatibility segment, stay relative to the reader, so every node still fetches its own reset vector. Every other reference is a memory reference, and memory is named by node number: on a node that is not number 0 it takes the node’s normal claim path across the cable and routers to number 0, or is a decode error if node 0 is out of reach.

Our first version cached which node answered. A second look found it stale on a routed machine: on the Origin 3400, writing node 1’s route to number 0 left the reset page still returning node 1’s marker. The final version has no cache. The qtest on a routed topology fails on the first version, and both new qtests fail on the original code. Whether a real Bedrock decodes a coherent reference there as memory is inferred from the memory claims, not measured [inference].

With the split in place, the same disk boots on the Origin 3900:

16 CPUs on 4 nodes found.
[...]
IRIS console login: root
[...]
IRIS 1# hinv -v
16 700 MHZ IP35 Processors
[...]
Main memory size: 8192 Mbytes

All sixteen processors are listed across modules 001c07 to 001c10, and the start-up scripts ran with no fault.

More than one pipe

The shared guard fix made one pipe work; taking the Onyx 3400 to four is the story of Onyx 3400: Four Pipes in One Machine.

The keyboard and mouse

A real Onyx 3000 has no PS/2 ports. Its keyboard and mouse plug into the I-brick’s USB ports, and the model already had that controller. What stopped us was a launcher that offered USB input only on the Origin 300. IRIX numbers input devices when it first sees them: a keyboard and mouse present at power-on get device 0 and reach X, and ones plugged into a running guest stay at -1 and never do. So the devices have to be attached at start. With that, a login at the graphical greeter reached 4Dwm and a click opened a Toolchest menu.

What we read in the shipped binaries

Several questions about the bricks had no public answer: which brick answers which request on the system controller, how each brick names itself, what link speed the firmware expects of it, and what the kernel needs from a brick before it will attach. We read the shipped PROM, IRIX and L1 firmware to settle them. The findings are in the L1 controller datasheet and in each brick’s datasheet, every fact graded as established, inferred, approximated or unknown.

The V-brick that was an X-brick

We had given the Onyx 3000’s V-brick its own identity. Its system controller answered with the letter V, and the stock firmware and IRIX did not agree with us. The kernel named the brick a CGbrick and printed, once for each of its two PCI heads:

WARNING: /hw/module/001c07/CGbrick/xtalk/14/pci: Unknown bricktype: 0x56
WARNING: /hw/module/001c07/CGbrick/xtalk/15/pci: Unknown bricktype: 0x56

The firmware has no V-brick personality to answer with. A controller takes its letter from the names stored on its brick’s boards, and the only V in the firmware belongs to the Onyx 4’s graphics riser. Of the letters we could try, X was the only one that cleared every path the PROM and IRIX check, including the link speed they expect and the brick’s name. The V-brick datasheet grades the conclusion inferred: a V-brick is an X-brick personality carrying V12 cards. That fits the shipped design, a graphics carrier on an XBridge. Whether SGI or its customers ever turned an X-brick into a V-brick is a separate question, and no public source says how.

The V-brick’s controller now answers X, and the brick is named Xbrick. On the same installed disk the stock PROM lists XBRICK Bridge, Module 001c07, the two Unknown bricktype warnings are gone from the console, IRIX reaches a login, /hw/module/001c07 holds an Xbrick node, and hinv still lists Graphics board: V12. The PROM also stopped printing its link-speed warning for the brick; we know that from the change’s test run, not from a console capture.

The same change fixed three smaller things. The C-, I- and N-brick controllers report firmware revision 1.44.0, the version of every image in the 6.5.30 firmware, and the console version command names no image. The I-brick answers the attached-brick request with the requesting C-brick on port 1. The P- and X-brick controllers give their own letters.

The 1 GHz node board

The last IP35-family node board was the IP59, the 1 GHz R16000 successor to the IP53. Every IP53 system now offers it as a separate topology, and so does the Origin 3900, where it is a whole-brick choice: all four node boards are IP59, with no mixing, and origin3900 stays IP53. The IP59 datasheet holds the board record and the processor, and the one value we infer: the configuration words that make the PROM print Speed 333 Mhz Tap 0x15 for the 16 MB cache.

The Origin 3900 with IP59 boots the Origin 3200’s installed disk to a root login. The stock PROM finds the processors and passes its diagnostics:

16 CPUs on 4 nodes found.
[...]
         ALL DIAGS PASSED.
[...]
16 1.0 GHZ IP35 Processors
[...]
       IP59_4CPU Board: barcode EMUN00     part 030-1989-003 rev -C
[...]
  Processor revision: 3.0. Scache: Size 16 MB Speed 333 Mhz  Tap 0x15

The Origin 3900 IP59 build is a decision, not evidence: we offer it because IP59 was an upgrade for the IP53 systems, and nothing in the shipped firmware ties IP59 to a Cx-brick. No Cx-brick capture of any kind exists, IP53 or IP59, so the run shows that the stock firmware and IRIX accept an IP59 Cx-brick, not that the hardware is built this way.

Our Origin 3900 consoles carried a warning the Origin 3200 and 3400 never printed:

hubii_init: WARNING. Found link to I/O module 001i16 set to -112Mhz.  Expected 400Mhz

No link runs at a negative speed. The PROM asks its own node’s system controller for the speed of the link to the I/O brick and compares the first number of the reply with the speed it expects, 0 meaning 400 MHz. Our Cx-brick controller refused that request, and the PROM printed the refusal’s error code as if it were the speed. The Cx-brick now gives the C-brick’s answer, 400 MHz, which is right for the I-brick its controller reaches. The same controller also refused to report a firmware revision, so numastatd logged an I/O error at every IRIX start. It now reports 1.44.0, like the other bricks; that a real Cx-brick runs that version is inferred, as it is for them. Both fixes are on the emulator’s development branch and in no release yet, and the IP59 console quoted above predates them.

What this does not establish

Every value the model had to choose is listed in the brick datasheets and in the Origin 3900’s case there are many: no source gives a Cx-brick’s processors, router ports or node numbering. The PROM’s Error on EEPROM vector read lines on the Origin 3900, which the Origin 3200 does not print, are not diagnosed. The firmware’s IEEE 1394 check fails on every machine because the controller is left out. The graphics pipes draw the 4Dwm desktop, but on the Onyx 3000 3D rendering is untested. What the model establishes is that the stock firmware and IRIX 6.5.30 are satisfied by this construction, not that the hardware is built this way.