diff --git a/physics.lock b/physics.lock index dd5a035d3..be6c1e32a 100644 --- a/physics.lock +++ b/physics.lock @@ -1 +1 @@ -e95e3ed2a86fe4bffe4d954fa94c27dfb5284280 +6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf 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; }