omega-gpu-driver
aien-dev/omega-gpu-driver
Brought by drakestapleton
omega-gpu-driver / tests / dispatch_cases.txt
| 1 | # tests/dispatch_cases.txt: test cases for tests/dispatch_diff.sh |
| 2 | # Fields: name busy budget core corefail perms gen_off tok_off bstate pkt_trunc mode nwords end m w0 .. w(m-1) |
| 3 | # Opcodes: 0 WRITE a v, 1 MODIFY a mask v, 2 POLL a mask v tmo err, 3 DELAY us, 4 STORE a idx, 5..8 core |
| 4 | # Registers: 8653504 SEC2 EMEMC (plain), 8653824 SEC2 QUEUE_HEAD (busy), 1114356 GSP HWCFG2 (read-only) |
| 5 | |
| 6 | # 1. Valid dispatch cases (perms=15 = all core allowed, gen_off=0, tok_off=0, bstate=11, pkt_trunc=0, mode=0) |
| 7 | valid-empty 0 4 0 0 15 0 0 11 0 0 4 0 0 |
| 8 | valid-write 0 4 0 0 15 0 0 11 0 0 4 3 3 0 8653504 2748 |
| 9 | valid-modify 0 4 0 0 15 0 0 11 0 0 8 7 7 0 8653504 255 1 8653504 15 160 |
| 10 | valid-poll 0 4 0 0 15 0 0 11 0 0 10 9 9 0 8653504 4615 2 8653504 255 7 0 0 |
| 11 | valid-delay 0 4 0 0 15 0 0 11 0 0 3 2 2 3 50 |
| 12 | valid-store 0 4 0 0 15 0 0 11 0 0 7 6 6 0 8653504 4660 4 8653504 3 |
| 13 | valid-allcore 0 4 1 0 15 0 0 11 0 0 5 4 4 5 6 7 8 |
| 14 | valid-mixed 0 4 1 0 15 0 0 11 0 0 20 19 19 0 8653504 255 1 8653504 15 160 3 5 4 8653504 2 5 2 8653504 255 240 0 0 |
| 15 | |
| 16 | # 2. Malformed late opcode with ZERO side effects (full prevalidation proof) |
| 17 | late-unkop 0 4 1 0 15 0 0 11 0 0 8 7 7 0 8653504 100 4 8653504 1 99 |
| 18 | late-badstore 0 4 1 0 15 0 0 11 0 0 7 6 6 0 8653504 100 4 8653504 8 |
| 19 | late-overrun 0 4 1 0 15 0 0 11 0 0 6 5 5 0 8653504 100 1 8653504 |
| 20 | late-corenoc 0 4 0 0 15 0 0 11 0 0 8 7 7 0 8653504 100 4 8653504 1 5 |
| 21 | late-noperm 0 4 1 0 7 0 0 11 0 0 8 7 7 0 8653504 100 4 8653504 1 8 |
| 22 | |
| 23 | # 3. Token / generation stale or invalid bstate (zero side effects, no quarantine) |
| 24 | stale-gen 0 4 0 0 15 1 0 11 0 0 4 3 3 0 8653504 2748 |
| 25 | stale-tok 0 4 0 0 15 0 1 11 0 0 4 3 3 0 8653504 2748 |
| 26 | stale-both 0 4 0 0 15 1 1 11 0 0 4 3 3 0 8653504 2748 |
| 27 | bad-bstate 0 4 0 0 15 0 0 9 0 0 4 3 3 0 8653504 2748 |
| 28 | |
| 29 | # 4. Poll failure and poll budget |
| 30 | poll-fail 4 2 0 0 15 0 0 11 0 0 10 9 9 0 8653504 100 2 8653824 4294967295 16 0 0 |
| 31 | poll-budget-exceed 0 999999 0 0 15 0 0 11 0 0 4 3 3 0 8653504 2748 |
| 32 | |
| 33 | # 5. Core opcode matrix: 4 opcodes (5..8) x (no callback, no permission, fail, ok) |
| 34 | core5-nocall 0 4 0 0 15 0 0 11 0 0 2 1 1 5 |
| 35 | core5-noperm 0 4 1 0 14 0 0 11 0 0 2 1 1 5 |
| 36 | core5-fail 0 4 1 5 15 0 0 11 0 0 2 1 1 5 |
| 37 | core5-ok 0 4 1 0 15 0 0 11 0 0 2 1 1 5 |
| 38 | |
| 39 | core6-nocall 0 4 0 0 15 0 0 11 0 0 2 1 1 6 |
| 40 | core6-noperm 0 4 1 0 13 0 0 11 0 0 2 1 1 6 |
| 41 | core6-fail 0 4 1 6 15 0 0 11 0 0 2 1 1 6 |
| 42 | core6-ok 0 4 1 0 15 0 0 11 0 0 2 1 1 6 |
| 43 | |
| 44 | core7-nocall 0 4 0 0 15 0 0 11 0 0 2 1 1 7 |
| 45 | core7-noperm 0 4 1 0 11 0 0 11 0 0 2 1 1 7 |
| 46 | core7-fail 0 4 1 7 15 0 0 11 0 0 2 1 1 7 |
| 47 | core7-ok 0 4 1 0 15 0 0 11 0 0 2 1 1 7 |
| 48 | |
| 49 | core8-nocall 0 4 0 0 15 0 0 11 0 0 2 1 1 8 |
| 50 | core8-noperm 0 4 1 0 7 0 0 11 0 0 2 1 1 8 |
| 51 | core8-fail 0 4 1 8 15 0 0 11 0 0 2 1 1 8 |
| 52 | core8-ok 0 4 1 0 15 0 0 11 0 0 2 1 1 8 |
| 53 | |
| 54 | # 6. Non-sim mode: whole dispatch refuses without typed MMIO span, including register-only streams. |
| 55 | core-nonsim 0 4 1 0 15 0 0 11 0 1 5 4 4 0 8653504 100 5 |
| 56 | # A valid write precedes a misaligned register write: neither may reach MMIO. |
| 57 | late-invalidreg 0 4 1 0 15 0 0 11 0 1 7 6 6 0 8653504 100 0 1 7 |
| 58 | |
| 59 | # 7. Packet shape, capacity, and index bounds |
| 60 | shape-trunc 0 4 0 0 15 0 0 11 1 0 4 3 3 0 8653504 2748 |
| 61 | cap-zero 0 4 0 0 15 0 0 11 0 0 0 0 0 |
| 62 | cap-over 0 4 0 0 15 0 0 11 0 0 16385 0 0 |
| 63 | idx-over 0 4 0 0 15 0 0 11 0 0 4 4 3 0 8653504 2748 |