Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion FEATURES.md
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,6 @@ mistaken for GUI settings.
| `IRIS_CHD_DIFF_DIR` | Redirect CHD diff sidecars; GUI App Store sets a writable container directory. | [src/chd_disk.rs](src/chd_disk.rs) |
| `IRIS_CRASH_DIAG` | off disables Windows crash handler installation. | [src/crash_diag.rs](src/crash_diag.rs) |
| `IRIS_CRASH_SELFTEST` | Standalone crash diagnostic self-test selector; deliberately crashes. | [src/main.rs](src/main.rs) |
| `IRIS_DISPLAY_VERIFY` | 1 checks the boards' "nothing changed" verdicts: a frame IMPACT or VPro would have left standing is composed anyway and compared with the one on screen; a difference is reported on stderr, with a count every 600 checks. For development; it composes every frame. | [src/display/verify.rs](src/display/verify.rs) |
| `IRIS_ENTRY_PREAMBLE` | 0 turns off jitv2's interrupt check at an externally dispatched entry word (on by default; `j2 entrypre`). | [src/cpu/jitv2/mod.rs](src/cpu/jitv2/mod.rs) |
| `IRIS_GPRCACHE` | Guest registers a JIT v2 function with a loop keeps in host registers, 0 to 31 (`j2 gprcache`; default 6, 10 on AArch64). | [src/cpu/jitv2/codegen.rs](src/cpu/jitv2/codegen.rs) |
| `IRIS_GPRCACHE_EVERYWHERE` | Presence caches registers in functions without a loop too. For test runs: slower to compile, no faster to run. | [src/cpu/jitv2/codegen.rs](src/cpu/jitv2/codegen.rs) |
Expand Down
4 changes: 2 additions & 2 deletions HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ section of [STORAGE.md](STORAGE.md) and the `block_node.rs` module docs: read
them before writing a backend or changing a flush. `src/scsi_monitor.rs` implements the monitor's `scsi` and `cow`
subcommands and the run-time disc changes once, over the bus a controller hands
out through `ScsiTargets::scsi_bus`; chip-specific subcommands (`regs`; the
WD's `wdt`, `defer`) stay with the chip, and `DiscChanger` is
WD's `defer`) stay with the chip, and `DiscChanger` is
implemented once for every `ScsiTargets`. Configuration is shared the same
way: `scsi::attach_from_config` walks the SCSI `[[devices]]` entries for every machine,
each at a slot in the slot list (`scsi0/t1`), and
Expand Down Expand Up @@ -743,7 +743,7 @@ Rules for a board:
double-buffered program costs one compose per swap, not one per retrace.
A draw path that cannot name its planes or box must say "anything"
(`Marks::mark_all`, or the board's plain written flag): a missing mark is
a stale picture. `IRIS_DISPLAY_VERIFY=1` checks the verdicts: frames a
a stale picture. `display verify on` checks the verdicts: frames a
board would have left are composed anyway and compared.
- The board does not present, write screenshots or count idle frames. The
thread shows an unchanged frame again ten times a second for the status
Expand Down
4 changes: 2 additions & 2 deletions clanker/INDEX.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Non-graphics devices: MC/MEMCFG and RAM banks, HPC3, VDMA, EEPROMs and NVRAM, PS
| [ip35-boot-window-memory-is-the-zero-holders.md](devices/ip35-boot-window-memory-is-the-zero-holders.md) | rule | Two-node IP35: memory behind the boot window at node field zero is the zero holder's for every node; keeping it on the reader gave node 1 its own RAM for 4 MiB of node 0 and corrupted IRIX (found by bisecting FC, JIT, graphics, second CPU, then diffing a piped disk region) |
| [hub-second-processor-slice-runs-zeros.md](devices/hub-second-processor-slice-runs-zeros.md) | resolved | IP27: two slices on a Hub node shared their PROM cache-line stack and lost the PROM's pair liveness poll and flag-word handshake under host load (fixed: per-processor cached views, a PI hold bounded by the partner's retired cycles) |
| [ip35-rendezvous-hold-must-stop-the-cpu-at-once.md](devices/ip35-rendezvous-hold-must-stop-the-cpu-at-once.md) | rule | A held CPU must retire nothing more; running out its batch let a Tezro PROM's PI1 pass a barrier alone and start the copied PROM early (measured on a fork's rendezvous) |
| [draw-marks-tell-the-display-what-shows.md](devices/draw-marks-tell-the-display-what-shows.md) | rule | IMPACT and VPro compose only when drawing landed in a buffer the screen shows: a draw marks its store, planes and box after its stores (`display::Marks`); a path that cannot must say "anything"; `IRIS_DISPLAY_VERIFY=1` checks the verdicts; measurements |
| [draw-marks-tell-the-display-what-shows.md](devices/draw-marks-tell-the-display-what-shows.md) | rule | IMPACT and VPro compose only when drawing landed in a buffer the screen shows: a draw marks its store, planes and box after its stores (`display::Marks`); a path that cannot must say "anything"; `display verify on` checks the verdicts; measurements |
| [which-interrupt-is-the-irix-clock-tick.md](devices/which-interrupt-is-the-irix-clock-tick.md) | rule | IRIX's clock tick per machine: the 8254 timers 0+1 on Indy/Indigo2 (100 Hz + 1 kHz fast clock), CP0 Compare everywhere else (100 Hz; Octane mixes in fast clock and timeouts); how the programmed Compare rate is recovered when Count is zeroed each tick |
| [pci-layer-design.md](devices/pci-layer-design.md) | design | The PCI layer: headers change only through the bus, byte orders are per-window values, `pci/` imports no card or SCSI; the stale-run and delivery-order hazards, the SeqCst handshake, and what the first attempt got wrong |
| [onyx2-mediaio-rad1-is-not-the-octanes.md](devices/onyx2-mediaio-rad1-is-not-the-octanes.md) | rule | The Onyx2's MediaIO RAD1 (`Rad1::mediaio()`): revision 0x70 (7.0; 0xc0 panicked the kernel), 0x88/0x8c are not a mute (every other second was silent), its counter runs from reset |
Expand Down Expand Up @@ -279,7 +279,7 @@ GR2 (XZ/Extreme): HQ2 HLE, GL state, FIN handshakes, the RE3 span JIT. Hardware
| [DESIGN.md](gr2/DESIGN.md) | design | GR2 design |
| [video-timing-from-vc1-tables.md](gr2/video-timing-from-vc1-tables.md) | rule | GR2 refresh rate: the VC1 frame and line-state table formats (units of five clocks), two known clocks; PROM-checked only. Also the O2's totals and dot clock |
| [real-xz-comparison.md](gr2/real-xz-comparison.md) | open | Real Indy XZ vs emulated, same suites: fixed colour floor(v*256), quad fan, 4 GE; open EXP2 fog, local spot, X XYBitmap / 4-bit TrueColor / overlay XReadDisplay; glx-window-life kills Xsgi (piglit X restart hook); running on a real machine |
| [vdma-timeout-and-tracing.md](gr2/vdma-timeout-and-tracing.md) | rule | IRIX's VDMA wait is 500 000 DELAY(1) polls (a few hundred ms host); full GR2 tracing slows GEDMA DMA past it (VDMA TIMEOUT, board reset, kernel fault); measure untraced with `mc vdma on`; GIO32 path translates per page |
| [vdma-timeout-and-tracing.md](gr2/vdma-timeout-and-tracing.md) | rule | IRIX's VDMA wait is 500 000 DELAY(1) polls (a few hundred ms host); full GR2 tracing slows GEDMA DMA past it (VDMA TIMEOUT, board reset, kernel fault); measure untraced with `log mc on`; GIO32 path translates per page |
| [bringup.md](gr2/bringup.md) | howto | GR2 bring-up: emulator-side gotchas |
| [cx-save-must-wait-for-hq.md](gr2/cx-save-must-wait-for-hq.md) | rule | Context save: GEDMA reads must wait for the queued 0x1E1 |
| [8-bit-blits-cost-the-sync-not-the-path.md](gr2/8-bit-blits-cost-the-sync-not-the-path.md) | measure | XZ 8-bit frames: XShm and glDrawPixels are the same GEDMA; per-frame sync is the cost; never use glPixelZoom |
Expand Down
2 changes: 1 addition & 1 deletion clanker/cpu/cpu-model-is-runtime-not-compile-time.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ adds a stderr sink and turns on the named trace points. Devlog output requires a
CLI's `env_logger` backend.

