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 / Onyx 3400: Four Pipes in One Machinepage 42 of 97

NavigatorHUBris Library
Engineering Notespage 42 of 97

Engineering Notes SN1

Onyx 3400: Four Pipes in One Machine

Fitting four InfiniteReality3 pipes to one Onyx 3400 meant per-slot serials, slot-ordered saved state, and two empty PCI buses that stopped an IRIX assertion.

Our Onyx 3400 had four InfiniteReality3 pipes cabled from the day it was built, and we could fit exactly one of them. When we lifted that limit, the second pipe killed IRIX in a kernel assertion on a processor that had nothing to do with graphics. The fix was two empty PCI buses the real brick may not even present.

Every run here is the stock IP35 PROM 6.210 and IRIX 6.5.30 on our model of an Onyx 3400. It shows what they did on our machine, not what a real Onyx 3400 does.

One pipe was a number, not a rule

Our Onyx 3400 is the brick set from a figure in SGI’s Onyx 3000 graphics guide: four C-bricks on a router, an I-brick, an N-brick and two G-bricks of two pipes each. The I-brick’s second port feeds the first pipe, and each of the N-brick’s three chips feeds one of the others. All four were cabled. Every machine in our catalogue said “at most one pipe”, and the shared code that places a graphics board refused a second. Our model’s error message read:

origin3000: topology 'onyx3400-ir' builds at most 1 graphics pipe, and
gbrick0-pipe0-pipe already holds one

Changing the 1 to a 4 would have built the machine. It would also have built a machine that was wrong in ways nobody would see until much later, so we wrote the rules down first.

A topology’s limit is the smaller of what SGI sold and what we cabled. The graphics guide allows up to eight pipes on an Onyx 3400. Our composition cables four, so it takes four. The Onyx2 rack takes two, its graphics module’s two pipes. Everything else stays at one, either because the product had one or because no source we hold says otherwise. The Octane’s dual-head guide names its slots by letter, and which widget each letter is remains unknown, so it stays at one too.

One pipe per node. SGI’s Onyx2 booklet says a node controls at most one pipe, and the Onyx 3000 guide gives each pipe a C-brick of its own. Our model would not break if two pipes returned graphics credits to one node, since every processor has its own credit counter, so the rule is enforced as a refusal rather than left to luck.

Four pipes, one serial number

The first thing the rules turned up was that every pipe would have been the same board. A pipe tells the system who it is through one-wire serial-number chips, and IRIX reads them. Our pipes took their serials from a fixed pattern, so four pipes would have presented four identical geometry boards, raster managers and display generators. The catalogue did hold four different G-brick serials. They never reached the device.

Now each pipe’s records are numbered from its slot: sixteen serials per slot, starting at the slot’s position in the catalogue times sixteen. The slot comes from the catalogue, not from the order the pipes were given on the command line, so a pipe keeps its identity however it is fitted. A one-pipe machine’s serials did not change.

The order the pipes are built in

The second trap was in saved state. Our pipes are system-bus devices with no device path, so QEMU files each pipe’s saved state under its family name and a number given in the order the pipes are created. That order is command-line order. Save a machine with pipes given in one order, load it on the same build with them in another, and each pipe would quietly take on its neighbour’s state.

Each pipe now writes its slot name into its saved state, and refuses a stream that names another slot. The tool that launches the machine also always writes pipes in catalogue slot order, so the same machine builds its pipes the same way every time.

The third was smaller. A screen capture with no device named takes the first display, which on a machine with several pipes is whichever happened to be created first. Our capture command now takes the first channel of every pipe, one image per slot, when a machine has more than one.

The panic on a processor that never touched graphics

With all of that in place, two pipes went in and IRIX died before a login. The N-brick datasheet records the panic as:

assertion failed cpu 7: board != NULL

Processor 7 is on the second C-brick, the one whose N-brick chip carries the second pipe. With a pipe in the next slot instead, the panic moved to a processor on the third C-brick. A single pipe on the I-brick had always booted.

We compared the board records the stock PROM leaves in memory for each node. The first node had a record for its I-brick, one per PCI bus. The second node had its crossbar and its pipe, and no I/O brick at all. Public Linux SN code makes the matching lookup when it brings up a widget on a crossbar: it searches the node’s board records, then its crossbar peer’s, for an I/O brick, and asserts one exists.

The PROM had recorded no I/O brick for the C-bricks behind the N-brick, and in our model the N-brick’s chips had nothing behind their two PCI ports. We tried the smaller change first: marking the chip’s two PCI links dead stopped the PROM’s bus errors reading them, and still left no record. Giving each chip two empty PCI buses did it. The PROM recorded an N-brick board at each, and IRIX booted to a login with two pipes and then with four, and drew a 4Dwm desktop on each:

Graphics board 0 is "KONAD" graphics.
        Managed (":0.0") 1280x1024 
[...]
Graphics board 3 is "KONAD" graphics.
        Managed (":0.3") 1280x1024 

Those buses are an approximation, and we say so in the N-brick datasheet. SGI’s N-brick overview calls the chip’s two PCI ports “logically disconnected”. Public Linux and OpenBSD headers both define an N-brick board type, so real systems do record one; whether a real chip answers on one port, the other or both is a question a hardware inventory from a real Onyx 3000 with an N-brick would settle. A qtest reads both buses through each C-brick and fails on the catalogue without them.

What this does not establish

  • In the runs quoted here, gfxinfo reported Video Output: 0 pixels, 0 lines, 0.00Hz for channel 0 of every pipe, on one pipe as on two and four, even though each pipe drew its desktop, because our pipe had no fallback display format until setmon loaded a combination. The pipe now starts a fallback, so a probe sees no format only before graphics first initializes after a reset. Once a combination is loaded or stored, it reports 1280 by 1024 at 60 Hz.
  • Which C-brick, N-brick connector and pipe a real system pairs is not documented. A cable trace of the guide’s figure fits our pairing, and the figure draws single-pipe G-bricks where we model two two-pipe ones, so the pairing stays a model choice.
  • Large draws on several pipes share one pool of rendering threads. We have not measured four pipes drawing at once against one.
  • One keyboard and one mouse serve every screen, which we infer matches the hardware from the Octane’s dual-head guide and the Onyx2 booklet. An absolute tablet across several screens is untested.