Engineering Notes Origin 200
Origin 200: From a Black Screen to a Usable RAD4 Desktop
How the emulated RAD4 card went from a near-invisible login frame to a desktop with menus, including a wrong diagnosis and a speed-up that measured slower.
The first picture the emulated Origin 200 ever drew was a login window you could not see. It was there: four account icons, a name field, two buttons, the hostname. Every pixel was a few counts above black, and only the blue channel carried anything at all. Within three weeks the same IRIX X server was drawing a desktop with pulldown menus, and a speed-up that had looked certain on paper had been measured, found slower, and thrown away.
This is that road, failures included. Every frame comes from an Origin 200 running IRIX 6.5.30 with a model of the PsiTech RAD4 PCI card in the slot its vendor documents, so each shows what IRIX drew on our model, not what the card does.
A screen that was black for the wrong reason
Before there was anything dim to look at there was nothing, and the first explanation was wrong. The driver wrote to the card’s control register and the write never arrived. The working theory was a malformed address in the driver or the kernel. It was neither. The card’s 8 MiB framebuffer window does not fit in the I/O bridge’s small per-slot window, so IRIX maps it through the node controller’s large-window path instead, and our bridge model had no decode for that range. The accesses landed in unclaimed space. A bridge translated window fixed it, and the research notes were corrected to say the earlier conclusion “was wrong”.
With that in, the X server drew its login screen for the first time.

The first RAD4 frame, 16 September 2026 (the run is stamped 17 September in UTC), emulated Origin 200. Unmodified screendump. The window, four icons and the hostname are all there, a few counts above black.
The blue-only login
Brightened by the capture tool, the same frame shows a complete greeter in blue and nothing else.

The same login screen with its brightness raised by the capture tool, 16 September 2026, emulated Origin 200. The brightening is the tool’s. The model’s own output was the frame above.
The raw framebuffer was read before anyone guessed. Behind five different on-screen elements, every pixel had zero red and zero green, and its blue never rose above 43 out of 255. The top three bytes of each four-byte pixel were hard zero. Only the bottom byte carried a value: 1, 2, 9, 13 and 39 for the five elements.
That looked like a channel-order bug, and it was checked as one. The public specification of the card’s colour converter, and the colour masks compiled into the shipped X server, agreed with what the model already did. Channel order and packing were right. So the datasheet drew the next conclusion, and drew it with confidence: “The defect is therefore upstream of anything this project’s device model or the shipped kernel driver does to that word.” The fault, it said, sat inside the X server’s own pixel construction.
It did not. The same night the datasheet was rewritten to say the symptom “was not inside the shipped X server: it was a second, independent gap in this project’s own Bridge/RGB561 model.”
What the byte was
The X server programs its window into 8-bit indexed colour mode at startup. In that mode a pixel’s
low byte is not a colour. It is a number: a position in a palette the guest loads separately. The
values 1, 2, 9, 13 and 39 were palette indexes, and the model was displaying each one as though it
were the blue component of a true colour. Blue-only, and tiny, is exactly what a small integer
looks like when it is read as the low byte of 0x00RRGGBB.
The palette never arrived because the port that carries it was a stub. The card’s colour converter loads its window-attribute table and its colour table through one multi-cycle register port, and that port in our model discarded every write and returned zero on every read. We implemented the port from the converter’s public architecture specification, and confirmed it two ways: applying a colour table captured from the guest to a raw screendump reproduced correct colours before the fix landed, and after it the login screen rendered correctly with no post-processing.
The pointer had its own wrong turn. Four attempts to move the mouse had no effect, which read as a
driver or model gap. It was the test method: QEMU’s monitor mouse_move sends relative deltas, and
a large corrective jump left an undelivered backlog, so clicks landed nowhere near their targets.
Walking the pointer in small steps landed a click on a real button, and the guest’s mouse driver
had completed its handshake all along.

The login screen in colour, 20 September 2026, emulated Origin 200. The speckled EZsetup icon is how this model drew its dithered image at the time. It is not a claim about the card.
The desktop, and a rule for how to read it
A desktop login followed the same night. The stock guest account ships with a blank password, which the graphical greeter refuses with a “Cannot log in to this account” dialog, so a password had to be set first. The datasheet reads that dialog as the greeter’s own account policy rather than a technical failure, and it turns up again on the next machine.