Use the monitor instead (`Monitor listening on 127.0.0.1:8888`): `log scsi on`,
`scsi regs`, `scsi wdt`. `scsi regs` in particular is how the WD33C93A constants
`scsi regs`. `scsi regs` in particular is how the WD33C93A constants
in `cpu-tests/harness/scsilog.c` were derived from the PROM's own driver.
2 changes: 1 addition & 1 deletion clanker/devices/draw-marks-tell-the-display-what-shows.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ composed 550 to 600 frames of 606 to show 114 to 148 swaps.

## Checking it

`IRIS_DISPLAY_VERIFY=1` composes every frame a board would have left and
`display verify on` composes every frame a board would have left and
compares (`src/display/verify.rs`). "missed" is a change with no mark for two
frames running; "late" is one the next frame's verdict reported, which is a
draw caught between its stores and its mark.
Expand Down
2 changes: 1 addition & 1 deletion clanker/gr2/vdma-timeout-and-tracing.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ clear; our MC does not abort on that write, so the kernel waits for the
transfer to finish before it reports.

**Rule.** Treat a VDMA timeout seen only under tracing as a tracing
artefact first; reproduce untraced with `mc vdma on`, whose `VDMA end` lines
artefact first; reproduce untraced with `log mc on`, whose `VDMA end` lines
give each transfer's host time. Keep the GIO32 path fast: it translates the
memory side once per page (a per-byte walk took the DMA lock the CPU polls
and read a PTE four times a word, ~0.75 us a word; now ~0.15 us).
Expand Down
2 changes: 1 addition & 1 deletion clanker/perf/window-presents-only-what-changed.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This is safe because every board that answers `Composed::Unchanged` leaves
the screen's framebuffer alone: IMPACT's `Taken::None`, VPro's
`reader::Composed::No`, the O2's `render_direct` with nothing written. A
board that changes the picture and still answers `Unchanged` would show a
stale window; `IRIS_DISPLAY_VERIFY=1` is what catches that.
stale window; `display verify on` is what catches that.

