The M3 Max moved to macOS 27.0.1 (26A434). There, a render pass that clears over a mutable rasterization rate map and draws nothing hangs the host's GPU (kIOGPUCommandBufferCallbackErrorHang, about 29 ms in), and a guest reaches it through the Metal platform. Some of Metal's answers also changed, so the tests and the suite are made to follow the host's release. The fix, the one change in what runs: - The Metal platform marks the encoder of a pass over a map that is not immutable, and right before its endEncoding binds a cached pipeline (void vertex function, rasterization off, no formats, the device's largest amplification count) and draws no triangles. Measured on the M3 Max at 27.0.1, every attachment's stored bytes and the visibility buffer stay as without the draw, across the pass shapes a guest can give, and nothing raises under MTL_DEBUG_LAYER. gpu/rate_map.rs records the measurements, and its tests fail with the hang without the draw. Tests that follow the host's release: - A depth-stencil state's gpuResourceID answers 0 at 27.0.1 where it raised at 26.7, and resourceIndex still raises. The getter tests expect each release's measured answer. Core's depth-stencil info reply reads both, so the request still raises on either release. - Three Vulkan tests follow the runtime's Metal level: the setter takes 301 values at 27.0.1 (288 at 26.7), YCbCr8_420_2P's cast class is 46 (43), and the legacy-heap test leaves out formats 630 to 645, whose block rule is 26.7's. format_info.rs records that Metal on the M3 Max describes none of 630 to 645 at 27.0.1, where the runtime's level, measured on an M4, describes all 16; the tests that hit that stay failing on this host until metal2vulkan's level does. - Metal answers supportsMemoryOrderAtomics true at 27.0.1 (false at 26.7). The Vulkan platform's stand-in stays false, as the runtime has none, and the test pins the device's own answer and Metal's at each level. The suite: - The 1361 host-keyed cases are recorded for AppleM3Max-40c-26A434; the 25G229 files stay for hosts on 26.7. 1089 differ only in the key. 272 differ in Metal answers the Metal platform passes through: device-info key 26 (memory-order atomics) is 1, and 13 buffer and heap-placement GPU addresses in isolated tasks' replies come out lower. - suspend_crafted_resume is keyed by host: its last suspend's blob holds the host's device info. Its unkeyed 26.7 files are removed. - interplay_decodewalk_27's walk ends at its host-dependent exec, an indirect dispatch after two compute encoders of different dispatch types: Metal ended the process there at 26.7 and runs it at 27.0.1. The seed is keyed by host and stops at that exec, waiting for its stamp and comparing every window with the model. Only seed 27's ops change. Its 26.7 outcome cannot be recorded again without a 26.x host, so its unkeyed files are removed. Nothing changes for the guest or the host, except that the host's GPU no longer hangs on such a pass. On this branch's tree, cargo xtask check fails only the 11 tests the runtime's 27.0.1 level decides (formats 630 to 645, format 263's heap alignment, four mipmap chains), plus YCbCr sweeps that pass run again alone; make test passes on 26A434.
61 lines
6.8 KiB
JSON
61 lines
6.8 KiB
JSON
{"expected": "info_copy_parameter_buffer", "host": "AppleM3Max-40c-26A434", "input": "1bf232cd74f6dda6a78f9ad90da7c76b7ae038efdb7d525d39b045da7bfcc196", "setup": "blocks"}
|
|
{"ev": "binding", "i": 0, "library": "<build>", "setup": "blocks"}
|
|
{"ev": "device", "i": 0, "ok": 1}
|
|
{"ev": "mmio_w", "i": 1, "off": "0x1034", "val": "0xf5"}
|
|
{"ev": "mmio_w", "i": 2, "off": "0x101c", "val": "0x10001"}
|
|
{"ev": "mmio_w", "i": 3, "off": "0x1030", "val": "0x10002"}
|
|
{"ev": "mmio_w", "i": 4, "off": "0x1004", "val": "0x8000"}
|
|
{"ev": "mmio_w", "i": 5, "off": "0x1010", "val": "0x400"}
|
|
{"ev": "mmio_w", "i": 6, "off": "0x1000", "val": "0x1"}
|
|
{"ev": "mmio_w", "i": 132, "off": "0x1008", "val": "0x1c"}
|
|
{"ev": "wait", "i": 133, "label": "stamp 1 on FIFO 0", "ok": true}
|
|
{"ev": "mmio_w", "i": 136, "off": "0x1008", "val": "0x34"}
|
|
{"ev": "wait", "i": 137, "label": "stamp 2 on FIFO 0", "ok": true}
|
|
{"ev": "mmio_w", "i": 140, "off": "0x1008", "val": "0x64"}
|
|
{"ev": "wait", "i": 141, "label": "453 at 0x1000", "ok": true}
|
|
{"ev": "mmio_r", "i": 142, "off": "0x102c", "val": "0x0"}
|
|
{"ev": "dump", "gpa": "0x4006c000", "hex": "00000000000000000000000000000000", "i": 143, "label": "453: below the offset", "len": "0x10"}
|
|
{"ev": "dump", "gpa": "0x4006d000", "i": 144, "label": "453 parameter data at 0x1000", "len": "0x6030", "sha256": "1c98e3d20dfdb403ea68d10397cac9f7afe95c9d43bbc7d8c5fc191089d49190"}
|
|
{"ev": "mmio_w", "i": 147, "off": "0x1008", "val": "0x8c"}
|
|
{"ev": "wait", "i": 148, "label": "453 map ref 0", "ok": true}
|
|
{"ev": "mmio_r", "i": 149, "label": "453 map ref 0", "off": "0x102c", "val": "0x1"}
|
|
{"ev": "mmio_r", "i": 150, "label": "453 map ref 0", "off": "0x103c", "val": "0x64"}
|
|
{"ev": "mmio_w", "i": 151, "off": "0x1024", "val": "0x0"}
|
|
{"ev": "mmio_w", "i": 154, "off": "0x1008", "val": "0xb4"}
|
|
{"ev": "wait", "i": 155, "label": "453 buffer ref 0", "ok": true}
|
|
{"ev": "mmio_r", "i": 156, "label": "453 buffer ref 0", "off": "0x102c", "val": "0x1"}
|
|
{"ev": "mmio_r", "i": 157, "label": "453 buffer ref 0", "off": "0x103c", "val": "0x8c"}
|
|
{"ev": "mmio_w", "i": 158, "off": "0x1024", "val": "0x0"}
|
|
{"ev": "mmio_w", "i": 161, "off": "0x1008", "val": "0xe4"}
|
|
{"ev": "wait", "i": 162, "label": "453 buffer too small", "ok": true}
|
|
{"ev": "mmio_r", "i": 163, "label": "453 buffer too small", "off": "0x102c", "val": "0x1"}
|
|
{"ev": "mmio_r", "i": 164, "label": "453 buffer too small", "off": "0x103c", "val": "0xb4"}
|
|
{"ev": "dump", "gpa": "0x40074000", "hex": "00000000000000000000000000000000", "i": 165, "label": "453 buffer too small: reply region", "len": "0x10"}
|
|
{"ev": "mmio_w", "i": 166, "off": "0x1024", "val": "0x0"}
|
|
{"ev": "mmio_w", "i": 169, "off": "0x1008", "val": "0x114"}
|
|
{"ev": "wait", "i": 170, "label": "453 offset past the end", "ok": true}
|
|
{"ev": "mmio_r", "i": 171, "label": "453 offset past the end", "off": "0x102c", "val": "0x1"}
|
|
{"ev": "mmio_r", "i": 172, "label": "453 offset past the end", "off": "0x103c", "val": "0xe4"}
|
|
{"ev": "mmio_w", "i": 173, "off": "0x1024", "val": "0x0"}
|
|
{"ev": "mmio_w", "i": 176, "off": "0x1008", "val": "0x144"}
|
|
{"ev": "wait", "i": 177, "label": "453 offset overflows", "ok": true}
|
|
{"ev": "mmio_r", "i": 178, "label": "453 offset overflows", "off": "0x102c", "val": "0x1"}
|
|
{"ev": "mmio_r", "i": 179, "label": "453 offset overflows", "off": "0x103c", "val": "0x114"}
|
|
{"ev": "mmio_w", "i": 180, "off": "0x1024", "val": "0x0"}
|
|
{"ev": "mmio_w", "i": 183, "off": "0x1008", "val": "0x174"}
|
|
{"ev": "wait", "i": 184, "label": "453 misaligned offset", "ok": true}
|
|
{"ev": "mmio_r", "i": 185, "label": "453 misaligned offset", "off": "0x102c", "val": "0x1"}
|
|
{"ev": "mmio_r", "i": 186, "label": "453 misaligned offset", "off": "0x103c", "val": "0x144"}
|
|
{"ev": "dump", "gpa": "0x4006c000", "hex": "00000000000000000000000000000000", "i": 187, "label": "453 misaligned offset: reply region", "len": "0x10"}
|
|
{"ev": "mmio_w", "i": 188, "off": "0x1024", "val": "0x0"}
|
|
{"ev": "mmio_w", "i": 191, "off": "0x1008", "val": "0x1a4"}
|
|
{"ev": "wait", "i": 192, "label": "453 short record", "ok": true}
|
|
{"ev": "mmio_r", "i": 193, "label": "453 short record", "off": "0x102c", "val": "0x1"}
|
|
{"ev": "mmio_r", "i": 194, "label": "453 short record", "off": "0x103c", "val": "0x174"}
|
|
{"ev": "mmio_w", "i": 195, "off": "0x1024", "val": "0x0"}
|
|
{"blocks": [{"blk": "createTask", "size": "0x1000000", "task": 0}, {"blk": "mapMemory", "ranges": [["0x40004000", "0x4000"]], "ret": true, "ro": false, "task": 0, "voff": "0x0"}, {"blk": "mapMemory", "ranges": [["0x40008000", "0x8000"]], "ret": true, "ro": false, "task": 0, "voff": "0x4000"}, {"blk": "createTask", "size": "0x180000", "task": 1}, {"blk": "mapMemory", "ranges": [["0x40010000", "0x4000"]], "ret": true, "ro": false, "task": 0, "voff": "0xc000"}, {"blk": "readMemory", "len": "0x4", "pa": "0x40194000", "ret": 1}, {"blk": "mapMemory", "ranges": [["0x40014000", "0x4000"]], "ret": true, "ro": false, "task": 1, "voff": "0x0"}, {"blk": "readMemory", "len": "0x4", "pa": "0x40194004", "ret": 1}, {"blk": "readMemory", "len": "0x10", "pa": "0x400182a0", "ret": 1}, {"blk": "readMemory", "len": "0x8", "pa": "0x40194058", "ret": 1}, {"blk": "mapMemory", "ranges": [["0x4006c000", "0x8000"]], "ret": true, "ro": false, "task": 1, "voff": "0x58000"}, {"blk": "readMemory", "len": "0x4", "pa": "0x40194010", "ret": 1}, {"blk": "readMemory", "len": "0x20", "pa": "0x40024000", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40194004", "ret": 1}, {"blk": "readMemory", "len": "0x30", "pa": "0x40018150", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40194010", "ret": 1}, {"blk": "readMemory", "len": "0x20", "pa": "0x40024000", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40194010", "ret": 1}, {"blk": "readMemory", "len": "0x20", "pa": "0x40024000", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40194004", "ret": 1}, {"blk": "readMemory", "len": "0x10", "pa": "0x400182b0", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40194060", "ret": 1}, {"blk": "mapMemory", "ranges": [["0x40074000", "0x4000"]], "ret": true, "ro": false, "task": 1, "voff": "0x60000"}, {"blk": "readMemory", "len": "0x4", "pa": "0x40194010", "ret": 1}, {"blk": "readMemory", "len": "0x20", "pa": "0x40024000", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40194010", "ret": 1}, {"blk": "readMemory", "len": "0x20", "pa": "0x40024000", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40194010", "ret": 1}, {"blk": "readMemory", "len": "0x20", "pa": "0x40024000", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40194010", "ret": 1}, {"blk": "readMemory", "len": "0x20", "pa": "0x40024000", "ret": 1}, {"blk": "readMemory", "len": "0x4", "pa": "0x40194010", "ret": 1}, {"blk": "readMemory", "len": "0x1c", "pa": "0x40024000", "ret": 1}], "ev": "events", "i": 196, "irqs": 17, "label": "end"}
|
|
{"ev": "events", "i": 197, "irqs": 0, "label": "end"}
|
|
{"ev": "teardown", "i": 197}
|
|
{"ev": "end", "i": 197}
|
|
{"ev": "outcome", "kind": "completed"}
|