The desktop after login, 20 September 2026 (the earliest desktop frame in the archive. The datasheet records a desktop login on 16 September), emulated Origin 200.
Reaching a desktop did not finish the job. Drag, minimise and restore, and overlap redraw were checked against expected images and matched pixel for pixel. Menus were a different matter.
Menus that never appeared
Click the Toolchest or a window’s title-bar button and nothing happened. No Motif menu showed, not the window menu and not any Toolchest pulldown.
The X server draws menus through a 4-plane overlay visual, writing into bits 24 to 27 of each pixel and leaving the true-colour bits underneath alone. Every time a menu is posted it also loads the colour converter’s overlay window-attribute table. Our model dropped those writes as an unsupported index and read the top byte of each pixel only as a window ID. A posted menu therefore changed nothing the model displayed, and the window underneath showed through. Our fix stores that table and combines the overlay with the framebuffer the way the colour converter’s specification describes. A non-transparent overlay value replaces the pixel with its colour-table entry, and transparency compares against a chroma key. Taking the menu down restores what was under it.
The first menus that drew were wrong in a smaller way.

A window menu posted over the Icon Catalog, 4 October 2026, emulated Origin 200. The greyed entry at the top is speckled. The other entries are legible.

A zoom of a window menu from the same day, 4 October 2026 (a different run). The speckled first entry is still visible, so this frame was taken before the compatibility rule below was in place or with it off. The archive does not say which.
Motif draws insensitive, or greyed, labels with a tiled fill. That fill copies the tile’s 4-bit pixels into the overlay without shifting them up to bits 24 to 27, where every other overlay path puts them. Under the model’s plain plane mask those pixels fell outside the bits kept, the labels came out transparent, and the window behind showed through as scattered dots.
Our fix treats a stored value that is a bare 4-bit index as that index. It is a compatibility rule for this guest, on by default behind a property, and our commit message says it is not established board behaviour: “the evidence points to a defect in the X server that a real board would likely show too”. It is an approximation, and we list it as one.
The speed-up that measured slower
Writing pixels was slow. Each guest store to the framebuffer took a trap out of translated code, at about 730 ns each by our own figure, and a solid root fill is roughly two million stores, about 1.4 seconds. The obvious cure was to back the framebuffer with plain RAM so stores skip the trap. We landed that on 27 September and our capability record described the root fill as one that “now runs in milliseconds”.
The RAM region only helps when a store writes a whole word under an all-ones plane mask, so the fill
can skip the read-modify-write. We had assumed the real server’s fill would do that. The next day
we measured it, and it never does. It runs under partial write masks,
0x00ffffff and 0xf0000000, so every store still re-trapped into the same handler, and the dirty
bookkeeping around the RAM region added cost. Our revert message says so in its own words:
“The fast path is therefore never engaged, and the extra dirty-region bookkeeping around the RAM
region costs a measured ~10% regression (about 0.92 s per fill before the RAM region, about 1.03 s
after).”
The 730 ns was a cost for trap plus handler, not a floor a RAM region removes. We corrected the documentation that had advertised the speed-up, and the framebuffer went back to the trapped buffer. These are timings from one host. They show the change did not help here and nothing about the card’s own speed.
Repaint, and a refresh daemon we wrote
The RAD4 software offers a buffered and an unbuffered X server. The buffered one draws into a buffer and nothing reaches the
screen until some process asks the driver to refresh the whole display. The vendor’s refresh daemon
does that back to back forever, which on an idle emulated desktop cost 29 to 35 seconds of guest
processor time a minute. The refresh daemon we wrote, origami-rad4d, asks only
while the X server is busy, once more afterward, and every two seconds regardless. Idle use fell to
2 to 5 seconds a minute. Moves, resizes, menus, typing and a screen saver ended on the same screen as
under the stock daemon.
Then the plain unbuffered server, whose rectangle copies go through the card’s DMA engine, was measured against the buffered one with our daemon, side by side on two guests. The median 400-pixel window move took 512 ms against 702, and a 200 by 150 resize took 1037 ms against 1636. The resize result held in 19 of 25 rounds. The move result held in only 14 of 23. Those are single-host figures, and the move number is the weaker of the two.
Limits
- A match with IRIX’s own X server shows that server was satisfied, not that the board draws these pixels. The model began as a one-mode approximation, and one that agrees with one driver release does not generalise to others.
- The timing figures are from one host. A speed claim that failed in a measurement here may look different on other hardware, and one that passed may not survive it.
- A desktop that draws is not a desktop that is complete. We had not tested rubber-band selection when this was written.