Files
nvdriver/reports/gpu-pmu-vaspace-validation.json
nvidia-driver-rs 4526e6a816 Baseline: validated 30/30 tree with passing Level 7 hardware regression
- Updated tools/post_reboot.sh to check kernel oops taint bit and stuck driver tasks instead of <86400s uptime
- Level 7 hardware regression passed on 0000:b3:00.0 (module 37e6fa430835eee2b426019db3ad70eeb7a9e9070c09c84bd9b973cf56cbe529, 107 inventory words, 0 static mismatches, CUDA baseline verified before and after)
- Updated .gitignore to exclude build archives (*.a, *.rlib), __pycache__, and raw trace dumps
2026-11-23 23:48:38 +00:00

99 lines
6.9 KiB
JSON

{
"date": "2026-11-19",
"scope": "Bring-up level 9, work package 4: the GV100 PMU address space, instance block, super surface and system-memory mappings through BAR0/BAR2 (core gpu::pmu_bar2). Emulation and transcript comparison only; nothing ran on hardware. Not wired into the kernel.",
"original_sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b",
"rust": {
"module": "src/nvidia/src/gpu/pmu_bar2.rs",
"sha256": "45af456953c123abb21bf07d9e0a72f9451159d871b6725a5e6a8eae2d5cd95d",
"tests": "src/nvidia/src/gpu/pmu_bar2_tests.rs",
"tests_sha256": "d1cae4d4368cecd60246016e25d3601c5a862c7625bc5736a3f20583f7f4d22c"
},
"oracle": {
"harness": "tools/check_gpu_pmu_vaspace_binary.py",
"harness_sha256": "aceefe1af681da9baf8a37bb701991873af6997bac04afb4866b2738e20c70fb",
"file": "target/gpu-stage/original-pmu-vaspace.txt",
"sha256": "11ebf2cfd72a5261970a68068da024b9547951a88e9f48311d706d5b00697633",
"cases": 41,
"cases_by_kind": {
"v100": 1,
"plain": 1,
"logger": 1,
"size": 14,
"address": 8,
"sysmem": 6,
"subcontexts": 4,
"base": 4,
"poll": 2
},
"original_functions_executed_on_the_traced_case": 261,
"regenerated_twice_identical": true,
"original_report": "reports/gpu-pmu-vaspace-original.json"
},
"tests": {
"compare_original_pmu_vaspace": "ignored; NV_RS_PMU_VASPACE_ORACLE=target/gpu-stage/original-pmu-vaspace.txt; 41 cases, 52,172 events equal",
"traced_load_is_reproduced_from_the_placement": "passes; from the placement model's addresses on the traced board's registers: BAR0 transcript lines 147335-147416 without the PMU's own registers (67 accesses) and all 185 BAR2 accesses of the interval, with the values of every store",
"what_is_not_reproduced_is_refused": "passes",
"entries_and_constants": "passes",
"command": "CARGO_TARGET_DIR=target/wp4 NV_RS_PMU_VASPACE_ORACLE=$PWD/target/gpu-stage/original-pmu-vaspace.txt cargo test -p nv-rs-core --lib pmu_bar2 -- --include-ignored",
"clippy": "cargo clippy -p nv-rs-core --all-targets -- -D warnings: clean"
},
"findings": [
{
"evidence": "A,E",
"text": "_nv052643rm: start = _nv040786rm(KernelGmmu) << 10 = 0x4000000, extent word 0x20000000, vmmCreateVaspace class 0x90f1 with flags 0x4000810, limit start + 0x1fffffff. Creation allocates nothing in the framebuffer."
},
{
"evidence": "E,T",
"text": "The space has no pinned root. The first mapping allocates the root (tag 0xb0); the walker's root update _nv013511rm (flag 0x800) calls _nv052399rm -> _nv052304rm: _nv040832rm (0x208 = 0x23ffffff 64-bit, 0x204 = root high, 0x200 = root low | 0xc00), slot +78 _nv052298rm (per subcontext 0x2a4/0x2a0 + 16n: the root for n = 0, 1 and 1 otherwise; 0x298 = 1; 64 subcontexts on the traced board), KernelBus+4a8(1), _nv039553rm, then _nv052272rm (bind) and only then the three directories and the page tables."
},
{
"evidence": "E,T",
"text": "Traced V100 after the HS ACR load released its requests: root 0x7fdf7d000, directories 0x7fdf7c000, 0x7fdf7b000, 0x7fdf7a000 (dual entries at +0x200 and +0x210), page tables 0x7fdf79000 (512 entries) and 0x7fdf78000 (8 entries); the placement model gives the same six addresses (PAGE_LEVEL_REQUEST). BAR2 offsets 0x2000..0x7000, the surface's CPU mapping at 0x8000, store of 0x7fdb98000 at surface +0x10600."
},
{
"evidence": "T,E",
"text": "The traced Load makes three mappings, not two: the surface at 0x4000000, the 0x19d0-byte system-memory buffer at 0x4208000 (page table 1 entries 8-9) and, after the transfer index writes (BAR0 lines 147407-147416), 32 pages at 0x420a000: the 0x1f5b0-byte surface of PMU+e88 mapped by _nv052625rm. No mapping is ever at 0x5000000; that address was a fixture value of the earlier PMU harnesses."
},
{
"evidence": "E",
"text": "Entries: directory (table >> 12) << 8 | 2; dual directory entry 16 bytes with a zero first half; framebuffer page (page >> 12) << 8 | 1; system-memory page (page >> 12) << 8 | 0xf."
},
{
"evidence": "D,A(bit test),T",
"text": "_nv043773rm with flag bit 0 returns before its bus flush. Its callers with that flag are _nv052298rm (after the subcontext words) and _nv018652rm (the surface's CPU unmapping): a write-combine flush only. The trace has one flush read after the 0x298 store."
},
{
"evidence": "E",
"text": "Unload order (_nv052517rm): surface CPU unmapping, surface unmapping, PMU+e88 surface (_nv052624rm, when PMU+f00 is clear), the buffer (_nv052322rm, when PMU+d8c is 0). Each unmapping clears its entries twice, releases an emptied page table after clearing its dual entry, then flush read, invalidate 0x800000c1 with the root, two bus flushes. The last one also releases the three directories, runs the root update with 'clear' (instance block and subcontext words written again with the same values, the flushes, then slot +48 _nv052303rm), releases the root and invalidates nothing."
},
{
"evidence": "A,D",
"text": "_nv052303rm (unbind) with Falcon+650 = 1: read 0x10a0a4, write it back with bit 0 set; with GPU+917, +918, +926 clear the bind wait at slot +58 (_nv052288rm); then 0x10a050 = 0. Its register sequence is not part of this module (Io::unbind) and has no oracle yet."
},
{
"evidence": "E",
"text": "Destroy after the Unload has no device access: descriptors and the space object are released."
}
],
"corrections_to_earlier_notes": [
"pmu-implementation-notes.md 8.6 'the instance block stays bound': the Unload's last unmapping runs the unbind _nv052303rm.",
"The buffer's address-space address is 0x4208000 on the traced board, not 0x5000000.",
"pmu_ls_start's order 'address_space_map, instance_block_init, bus_flush, bind' is the earlier harness's; in the original the bind sits inside the surface's mapping, after the root directory and before the other levels (transcript lines 147335-147376)."
],
"refused": [
"allocation failure half way through a mapping (status passed on, space refuses everything afterwards)",
"mappings beyond the first 8 MiB of the space",
"a mapping made after another was removed while the space is in use",
"more than four mappings",
"system memory at or above 2^47",
"a subcontext count of 0x60 or more",
"instance block or page levels outside the framebuffer (no such path in the module)"
],
"not_established": [
"The predicates that create the PMU+e88 surface (e88+0x59, bit 1 of e88+0x68) and its address space; in the traced run it is mapped and the framebuffer placement leaves no room for it, so it is system memory.",
"Whether the LS PMU needs the two system-memory mappings to complete INIT and unit 0x0a (hardware run).",
"InitLocked zero fills on hardware: the trace has lost events there; emulation only.",
"_nv052303rm with a running PMU: not executed."
]
}