mirror of
https://github.com/QuixiAI/nvdriver.git
synced 2026-12-06 14:38:47 +00:00
- 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
289 lines
27 KiB
JSON
289 lines
27 KiB
JSON
{
|
|
"scope": "GV100 first-open memory placement computed from registers: BAR2 hidden range, reserved-memory size and base, comptag store size, internal heap region and the first framebuffer allocations up to the BAR2 test page, as core mmu::placement; used by bring-up level 4 (kernel/adapter_start.rs compute_placement, bar2_bringup).",
|
|
"original_artifact_sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b",
|
|
"evidence_classes": "A = instructions read (REA procedure_assembly or objdump of the symbol), D = decompiler pseudocode only, S = public source match, T = physical transcript target/trace/b3-bar0.txt, E = original instructions executed by the harness, I = inference.",
|
|
"computed_values": {
|
|
"bar2_hidden_range": {
|
|
"function_chain": "MemoryManager PreInitLocked _nv044123rm -> _nv044065rm -> _nv044075rm -> KernelBus+158 _nv039445rm -> +160 _nv039455rm -> +168 _nv039317rm -> +170 _nv039316rm -> OBJUVM+1b8 _nv059748rm; KernelGmmu+368 _nv040937rm (index 0, then 1); KernelFifo+218 _nv040202rm -> +220 _nv040312rm -> +118 _nv040413rm -> _nv040275rm and OBJFIFO+1a8 _nv027729rm; KernelFifo+190 _nv040337rm; GPU+488 _nv030432rm -> _nv018874rm -> OBJCE+378 _nv018898rm -> OBJCE+320 _nv018880rm",
|
|
"formula": "size = (ALIGN4K(fault1) + ALIGN4K(fault0) + counters + 0xfff + fifo) & ~0xfff in 32-bit arithmetic; fault_n = (RD32(0x100e34 + 0x14 n) & 0xfffff) << 5 after the register is written back with bit 30 set; counters = OBJUVM+220 buffers (1 on GV100) times RD32(0x100a0c) << 5; fifo = RD32(0x2008) [limited by KernelFifo+458 when +456 is set] * 2 * ALIGN4K((popcount16(RD32(first copy engine aperture + 0x28)) * 13 + 2) * 0x87). Range (_nv039317rm, only while the hidden limit is 0 and the size is not): base = visible limit + 1 when no base is set, limit = base + size - 1.",
|
|
"inputs_traced_v100": {
|
|
"0x100a0c": "0x1000 (line 37590)",
|
|
"0x100e34": "0x60002061 (37591)",
|
|
"0x100e48": "0x40001800 (37594)",
|
|
"0x2008": "0x1000 (37597)",
|
|
"0x104028": "0x1ff (37598)",
|
|
"visible limit": "0x1ffffff (_nv039557rm default)"
|
|
},
|
|
"result_traced_v100": "0x41000 + 0x30000 + 0x20000 + 4096 * 2 * 0x4000 = 0x8091000; 0x2000000..0xa090fff",
|
|
"evidence": "A (_nv039316rm, _nv039317rm, _nv040202rm, _nv040312rm, _nv040413rm, _nv018898rm, _nv018880rm, _nv027729rm through REA procedure_assembly) + E (1,440 direct cases, 185 chain cases) + T (register order equals lines 37590-37598). The FIFO factors the dossier had inferred are now: channel count register 0x2008, run queues 2 (constant body _nv040337rm), nine copy-engine bits in 0x104028.",
|
|
"fixture_supplied_and_therefore_not_established": "which copy engine object is first (the aperture base 0x104000 is taken from the transcript); the KernelFifo channel override is clear at this point (inferred from the traced result)"
|
|
},
|
|
"reserved_size": {
|
|
"function_chain": "_nv044065rm -> _nv044984rm (extra region, RAM type 7 only), _nv043742rm; _nv044075rm -> KernelBus+158 _nv039445rm, +150 _nv039447rm",
|
|
"formula": "start 0 (0x10000 with registry RMBug1848110War = 1); BAR1 instance block ALIGN4K(start), BAR2 instance block + 0x1000; directories ALIGN4K(+0x2000) + directory bytes; tables ALIGN4K + table bytes; size ALIGN4K. Level sizes as mmu::bar2_setup::level_sizes.",
|
|
"result_traced_v100": "0x2000 + 0x4000 + 0x51000 = 0x57000",
|
|
"evidence": "A (dossier: _nv044065rm, _nv044075rm) + E (185 chain cases; level sizes also in the BAR2 setup oracle)"
|
|
},
|
|
"reserved_base": {
|
|
"function_chain": "MemoryManager InitLocked _nv044120rm -> _nv043997rm(gpu, memmgr, MemoryManager+830 << 20) -> MemoryManager+320 _nv043823rm, _nv044000rm (-> _nv014086rm, _nv044071rm); region table from MemoryManager+120 _nv043995rm -> +340 _nv043988rm (0x12006c, 0x100ce0 through KernelMemorySystem+110 _nv041622rm -> _nv041621rm -> +108 _nv041679rm), +128 _nv044084rm, +1d0 _nv043993rm -> MemorySystem+e90 _nv045875rm",
|
|
"formula": "size = ALIGN64K(size [ALIGN64K + MemorySystem+1388 when that is not 0]); fails 0x1a at 1 MiB or more; chosen region = last one that is not reserved and whose protection equals the confidential-computing state; top = megabytes << 20, lowered to chosen limit + 1; base = (top - size) & ~0xfff; size = top - base; usable -= ALIGN4K(size); region [base, base + size - 1] inserted as reserved. megabytes = (usable + 0xfffff) >> 20, usable = magnitude << (20 + scale) of 0x100ce0, less 1/16 with bit 30 (ECC).",
|
|
"inputs_traced_v100": {
|
|
"0x100ce0": "0x20a (line 37530)",
|
|
"0x12006c": "0x10 (line 37529)"
|
|
},
|
|
"result_traced_v100": "size 0x60000, base 0x7fffa0000, instance blocks 0x7fffa0000 and 0x7fffa1000",
|
|
"evidence": "A (dossier: _nv043997rm, _nv043823rm) + E (5,760 direct cases over region tables with reserved and protected regions, bottom placement, the extra bytes and the confidential state; 185 chain cases over 15 framebuffer words with and without ECC) + T (0x1704, 0x1714)"
|
|
},
|
|
"comptag_store": {
|
|
"function_chain": "MemorySystem PreInit: +ef0 _nv045239rm -> _nv045238rm -> +ee8 _nv045563rm (-> _nv045002rm). MemorySystem InitLocked _nv045882rm -> +1c8 _nv045881rm -> _nv045880rm -> +ef8 _nv044284rm (+f40 _nv045025rm, _nv044827rm -> +ed8 _nv044826rm, +b10 _nv044754rm) and +f28 _nv044460rm (_nv043683rm, _nv043694rm, MemoryManager+358 _nv044111rm). Allocation after heap creation: KernelMemorySystem+190 _nv041654rm -> MemorySystem+eb8 _nv044227rm.",
|
|
"formula": "unit = 0x200 << bits 27:24, multiplier = bits 31:28, per_line = bits 15:0 of 0x17e3f4; lines = min(ceil(usable / 64 KiB), 0x3ffff) on the usable size before the reserved region is taken; bytes = ceil(per_line * lines / unit) * unit * multiplier * LTC count (32-bit); alignment = lcm(0x1000 * LTC count, 0x20000); size = ceil(bytes / alignment) * alignment; contiguous, 4 KiB page size.",
|
|
"inputs_traced_v100": {
|
|
"0x17e3f4": "0x401c0002 (line 37583)",
|
|
"0x12006c": "0x10"
|
|
},
|
|
"result_traced_v100": "lines 0x3ffff, 0x2000000 bytes aligned to 0x20000, at 0x7fdfa0000",
|
|
"evidence": "A (_nv044284rm arithmetic, the argument of slot ef8 in _nv045880rm) + E (2,080 direct cases, 185 chain cases, 200 heap cases that start with the store). The address is the result of the original heap in emulation; the BAR0 transcript has no register carrying it, only the fit of the following pages."
|
|
},
|
|
"internal_heap_region": {
|
|
"function_chain": "_nv043851rm -> _nv035551rm (heapInit: _nv043892rm, _nv035541rm, _nv035550rm -> _nv044073rm -> _nv043817rm -> MemoryManager+300 _nv043815rm; _nv044072rm; region reservations _nv035555rm)",
|
|
"formula": "bytes = ALIGN64K(store + attribute buffer + 1 MiB + ALIGN4K(usable / 4 KiB * 8) + 1 MiB + ALIGN4K(usable / 64 KiB * 8) + USERD + runlists + context + fault buffers + fault-method buffers + access map), scaled to usable / 2 when larger; the top bytes of the usable region.",
|
|
"result_traced_v100": "with the cross-object sizes zero: 0x6600000, region 0x7f99a0000..0x7fffa0000 (an upper bound of the base)",
|
|
"evidence": "E (684 chain and heap cases with the five cross-object sizes varied) + T (the fault-method size reads of this call: lines 74914-74915). The cross-object sizes themselves (MemoryManager+308, +310, +318, +1d8, KernelGmmu+128) are fixture inputs; the kernel uses zero and refuses a request that would not fit the smaller region."
|
|
},
|
|
"allocations": {
|
|
"function_chain": "_nv043691rm / _nv043692rm -> _nv014072rm -> _nv043803rm (_nv043861rm page size, MemoryManager+1c8 _nv043790rm alignment) -> _nv060574rm -> _nv035538rm. Callers in order: _nv044227rm (store), OBJGMMU InitLocked _nv029562rm (+408 \"MMU read\", then +410 \"MMU write\"; size _nv029392rm), KernelBus+1c0 _nv039577rm (flush page), KernelBus+408 _nv039656rm (test page, 16 bytes aligned to 4 KiB).",
|
|
"rule": "page size 2 MiB from 2 MiB up, 64 KiB from 32 KiB up, else 4 KiB (4 KiB always when the descriptor's page size was set); size rounded up to the page; alignment = requested when it is a multiple of the page, the page when the page is a multiple of it, else status 0x1f; the highest free range that holds the request, at the highest aligned address in it; a release joins the range with free neighbours.",
|
|
"result_traced_v100": {
|
|
"mmu_read_page": "0x7fdf90000",
|
|
"mmu_write_page": "0x7fdf80000",
|
|
"flush_page": "0x7fdf7f000",
|
|
"test_page": "0x7fdf7e000",
|
|
"later_request_0xe0000_aligned_0x20000_after_the_test_page_is_released": "0x7fde80000"
|
|
},
|
|
"evidence": "E (185 chain cases through the original callers; 600 cases with 3,640 generic requests and releases, every address and status equal) + T (0x1700 = 0x7fdf9 line 74922, 0x7fdf8 line 91314, 0x7fdf7 in the pattern test, 0x100cd4 = 0x7fde802 line 147254).",
|
|
"inferred": "That nothing else allocates from the internal heap between heap creation and the dummy pages, and between the test page and the WPR image, is known only from the traced addresses. The WPR allocation's own descriptor was not read; only its size and alignment are used."
|
|
}
|
|
},
|
|
"implemented": [
|
|
"mmu::placement: hidden_aperture_bytes (register accesses in original order), hidden_range, pre_init_reserved, RegionTable::insert, init_reserved, comptag_geometry, comptag_store, internal_heap_bytes, carve_internal_region, shape, InternalHeap (allocate, release), first_open.",
|
|
"mmu::bar2_setup::level_sizes: the page-level sizes factored out of Plan::new, which now calls it.",
|
|
"kernel adapter_start.rs: compute_placement reads 0x88008, 0x12006c, 0x100ce0, 0x17e3f4, then the hidden chain (0x100a0c; 0x100e34 and 0x100e48 read, written with bit 30, read; 0x2008; 0x104028), restores the two fault-buffer registers if the write changed them, notes inputs and results, and bar2_bringup uses the result. The OBSERVED_* constants and the framebuffer-size refusal are removed."
|
|
],
|
|
"evidence": [
|
|
{
|
|
"evidence_category": "instruction emulation",
|
|
"harness": "tools/check_gpu_memory_placement_binary.py",
|
|
"what_ran": "The whole original object is loaded and relocated. Binders and property initializers of MemoryManager, MemorySystem (including _nv005936rm, which the bindings report omits), KernelMemorySystem, KernelBus, KernelGmmu, KernelFifo, OBJFIFO, OBJCE, OBJUVM, OBJGMMU and the GPU object run with chip HAL 0x23 and RM HAL 2. The chain runs from the region table to the test page through the original heap.",
|
|
"original_functions_executed_on_the_v100_chain": 148,
|
|
"cases": 10065,
|
|
"cases_by_kind": {
|
|
"chain": 185,
|
|
"heap": 400,
|
|
"heap-store": 200,
|
|
"hidden": 1440,
|
|
"base": 5760,
|
|
"comptag": 2080
|
|
},
|
|
"cases_where_the_original_fails_or_asserts": {
|
|
"chain": 4,
|
|
"hidden": 168,
|
|
"base": 2592,
|
|
"comptag": 460
|
|
},
|
|
"oracle": "target/gpu-stage/original-memory-placement.txt",
|
|
"oracle_sha256": "6eafbaaf51a288281647db6be047e640385c98866921271719ba56f75af6e084",
|
|
"oracle_regenerates_identically": true,
|
|
"comparison_test": "mmu::placement::tests::compare_original_memory_placement (ignored; NV_RS_MEMORY_PLACEMENT_ORACLE)",
|
|
"comparison_result": "10,065 cases: every output word equal where the original succeeds (6,841 cases, with 3,640 generic requests and releases); the Rust functions return an error in each of the 3,224 cases where the original fails or reports an assertion",
|
|
"covered_variation": "framebuffer words for 1 to 48 GiB with four scale encodings, each with and without the ECC bit; fault buffer, access counter, channel and copy-engine words including zero and wrapping values; 13 LTC count words and 16 geometry words; the workaround key; five cross-object heap sizes; region tables of 0 to 4 regions with reserved and protected regions, odd limits, bottom placement, extra bytes, confidential state; BAR2 range states with a preset base or limit; absent OBJUVM, KernelGmmu and copy engine; the channel override; requests of 24 sizes and 15 alignments (not powers of two among them) with priority flags and the 4 KiB page size, in sequences with releases and with requests that do not fit",
|
|
"fixture_supplied": "register values; the register apertures of the first copy engine and of the LTC broadcast block; diagnostics and assertion reporters (recorded); allocator, fill, copy; registry lookups; multi-GPU and calling-context helpers; the object-model ancestor lookup and cast; operating-system queries (page size 4 KiB, console framebuffer absent, memory onlining off, may sleep); the OBJFUSE feature query; timeout start; the framebuffer fill of the dummy pages; the BAR2 mapping of the flush page; MemoryManager+308, +310, +318, +1d8 and KernelGmmu+128 as case inputs; constructor fields MemoryManager+b68, +840, +440 written as _nv043850rm sets them",
|
|
"not_executed": "_nv043851rm itself (heap object creation, the page allocator PMA, _nv044063rm, the slots +390, +398, +3a0, _nv044080rm, the blacklist step _nv035539rm); heapInit is called with the arguments that function computes. MemorySystem and KernelBus stage bodies around the executed calls."
|
|
},
|
|
{
|
|
"evidence_category": "original-driver observation compared with the emulated original and the replacement model",
|
|
"transcript": "target/trace/b3-bar0.txt",
|
|
"transcript_sha256": "348f232f9604a06b86b9d8574e6a3883e4cecc2e727ee3cf25aa593d76c055be",
|
|
"register_inputs": {
|
|
"0x12006c": "0x10, line 37529",
|
|
"0x100ce0": "0x20a, line 37530",
|
|
"0x17e3f4": "0x401c0002, line 37583",
|
|
"0x100a0c": "0x1000, line 37590",
|
|
"0x100e34": "0x60002061, line 37591",
|
|
"0x100e48": "0x40001800, line 37594",
|
|
"0x2008": "0x1000, line 37597",
|
|
"0x104028": "0x1ff, line 37598"
|
|
},
|
|
"harness_check": "the emulated original's register accesses equal lines 37529-37530, 37583, 37590-37598 and 74914-74915",
|
|
"unit_test": "mmu::placement::tests::traced_v100_registers_give_the_traced_placement: hidden size 0x8091000 with the accesses of lines 37590-37598 in order; hidden limit 0xa090fff; reserved size 0x57000 -> 0x60000, base 0x7fffa0000; store 0x7fdfa0000; pages 0x7fdf90000, 0x7fdf80000, 0x7fdf7f000, 0x7fdf7e000; later request 0x7fde80000; internal region 0x7f99a0000..0x7fffa0000 with zero cross-object sizes"
|
|
}
|
|
],
|
|
"kernel": {
|
|
"notes": {
|
|
"0x42320010-17": "register words 0x100ce0, 0x100a0c, 0x100e34, 0x100e48, 0x2008, 0x104028, 0x17e3f4, 0x12006c",
|
|
"0x42320018": "PCI class word 0x88008",
|
|
"0x42320020": "hidden limit",
|
|
"0x42320021": "reserved base (pages)",
|
|
"0x42320022": "reserved size",
|
|
"0x42320023": "comptag store (pages)",
|
|
"0x42320024": "MMU read page",
|
|
"0x42320025": "MMU write page",
|
|
"0x42320026": "flush page",
|
|
"0x42320027": "test page",
|
|
"0x42320028": "later WPR-sized request",
|
|
"0x42320029": "internal heap base with zero cross-object sizes",
|
|
"0x4232002f": "refusal reason, then detail"
|
|
},
|
|
"expected_on_the_traced_v100": {
|
|
"0x42320010": "0000020a",
|
|
"0x42320011": "00001000",
|
|
"0x42320012": "60002061",
|
|
"0x42320013": "40001800",
|
|
"0x42320014": "00001000",
|
|
"0x42320015": "000001ff",
|
|
"0x42320016": "401c0002",
|
|
"0x42320017": "00000010",
|
|
"0x42320018": "030200a1",
|
|
"0x42320020": "0a090fff",
|
|
"0x42320021": "007fffa0",
|
|
"0x42320022": "00060000",
|
|
"0x42320023": "007fdfa0",
|
|
"0x42320024": "007fdf90",
|
|
"0x42320025": "007fdf80",
|
|
"0x42320026": "007fdf7f",
|
|
"0x42320027": "007fdf7e",
|
|
"0x42320028": "007fde80",
|
|
"0x42320029": "007f99a0"
|
|
},
|
|
"refusals": {
|
|
"1": "PCI class is not 3D controller: a display engine (GPU+1f70: display instance memory in _nv044065rm, console and VGA regions in _nv044084rm) or a console framebuffer (_nv045875rm) adds reserved memory and regions that are not computed",
|
|
"2": "a placement register read returned the PRI error signature 0xbadXXXXX",
|
|
"3": "the original asserts or fails for the inputs (LTC count 0, comptag per-line 0, channel count 0, reserved size of 1 MiB or more), a BAR2 space of 512 MiB or more (outside mmu::bar2_setup), or a request does not fit the lower-bound internal region"
|
|
},
|
|
"assumed_not_checked": [
|
|
"no registry override of the original (RMBug1848110War, RMBar2ApertureSizeMB, RMSetMmuDummyPageSize, OverrideFbSize, RMIncreaseRsvdMemorySizeMB, instance-location overrides); the path has no registry provider",
|
|
"GV100 defaults of objects not constructed: OBJUVM+220 = 1, KernelFifo channel override clear, a copy engine at aperture 0x104000, the fault-buffer rewrite predicates and the aperture predicates of _nv039557rm clear (the traced V100 shows the plain forms)",
|
|
"no retired page (InfoROM blacklist) inside the top of the internal heap region; the original blacklists such pages before the store is allocated (_nv035539rm), which would move later addresses",
|
|
"that the 3D-controller class implies no display engine and no console region is an inference"
|
|
],
|
|
"hardware_write_added": "0x100e34 and 0x100e48 are written with bit 30 set, as _nv040937rm does, and written back to the value first read if that differed. On the traced board both already have bit 30.",
|
|
"constraints": "tools/check_kernel_module.py passes: no GOT relocations (the tables are const-generic with 4 entries in the kernel path and their element moves go through opaque values), largest frame 776 bytes; compute_placement 584, first_open 664, bar2_bringup 632"
|
|
},
|
|
"remaining_observed_or_refused": "Nothing in bar2_bringup is a constant observed on one board any more. Not computed, refused or assumed as listed under kernel. Not derived by this work: the BAR2 CPU mapping policy of the page levels (fixture policy of the BAR2 setup oracle), the cross-object sizes of the internal heap region, and the allocations after the test page.",
|
|
"validation": {
|
|
"tools/validate_all.sh": "all 30 steps PASS (fmt, clippy, 592 workspace tests, bridge tests, modules, audit, native codegen, guest build, initramfs, both guest runs, result gate, live control)",
|
|
"nvidia_rs.ko_sha256": "f1beb2e37d6f313ae3378fb3db03f7ceb203a89a819cad9975e7915a296869f1",
|
|
"nv_rs_edu_test.ko_sha256": "2eeb53a8efd30febd2957102ba9474454c80d17eef381294557dcb46ac33aa3a",
|
|
"vermagic": "5.15.0-203-generic SMP mod_unload modversions",
|
|
"ignored_tests": "mmu::placement::tests::compare_original_memory_placement (10,065 cases), mmu::bar2_setup::tests::compare_original_bar2_setup (175 cases, oracle a1071cf7...2878dd unchanged after Plan::new was refactored onto level_sizes) and reproduce_physical_v100_transcript pass",
|
|
"hardware": "not executed; this build has not run on a GPU"
|
|
},
|
|
"independent_verification": {
|
|
"date": "2026-11-19",
|
|
"oracle_regenerated_identically": true,
|
|
"comparison_test_passed": true,
|
|
"validation_list": "tools/validate_all.sh passed (592 workspace tests)",
|
|
"module_sha256": "f1beb2e37d6f313ae3378fb3db03f7ceb203a89a819cad9975e7915a296869f1",
|
|
"hardware_execution": {
|
|
"evidence_category": "replacement hardware execution",
|
|
"run_report": "reports/hardware-first-open-b3-20261119T052641Z.json",
|
|
"device": "0000:b3:00.0",
|
|
"result": "All eight input registers read the values of the original trace and every computed placement equals the traced one (hidden limit 0x0a090fff, reserved base 0x7fffa0000, size 0x60000, store 0x7fdfa0000, pages 0x7fdf90000/0x7fdf80000/0x7fdf7f000/0x7fdf7e000, later request 0x7fde80000); the report's differs_from_original_trace is empty. BAR2 setup then completed on the computed placement as in the level 4 run, the NVDEC run returned status 0, and the baseline passed before and after."
|
|
}
|
|
},
|
|
"fifo_init_extension_2026_11_19": {
|
|
"what": "281 rows appended to the oracle for the requests of OBJFIFO InitLocked (tools/check_gpu_memory_placement_binary.py, kind heap-store); core mmu::placement gained fifo_init and Placement::heap_after_test",
|
|
"oracle_sha256": "9205a3b083b8f9f4ab0f1591606cf7bbea2b29bea9b873d078baa50990978f24",
|
|
"rows": 10346,
|
|
"first_10065_rows_sha256_unchanged": "6eafbaaf51a288281647db6be047e640385c98866921271719ba56f75af6e084",
|
|
"comparison_test": "mmu::placement::tests::compare_original_memory_placement passes on all 10,346 rows",
|
|
"traced_v100": {
|
|
"wpr_primary": "0x7fde80000",
|
|
"wpr_shadow": "0x7fdda0000",
|
|
"pmu_surface": "0x7fdb98000",
|
|
"runlist_buffers": [
|
|
"0x7fdb70000",
|
|
"0x7fdb50000",
|
|
"0x7fdb30000",
|
|
"0x7fdb10000",
|
|
"0x7fdaf0000",
|
|
"0x7fdad0000",
|
|
"0x7fdab0000",
|
|
"0x7fda90000",
|
|
"0x7fda70000",
|
|
"0x7fda50000",
|
|
"0x7fda30000",
|
|
"0x7fda10000",
|
|
"0x7fd9f0000",
|
|
"0x7fd9d0000",
|
|
"0x7fd9b0000",
|
|
"0x7fd990000",
|
|
"0x7fd970000",
|
|
"0x7fd950000",
|
|
"0x7fd930000",
|
|
"0x7fd910000",
|
|
"0x7fd8f0000",
|
|
"0x7fd8d0000",
|
|
"0x7fd8b0000",
|
|
"0x7fd890000",
|
|
"0x7fd870000",
|
|
"0x7fd850000"
|
|
]
|
|
},
|
|
"see": "reports/gpu-fifo-load-validation.json"
|
|
},
|
|
"direct_acr_extension_2026_11_19": {
|
|
"what": "1,081 rows of kind direct appended to the oracle (tools/check_gpu_memory_placement_binary.py): the requests after the BAR2 test page on the path without a copy-engine channel, each made by its original requester on the original heap. Core mmu::placement gained init_locked, HsLoad and the request shapes; additions only.",
|
|
"oracle_sha256_before": "9205a3b083b8f9f4ab0f1591606cf7bbea2b29bea9b873d078baa50990978f24",
|
|
"oracle_sha256": "cf8be28dc8ce65c8384e9b0c78395f3fdd0c8edb148f1ff4eeb9df40c217fda6",
|
|
"rows": 11427,
|
|
"first_10346_rows_sha256_unchanged": "9205a3b083b8f9f4ab0f1591606cf7bbea2b29bea9b873d078baa50990978f24",
|
|
"oracle_regenerates_identically": true,
|
|
"comparison_test": "NV_RS_MEMORY_PLACEMENT_ORACLE=target/gpu-stage/original-memory-placement.txt: mmu::placement::tests::compare_original_memory_placement passes on all 11,427 rows",
|
|
"holder_of_0x7fdf7e000": {
|
|
"answer": "The PMU instance block. The BAR2 test releases its page inside the test; PMU InitLocked _nv051858rm -> _nv052270rm(gpu, pmu, pmu+c20) requests 0x1000 bytes through _nv052601rm after the WPR primary and shadow, and that request takes the top page of the hole above the WPR primary. _nv052272rm binds the same surface (pmu+ca8) at the PMU start: 0x10a480 = (address >> 12) | 0x40000000. It is neither released nor requested again in between.",
|
|
"evidence": {
|
|
"A": "_nv039656rm (objdump): the test descriptor is a local at 0x60(%rbp) made by _nv043695rm with tag 0x62; the success path at +0x8ff calls _nv043773rm, _nv043704rm, _nv043699rm before returning; nothing stores it in KernelBus. _nv052270rm: _nv052603rm, _nv052299rm, +60 = 0x100000002 for +84 == 0, _nv052601rm, _nv044030rm, store at +88. _nv052601rm: _nv043694rm(&surface+58, gpu, +50, 0, +79, +60, +64, 4), _nv043765rm(d, 1, 0x1000), tag 0xe, _nv043691rm. _nv051858rm call order: _nv052645rm, _nv052623rm, _nv052270rm, optional _nv052601rm of pmu+f08, _nv052583rm.",
|
|
"D": "_nv052272rm: reads the surface at +88, writes 0x10a048 |= 1, 0x10a090 |= 0x10000, then 0x10a480 through the slot +50 (_nv052277rm).",
|
|
"E": "_nv052299rm, _nv052602rm and _nv052601rm executed on the original heap after the first-open requests and the two WPR requests give 0x7fdf7e000 on the traced register values (direct rows).",
|
|
"T": "lines 147342-147346: R/W 10a048 4 -> 5, R/W 10a090 0x40 -> 0x10040, W 10a480 0x407fdf7e, the access sequence of _nv052272rm. The BAR2 extract shows 0x207a00 bytes zero-filled at BAR2 offset 0x2000 after the test, i.e. two pages mapped before it (the BAR1 instance block fill of _nv039595rm and one more)."
|
|
},
|
|
"not_observed": "The instance block's own zero fill (_nv044030rm in _nv052270rm) falls into a lost-event gap of the BAR2 extract."
|
|
},
|
|
"request_shapes_in_original_order": [
|
|
"WPR primary, WPR shadow: 0xe0000, alignment 0x20000 (as before)",
|
|
"PMU instance block: 0x1000, alignment 0, 4 KiB page size, contiguous, tag 0xe (_nv052270rm -> _nv052601rm)",
|
|
"PMU super surface: _nv052179rm -> _nv052177rm = 0x207a00, alignment 0, 4 KiB page size, tag 0xe, not flagged contiguous (constructor _nv052602rm with PMU+429 clear); the original heap grants one range when a free range holds it (E, 1,081 rows)",
|
|
"runlist buffers (as before)",
|
|
"HS image: (bytes + 0xff) & 0xffffff00, alignment 0x100, contiguous, tag 0x82 (_nv016741rm, A)",
|
|
"SEC2 instance block: 0x1000, alignment 0, tag 0x7b (Falcon+98 _nv028536rm, executed); framebuffer because GPU+5308 bits 23:22 = 3 (_nv005825rm sets GPU+5310, then _nv030827rm; executed)",
|
|
"five page levels, root first: max(level bytes, 0x1000) = 0x1000 each, alignment 0x1000, 4 KiB page size, tag 0xb0 (walker callback _nv013506rm executed for the version 2 levels 48:47, 46:38, 37:29, 28:21, 20:12)"
|
|
],
|
|
"traced_v100": {
|
|
"pmu_instance_block": "0x7fdf7e000",
|
|
"pmu_super_surface": "0x7fdb98000",
|
|
"hs_image": "0x7fdf79000",
|
|
"falcon_instance_block": "0x7fdf78000",
|
|
"falcon_levels_root_first": [
|
|
"0x7fdf77000",
|
|
"0x7fdf76000",
|
|
"0x7fdf75000",
|
|
"0x7fdf74000",
|
|
"0x7fdf73000"
|
|
]
|
|
},
|
|
"limits": [
|
|
"The order image, instance block, root, lower levels is that of the traced addresses (image, instance block, root) and of the public walker for the four lower levels; the callers _nv060601rm, _nv040832rm and _nv026096rm were not executed, so which lower level receives which of the four pages rests on the walker descending from the root (S, I). All five requests have one shape, so the set of addresses does not depend on it.",
|
|
"The walker context is a fixture: address space flags 0. With the pool flag 0x4000 the callback takes levels from a memory pool instead; the traced root directly below the instance block shows the heap was used.",
|
|
"The surface at PMU+f08 (_nv052623rm, size _nv052618rm = 0x1f5b0) is not modelled: its predicates are PMU object state, and its constructor default is system memory. A framebuffer request of that size before the super surface would move the traced runlist buffers by 0x20000; they are not moved (T).",
|
|
"A super surface that no single free range holds is served in pieces by the original; the model answers NoSpace."
|
|
],
|
|
"tests": [
|
|
"mmu::placement::tests::traced_v100_direct_acr_requests_land_at_the_traced_addresses",
|
|
"mmu::placement::tests::request_shapes_of_the_direct_acr_path",
|
|
"mmu::placement::tests::a_failed_hs_load_leaves_the_heap_as_it_was",
|
|
"mmu::placement::tests::compare_original_memory_placement (ignored, 11,427 rows)"
|
|
],
|
|
"validation": "cargo fmt --check, cargo clippy --workspace --all-targets -- -D warnings, cargo test -p nv-rs-core --lib (596 passed) on 2026-11-19; tools/validate_all.sh and the kernel module checks were not run for this extension; nothing was executed on a GPU"
|
|
}
|
|
}
|