Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/spec/r12-resident-seat.md # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / spec / r12-resident-seat.md` 115 lines ยท 6102 bytes Raw Blame History Rendered 1 # R12 resident seat 2 3 Status: qualified on GB10, including seat loss and channel reset under load. 4 Each receipt under `evidence/R12/` names its exact candidate commit. R8, R10, 5 R11 and R13 are not claimed. 6 7 ## What is proved 8 9 One persistent graphics seat on the machine's own chip takes part in the same 10 world as the processor: 11 12 ```text 13 processor changes A 14 -> the seat reaction becomes ready (field-granular dependency on A) 15 -> R5 admission grants the Blackwell budget 16 -> R7 native AIENOS authority validates the seat's capabilities 17 -> the reaction posts a claim naming {A id, generation} and {B id, generation} 18 -> the resident seat (launched once, polling) claims it 19 -> the seat checks both identities against the shared object table 20 -> the qualified 32-bit integer add (IADD3, the M17 vector-add body): 21 B.field0 = A.field0 + A.field1 22 -> the seat writes B's window and posts a checksummed result notice 23 -> the processor accepts: authority again, generations again, the input 24 window still canonical, the output window exactly the sum 25 -> B is published with the same rules as processor work (R4 crumb, 26 worker = RX_SEAT_BLACKWELL) 27 -> the processor reaction waiting on B wakes and writes C 28 ``` 29 30 A, B and C keep one identity space. The seat has no names, generation counter, 31 or authority of its own. The chip finishing is not the commit; publication is. 32 33 ## Failure cases run on the chip 34 35 | Case | Outcome | 36 |---|---| 37 | Same completion delivered twice | consumed, not committed again | 38 | Torn result notice | refused, B's window restored, rejection recorded | 39 | Seat leaves and a new seat starts | objects, generations and history intact; chain runs again | 40 | B's physical window detached while the chip holds the claim | refused; canonical B unchanged | 41 | Output capability revoked after the claim, before publication | refused, B's window restored | 42 | A's generation moves while the chip holds the claim | invalidated, recorded | 43 | A claim naming a retired generation sent straight to the chip | the chip answers with a fault and does not touch B | 44 | Seat killed while it holds a claim (B's window already written, no result) | claim fails once as seat-lost, B's window restored, charge released once, work retried on a new seat and published once | 45 | The dead seat's claim posted again to the new seat | the chip answers with a fault; the processor refuses the old seat generation | 46 | Channel destroyed and rebuilt 8 times under continuous load | every reset caught a claim in flight; each lost claim retried and published at most once; B and C end on the last change | 47 48 ## Seat loss 49 50 A seat can go away without leaving: killed, or its channel reset. The world 51 keeps a **seat generation**. Every claim carries it (the descriptor's 52 `producer_generation`), the seat is launched with it, and the seat refuses any 53 claim of another generation. The processor refuses any result of another 54 generation. 55 56 `rx_resident_seat_lost` is called once the chip no longer writes the image: 57 58 1. Claims the old seat never took and results nobody accepted are discarded. 59 2. The seat generation moves. Object generations do not. 60 3. Every claim the seat still held ends `FAILED` with `RX_ERR_SEAT_LOST`. The 61 output window is restored from the canonical object, the resource charge 62 is released through the normal end of activation, and a crumb records the 63 loss with the claim's cause as parent. 64 4. With retry, that activation is made ready again, caused by the loss crumb. 65 Its new claim carries the new generation. Without retry the loss is final 66 for that activation; the next change runs normally. 67 68 Every claim ends exactly once: `stats.resident_claims` equals 69 `stats.resident_closed` whenever the world is quiet. 70 71 On the chip, `rx_gpu_seat_kill` destroys the running channel group; the image 72 and launch memory stay mapped. `rx_gpu_seat_relaunch` builds a new channel on 73 the same device and memory and launches the seat again on the same image. 74 The heartbeat block carries a pass counter (`RX_SEAT_HB_LIVE`) so a test can 75 see the chip has stopped, and a hold word (`RX_SEAT_HB_HOLD`) that makes the 76 seat keep the claim it has just computed, for fault injection. 77 78 On GB10 with driver 580.173.02 a channel teardown under a running seat takes 79 about four seconds: the driver's polite stop times out (`STOP_CHANNEL`, 80 `NV_ERR_TIMEOUT` in the kernel log), then the channel is removed. No Xid was 81 raised. The seat keeps running during those seconds, which is why the load 82 scenario keeps changing A throughout. 83 84 Not exercised: recovery from a fault the chip raises itself (an MMU fault or 85 Xid), as opposed to a teardown the host starts; and a seat lost before its 86 first heartbeat. 87 88 ## What made the chip see the world 89 90 Four bring-up findings, each observed on GB10: 91 92 1. **Scoreboards.** Variable-latency reads (constant bank, global memory, 93 special registers) finish later than the next instruction issues. The seat 94 rewrites every control word: reads set barrier 0, stores hold barrier 1, and 95 everything waits on both. Without this the seat used ring addresses and 96 counters before they had loaded. 97 2. **The chip's L2.** The image was GPU-cacheable, and the chip kept polling its 98 own L2 copy of the ring tail. It is now allocated with 99 `nvrm_alloc_gpu_uncached` (PHYSICS). 100 3. **Register allowance.** The chip keeps the top two registers of a thread's 101 allocation. A value in R46 of a 48-register launch read back wrong, which 102 silently zeroed the result checksum. Launches now request two registers more 103 than the program uses. 104 4. **Release order.** `MEMBAR.SC.SYS` before the result tail store, so the output 105 window and the whole notice are in memory before the processor can see them. 106 107 The NVIDIA disassembler is no longer called. The seat checks its own opening 108 instructions by opcode. 109 110 ## Host rules 111 112 `make test-r12` runs the same rules with an in-process stand-in in place of the 113 chip, against the native authority. GitHub runs it. It does not claim R12. 114 `make test-r12-silicon` runs on the machine and is the only run that may set 115 `silicon_observed`.