## 2. The mip chain

Expand Down
4 changes: 2 additions & 2 deletions clanker/skills/irix-kernel-debug/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Read `debug.md` for the commands; this skill is the workflow. Use the
- Everything the kernel printed is kept in its console ring: `putbuf` reads
it at any time, including after a hang.
- The IRIS side has its own traces: `log scsi on` (`log scsi1` for the
second controller), `scsi wdt`, `pdma dump on`, `log net on` (most need `developer`). Run them at
second controller), `pdma dump on`, `log net on` (most need `developer`). Run them at
the same time as the guest-side breakpoints so the two timelines can be
matched.

Expand Down Expand Up @@ -114,7 +114,7 @@ on each stage in order, continue, and check the state named:
| Stage | Break on | Check |
|---|---|---|
| controller setup | `wd93_earlyinit`, `wd93edtinit` | reached at all; the controller's registers in `scsi regs` match what the driver just wrote |
| INQUIRY | `wd93_inq` | the command reaches the emulated target (`scsi wdt`), and the driver records success; after `finish`, the result |
| INQUIRY | `wd93_inq` | the command reaches the emulated target (`log scsi on`), and the driver records success; after `finish`, the result |
| command completion | `wd93intr` | interrupts arrive and the driver reads the status the target sent |
| device registration | `scsi_device_update`, `scsi_dev_add` | called for the target; this is what creates its hardware graph entries |
| open | `dkscopen` | the disk open finds the inquiry data recorded earlier |
Expand Down
Loading
Loading