From 24b57d5489cab7f5d1cc2709ae934a6349e6b80d Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sat, 3 Oct 2026 07:56:09 -0500 Subject: [PATCH 1/2] omega: world: GB10 pushbuffer and gate pool must be GPU-uncached (CHIPWAIT root cause) Symptom: on the GB10, a second submission to a channel never completed (completion marker stuck at the first value), and reused pushbuffer slots re-executed their OLD commands (marker went 3 -> 1). Tests that reuse a pushbuffer or wrap the ring hung or reported stale results. Root cause: memory the CPU rewrites and the GPU reads was allocated GPU-cacheable. NVIDIA's own header says GPU_CACHEABLE_YES on system memory "will not be coherent with direct CPU mappings" (nvos.h:1117-1118), and the UVM driver documents sticky L2 lines on GB10B and refuses to GPU-cache system memory (uvm_gpu.h:1135-1138, nvidia-uvm 580.173.02). CPU dsb barriers do not invalidate the GPU's cached copy, so the GPU replays stale contents. Fix (omega): nvrm_alloc_gpu_uncached at - src/omega_accelerator_world.c omega_world_init: world->pb_mem (0x10000) - src/omega_world_gates.c test_m19_gate8_1000_op: pb_pool (0x40000, 64 reused slots) Needs the physics fix (GPFIFO/USERD + m16 pushbuffer) from the paired physics PR; physics.lock must be bumped to that merged physics commit. Evidence (read-only, ~/workspace/evidence-out): - CHIPWAIT-DIAG-20261003 run-026/027/028 (physics visibility gate red, green; world_lifecycle 11/11). - CHIPWAIT-FIX-20261003 run-002: targeted M19 gates 2,3,6,7,8 PASS (failed=0); run-003: world_lifecycle 11/11 PASS (TOTAL 11, PASSED 11, FAILED 0). Limits: built with PHYSICS_LOCK_CHECK=0 against the fixed physics tree, so this is not a clean-clone qualification; single passing runs. Co-Authored-By: GPT-6 Astra Co-Authored-By: Drake Stapleton Co-Authored-By: Claude Fable 5.1 --- src/omega_accelerator_world.c | 5 +++-- src/omega_world_gates.c | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/omega_accelerator_world.c b/src/omega_accelerator_world.c index bc2c664f3..5b0419804 100644 --- a/src/omega_accelerator_world.c +++ b/src/omega_accelerator_world.c @@ -112,8 +112,9 @@ int omega_world_init(OmegaAcceleratorWorld *world) { world->ring_capacity = world->m16.rm.entries; world->channel_active = true; - /* Allocate persistent pushbuffer ring */ - if (nvrm_alloc(&world->m16.rm, 0x10000, &world->pb_mem) != 0) { + /* The CPU rewrites retired command slots. GPU-cached slots can replay + * earlier commands despite CPU store barriers, so bypass that cache. */ + if (nvrm_alloc_gpu_uncached(&world->m16.rm, 0x10000, &world->pb_mem) != 0) { m16_native_close(&world->m16); return OMEGA_WORLD_ERR_NO_MEM; } diff --git a/src/omega_world_gates.c b/src/omega_world_gates.c index 5c746bb76..9e8571e4c 100644 --- a/src/omega_world_gates.c +++ b/src/omega_world_gates.c @@ -816,7 +816,9 @@ static bool test_m19_gate8_1000_op(void) { omega_world_register_buffer(&world, mat_bytes_out, OMEGA_PERM_READ | OMEGA_PERM_WRITE, &m_c_bf16); NvrmMem pb_pool; - if (nvrm_alloc(&world.m16.rm, 0x40000, &pb_pool) != 0) { + /* The CPU reuses these 64 command slots; a GPU-cached slot can replay old + * commands on GB10 despite CPU store barriers, so bypass the GPU cache. */ + if (nvrm_alloc_gpu_uncached(&world.m16.rm, 0x40000, &pb_pool) != 0) { omega_world_destroy(&world); return false; } From 292c2e109cb6601c78ca889348192dfb9e15e410 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sat, 3 Oct 2026 08:11:23 -0500 Subject: [PATCH 2/2] omega: bump physics.lock to 6d7cf0d (GB10 uncached GPFIFO/USERD + pushbuffer fix) physics #28 (squash-merged as 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf) makes the GPFIFO ring, USERD and the m16 pushbuffer GPU-uncached. The omega world and gate-pool fixes in this branch depend on it. physics.lock is a sha-only file; the bump is all CI and the Makefile (check-physics-lock) read. Co-Authored-By: GPT-6 Astra Co-Authored-By: Drake Stapleton Co-Authored-By: Claude Fable 5.1 --- physics.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/physics.lock b/physics.lock index dd5a035d3..be6c1e32a 100644 --- a/physics.lock +++ b/physics.lock @@ -1 +1 @@ -e95e3ed2a86fe4bffe4d954fa94c27dfb5284280 +6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf