interplane.Get Omega
Read in your language

omega-gpu-driver

aien-dev/omega-gpu-driver

Brought by drakestapleton

branch main Branches Tags History

omega-gpu-driver / tests / dispatch_cases.txt

63 lines · 3191 bytes Raw Blame History
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)
7valid-empty 0 4 0 0 15 0 0 11 0 0 4 0 0
8valid-write 0 4 0 0 15 0 0 11 0 0 4 3 3 0 8653504 2748
9valid-modify 0 4 0 0 15 0 0 11 0 0 8 7 7 0 8653504 255 1 8653504 15 160
10valid-poll 0 4 0 0 15 0 0 11 0 0 10 9 9 0 8653504 4615 2 8653504 255 7 0 0
11valid-delay 0 4 0 0 15 0 0 11 0 0 3 2 2 3 50
12valid-store 0 4 0 0 15 0 0 11 0 0 7 6 6 0 8653504 4660 4 8653504 3
13valid-allcore 0 4 1 0 15 0 0 11 0 0 5 4 4 5 6 7 8
14valid-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)
17late-unkop 0 4 1 0 15 0 0 11 0 0 8 7 7 0 8653504 100 4 8653504 1 99
18late-badstore 0 4 1 0 15 0 0 11 0 0 7 6 6 0 8653504 100 4 8653504 8
19late-overrun 0 4 1 0 15 0 0 11 0 0 6 5 5 0 8653504 100 1 8653504
20late-corenoc 0 4 0 0 15 0 0 11 0 0 8 7 7 0 8653504 100 4 8653504 1 5
21late-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)
24stale-gen 0 4 0 0 15 1 0 11 0 0 4 3 3 0 8653504 2748
25stale-tok 0 4 0 0 15 0 1 11 0 0 4 3 3 0 8653504 2748
26stale-both 0 4 0 0 15 1 1 11 0 0 4 3 3 0 8653504 2748
27bad-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
30poll-fail 4 2 0 0 15 0 0 11 0 0 10 9 9 0 8653504 100 2 8653824 4294967295 16 0 0
31poll-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)
34core5-nocall 0 4 0 0 15 0 0 11 0 0 2 1 1 5
35core5-noperm 0 4 1 0 14 0 0 11 0 0 2 1 1 5
36core5-fail 0 4 1 5 15 0 0 11 0 0 2 1 1 5
37core5-ok 0 4 1 0 15 0 0 11 0 0 2 1 1 5
38
39core6-nocall 0 4 0 0 15 0 0 11 0 0 2 1 1 6
40core6-noperm 0 4 1 0 13 0 0 11 0 0 2 1 1 6
41core6-fail 0 4 1 6 15 0 0 11 0 0 2 1 1 6
42core6-ok 0 4 1 0 15 0 0 11 0 0 2 1 1 6
43
44core7-nocall 0 4 0 0 15 0 0 11 0 0 2 1 1 7
45core7-noperm 0 4 1 0 11 0 0 11 0 0 2 1 1 7
46core7-fail 0 4 1 7 15 0 0 11 0 0 2 1 1 7
47core7-ok 0 4 1 0 15 0 0 11 0 0 2 1 1 7
48
49core8-nocall 0 4 0 0 15 0 0 11 0 0 2 1 1 8
50core8-noperm 0 4 1 0 7 0 0 11 0 0 2 1 1 8
51core8-fail 0 4 1 8 15 0 0 11 0 0 2 1 1 8
52core8-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.
55core-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.
57late-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
60shape-trunc 0 4 0 0 15 0 0 11 1 0 4 3 3 0 8653504 2748
61cap-zero 0 4 0 0 15 0 0 11 0 0 0 0 0
62cap-over 0 4 0 0 15 0 0 11 0 0 16385 0 0
63idx-over 0 4 0 0 15 0 0 11 0 0 4 4 3 0 8653504 2748