mirror of
https://github.com/QuixiAI/nvdriver.git
synced 2026-12-06 06:28:39 +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
422 lines
24 KiB
JSON
422 lines
24 KiB
JSON
{
|
|
"scope": "GV100 MemorySystem Load step that runs an HS Falcon image on NVDEC: MemorySystem+cb8 (_nv045404rm), +c78 (_nv045174rm) with the wait at +c80 (_nv046026rm), the direct loader Falcon+228 (_nv028570rm), and the range write MemorySystem+e98 (_nv044383rm)",
|
|
"evidence_category": "instruction emulation, plus comparison with the physical BAR0 transcript of the original driver on the V100",
|
|
"original_artifact_sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b",
|
|
"call_chain": {
|
|
"verified_in_disassembly": [
|
|
"MemorySystem Load _nv045893rm calls MemorySystem+c68 unless the GPU+20c8 object has byte +2cf set with word +2d0 or byte +2d2 nonzero (and, when _nv054331rm is true, unless GPU+914 is set). A nonzero status of +c68 fails Load.",
|
|
"MemorySystem+c68 is _nv045171rm for chip HAL 0x23. It calls +cb8 (_nv045404rm) and, when that returns true, +c78 (_nv045174rm). It discards the status of +c78 and returns zero.",
|
|
"_nv045404rm on the traced V100: +ca8 (_nv045506rm) reads 0x1180fc and 0x1180f4 and clears MemorySystem+8be0; +ca0 (_nv044833rm) reads the three 0x100cd0 words; with the VPR disabled (bit 4 of word 2 clear), GPU+914 clear and a usable GPU+2080 object it returns true because OBJSEC2+438 (_nv055811rm) is constant false and MemorySystem+cc0 (_nv045387rm) constant true.",
|
|
"_nv045174rm: 0x40 without a usable GPU+2080 object; +dc8 (_nv044493rm) reads 0x1180fc; _nv018167rm prepares the image; _nv016965rm places the signature; NVDEC+3d8 is read again; then Falcon+228 (_nv028570rm) with wait argument 0, or Falcon+230 when NVDEC+423 is set and the GPU+20c8 function at +270 is true. After a zero status it sets NVDEC+444 and Falcon+3a2, calls MemorySystem+c80 and clears NVDEC+444.",
|
|
"_nv028570rm: Falcon+220(0) (_nv028574rm: Falcon+128 reset), _nv028746rm (1 microsecond delay, IRQMCLR = ffffffff), _nv028445rm (base2+24 |= 0x80, DMACTL = 0), two _nv028523rm IMEM loads, the DMEM load, BOOTVEC = 0, Falcon+1c8 start, Falcon+220(1). With wait argument 0 it always returns zero; a DMEM failure is only logged.",
|
|
"_nv046026rm: _nv059492rm, _nv028782rm with 0x3567e0 microseconds and flags 4 (CPUCTL bit 4 polled, _nv059505rm line 0x76 between polls), then unless Load flag 0x20 is set the 0x100cd0 words again; a VPR still enabled gives 0x40 after reading Falcon MAILBOX0 for the log.",
|
|
"_nv044383rm is called by _nv045889rm (MemorySystem+1e0 body _nv045891rm) later in the same Load; without an allocation at MemorySystem+4070 it writes 2 and 3 to 0x100cd8."
|
|
],
|
|
"binder_note": "The slots MemorySystem+ad8 to +d90 are bound by _nv005936rm, which reports/gv100-engine-hal-bindings.json does not list for the class. This harness runs it."
|
|
},
|
|
"original_sequence_on_the_traced_v100": [
|
|
"139267-139274 predicate: R 1180fc, R 1180f4, then W/R 100cd0 for indices 0, 1, 2 (0x1ffff000, 0x1, 0x2a).",
|
|
"139275-139278 selection: R 1180fc (bits 24:20 = 7, above 6, so the bundle at OBJBSP+260, 0x1146eb0); R 21644 = 1 (bit 0 set: tags 0x26/0x1a, absent, so 0x23/0x18 after a diagnostic); 14.6 ms of unpacking; R 10ac08 = 0 (bit 20 clear: tag 0xe signature); R 21644 again.",
|
|
"139279-139299 reset, _nv028467rm twice: R 200; R 84048; W 84014 ffffffff; R 200, W 200 without bit 15, 2 microseconds; R 200; R 200; R 200, W 200 with bit 15, 2 microseconds; R 8412c twice; R/W 84040; R 8410c until bits 2:1 clear (3, then 1 after 7.8 ms); R 200; W 84084 = GPU+de0 (0x140000a1); clock-gating tables for 0x84000: W 85320 0x42, W 84134 0x20008, W 85324 0, W 85328 0x3fff, W 8532c 0x800000, W 85330 0xffff000e, W 84674 0.",
|
|
"139300-139303: W 84014 ffffffff; R 84624 0x110, W 84624 0x190; W 8410c 0.",
|
|
"139304-140283 load: W 84180 0x1000000, W 84188 0 and 64 words (0x100 bytes non-secure at 0); W 84180 0x11000100, W 84188 1..13 and 832 words (0xd00 bytes secure at 0x100); W 841c0 0x1000000 and 64 words (0x100 data bytes, the first 16 the tag 0xe signature).",
|
|
"140284-140308: W 84104 0; R 84100 0x10; W 84100 2; R 84100 21 times 0, then 0x10 (63 microseconds).",
|
|
"140309-140316: W/R 100cd0 for indices 0, 1, 2 (unchanged); W 100cd8 2; W 100cd8 3."
|
|
],
|
|
"signature_selection": {
|
|
"records": "Bundle 0x1146eb0: tag 0xd (descriptor 0x114b408) is the debug signature, tag 0xe (0x114b420) the production signature, tag 0x31 (0x114b3d8, value 0xe00) the byte offset in the image where it is placed, tag 0x32 (0x114b3f0, value 0) the index of the first signature word. Tags 0x2e (signature count, default 1) and 0x3c (three version words, default 0) are absent.",
|
|
"selector": "_nv016965rm asks the PMU class function at +3d8 (_nv052308rm): bit 20 of register 0x10ac08. Set selects tag 0xd, clear tag 0xe. The V100 read 0, so tag 0xe was placed; the 16 bytes are at image offset 0xe00, which the layout record (tag 0x18) loads as DMEM offset 0.",
|
|
"image_tag_selector": "Separate from the signature: NVDEC+3d8 (_nv046969rm) is true when bit 0 of register 0x21644 is clear and then selects tags 0x24/0x19, otherwise 0x26/0x1a; when that image tag is absent tags 0x23/0x18 are used. The bundle carries only 0x23/0x18."
|
|
},
|
|
"implemented": [
|
|
"Core gpu::nvdec_hs_run: scrub_predicate (_nv045404rm), run (_nv045174rm with _nv046026rm), direct_load (_nv028570rm), falcon_slot_220 (_nv028574rm with the Falcon+128 reset), prepare (_nv018167rm after bundle choice), vpr_info (_nv044833rm), vpr_range_write (_nv044383rm). no_std, no unsafe.",
|
|
"Reused: gpu::falcon_imem::load for _nv028523rm, gpu::firmware_signature::apply for _nv016965rm, gpu::firmware_unpack for the descriptors, gpu::clock_gating::load_blcg and load_slcg for _nv030976rm and _nv030977rm, gpu::firmware_pack for the records.",
|
|
"tools/check_gpu_nvdec_hs_run_binary.py runs the original instructions and writes target/gpu-stage/original-nvdec-hs-run.txt; the ignored test gpu::nvdec_hs_run::tests::compare_original_nvdec_hs_run compares status, state and the ordered event list (register reads and writes, delays, time calls, feature services, FIFO lookups, section calls, service calls) of every case.",
|
|
"The ignored test physical_transcript_is_reproduced_from_the_container feeds the Rust functions the read values of the transcript and the real container record and requires every access to equal the next transcript line."
|
|
],
|
|
"rust_api": {
|
|
"trait": "nvdec_hs_run::Io: clock_gating::Services (BAR0 read32/write32, feature_state, record_feature) plus delay_us (_nv049598rm), timeout_reset (_nv059492rm), timeout_start (_nv059509rm), timeout_check (_nv059505rm; the provider compares monotonic time), fifo_lookup (FIFO+1b8), gpu_section (_nv031478rm), lsfm_manages_falcon (_nv043190rm), vbios_slot_270, fuse_register_67c, gpu_slot_3b8.",
|
|
"functions": [
|
|
"scrub_predicate(io, PredicateInputs) -> Result<Predicate, Error>",
|
|
"run(io, &Pack, &mut Workspace, image scratch, &mut Falcon, &mut MemorySystem, Inputs) -> Result<NvStatus, Error>",
|
|
"direct_load(io, &mut Falcon, &Inputs, Layout, image) -> Result<NvStatus, Error>",
|
|
"falcon_slot_220(io, &mut Falcon, &Inputs, after) -> Result<NvStatus, Error>",
|
|
"prepare(&Pack, bundle, slot_3d8, &mut Workspace, image scratch) -> Result<Result<Prepared, NvStatus>, Error>",
|
|
"vpr_info(io, GpuFlags, bound) -> Result<VprInfo, Error>",
|
|
"vpr_range_write(io, Option<VprAllocation>, qword_4080) -> Result<(), Error>"
|
|
],
|
|
"status_convention": "Outer Err: a provider failed (Error::Provider), or the record or an unimplemented branch prevents execution. Inner NvStatus: the executed original status (0, 0x40, 0x56, 0x1f, 0x65, or a nonzero time-check status).",
|
|
"required_inputs": "Falcon (bases, GPU+de0 copy, engine descriptor, state bytes), Nvdec bytes +50 and +423, GpuFlags (GPU+915, 917, 918, 919, 926), clock_gating::Inputs, the Load flags, max_imem_words and max_vpr_index_writes. The last two are bounds the original does not have."
|
|
},
|
|
"verification": {
|
|
"original_cases": 754,
|
|
"cases_by_kind": {
|
|
"predicate (P)": 150,
|
|
"falcon +220 (S)": 454,
|
|
"run (F)": 87,
|
|
"range write (V)": 63
|
|
},
|
|
"oracle_sha256": "89e22c4f5c8a84f4d3b7fa08555cd839724dc024e5d8b0d74284f7d70afdb6f1",
|
|
"oracle_regenerates_identically": true,
|
|
"comparison_test_passed": true,
|
|
"original_functions_executed": [
|
|
"_nv004065rm",
|
|
"_nv004069rm",
|
|
"_nv004071rm",
|
|
"_nv005245rm",
|
|
"_nv016945rm",
|
|
"_nv016965rm",
|
|
"_nv017871rm",
|
|
"_nv017872rm",
|
|
"_nv017874rm",
|
|
"_nv017875rm",
|
|
"_nv017879rm",
|
|
"_nv017880rm",
|
|
"_nv017881rm",
|
|
"_nv017883rm",
|
|
"_nv017885rm",
|
|
"_nv017887rm",
|
|
"_nv017890rm",
|
|
"_nv017897rm",
|
|
"_nv017898rm",
|
|
"_nv018167rm",
|
|
"_nv018224rm",
|
|
"_nv018227rm",
|
|
"_nv018230rm",
|
|
"_nv018393rm",
|
|
"_nv018399rm",
|
|
"_nv021629rm",
|
|
"_nv026764rm",
|
|
"_nv028371rm",
|
|
"_nv028412rm",
|
|
"_nv028445rm",
|
|
"_nv028452rm",
|
|
"_nv028456rm",
|
|
"_nv028457rm",
|
|
"_nv028461rm",
|
|
"_nv028467rm",
|
|
"_nv028484rm",
|
|
"_nv028523rm",
|
|
"_nv028533rm",
|
|
"_nv028539rm",
|
|
"_nv028570rm",
|
|
"_nv028574rm",
|
|
"_nv028577rm",
|
|
"_nv028579rm",
|
|
"_nv028612rm",
|
|
"_nv028662rm",
|
|
"_nv028672rm",
|
|
"_nv028674rm",
|
|
"_nv028678rm",
|
|
"_nv028679rm",
|
|
"_nv028734rm",
|
|
"_nv028746rm",
|
|
"_nv028761rm",
|
|
"_nv028764rm",
|
|
"_nv028766rm",
|
|
"_nv028782rm",
|
|
"_nv028785rm",
|
|
"_nv028831rm",
|
|
"_nv028843rm",
|
|
"_nv028849rm",
|
|
"_nv028851rm",
|
|
"_nv030167rm",
|
|
"_nv030423rm",
|
|
"_nv030519rm",
|
|
"_nv030556rm",
|
|
"_nv030728rm",
|
|
"_nv030732rm",
|
|
"_nv030894rm",
|
|
"_nv030902rm",
|
|
"_nv030929rm",
|
|
"_nv030976rm",
|
|
"_nv030977rm",
|
|
"_nv035890rm",
|
|
"_nv035891rm",
|
|
"_nv041568rm",
|
|
"_nv043190rm",
|
|
"_nv043603rm",
|
|
"_nv043619rm",
|
|
"_nv043634rm",
|
|
"_nv043639rm",
|
|
"_nv043743rm",
|
|
"_nv044383rm",
|
|
"_nv044493rm",
|
|
"_nv044833rm",
|
|
"_nv045113rm",
|
|
"_nv045156rm",
|
|
"_nv045174rm",
|
|
"_nv045387rm",
|
|
"_nv045392rm",
|
|
"_nv045404rm",
|
|
"_nv045506rm",
|
|
"_nv046026rm",
|
|
"_nv046468rm",
|
|
"_nv046477rm",
|
|
"_nv046934rm",
|
|
"_nv046969rm",
|
|
"_nv046979rm",
|
|
"_nv046984rm",
|
|
"_nv049082rm",
|
|
"_nv049819rm",
|
|
"_nv052308rm",
|
|
"_nv052695rm",
|
|
"_nv055400rm",
|
|
"_nv055811rm",
|
|
"_nv059506rm",
|
|
"_nv059713rm",
|
|
"_nv059715rm",
|
|
"_nv059716rm"
|
|
],
|
|
"binders_executed": [
|
|
"_nv005811rm",
|
|
"_nv005876rm",
|
|
"_nv005936rm",
|
|
"_nv005937rm",
|
|
"_nv005938rm",
|
|
"_nv005939rm",
|
|
"_nv005940rm",
|
|
"_nv005947rm",
|
|
"_nv005951rm",
|
|
"_nv005952rm",
|
|
"_nv005980rm",
|
|
"_nv005982rm",
|
|
"_nv005997rm",
|
|
"_nv006001rm",
|
|
"_nv006010rm",
|
|
"_nv006011rm",
|
|
"_nv006034rm",
|
|
"_nv006035rm"
|
|
],
|
|
"bindings_checked": {
|
|
"MemorySystem+0xc68": "_nv045171rm",
|
|
"MemorySystem+0xc78": "_nv045174rm",
|
|
"MemorySystem+0xc80": "_nv046026rm",
|
|
"MemorySystem+0xc88": "_nv045113rm",
|
|
"MemorySystem+0xca0": "_nv044833rm",
|
|
"MemorySystem+0xca8": "_nv045506rm",
|
|
"MemorySystem+0xcb0": "_nv045392rm",
|
|
"MemorySystem+0xcb8": "_nv045404rm",
|
|
"MemorySystem+0xcc0": "_nv045387rm",
|
|
"MemorySystem+0xdc8": "_nv044493rm",
|
|
"MemorySystem+0xe98": "_nv044383rm",
|
|
"OBJBSP+0x1c8": "_nv046468rm",
|
|
"OBJBSP+0x1e0": "_nv046984rm",
|
|
"OBJBSP+0x238": "_nv046979rm",
|
|
"OBJBSP+0x260": "_nv018230rm",
|
|
"OBJBSP+0x268": "_nv018227rm",
|
|
"OBJBSP+0x270": "_nv018224rm",
|
|
"OBJBSP+0x3c8": "_nv046934rm",
|
|
"OBJBSP+0x3d0": "_nv046477rm",
|
|
"OBJBSP+0x3d8": "_nv046969rm",
|
|
"Falcon+0x128": "_nv028679rm",
|
|
"Falcon+0x1a0": "_nv028785rm",
|
|
"Falcon+0x1c8": "_nv028764rm",
|
|
"Falcon+0x1d0": "_nv028761rm",
|
|
"Falcon+0x1d8": "_nv028461rm",
|
|
"Falcon+0x1e0": "_nv028457rm",
|
|
"Falcon+0x220": "_nv028574rm",
|
|
"Falcon+0x228": "_nv028570rm",
|
|
"Falcon+0x230": "_nv028567rm",
|
|
"Falcon+0x2e8": "_nv028579rm",
|
|
"Falcon+0x2f0": "_nv028577rm",
|
|
"Falcon+0x370": "_nv028766rm",
|
|
"Falcon+0x378": "_nv028612rm",
|
|
"Falcon+0x388": "_nv028734rm",
|
|
"OBJMC+0x150": "_nv043634rm",
|
|
"OBJMC+0x158": "_nv043619rm",
|
|
"OBJMC+0x188": "_nv043603rm",
|
|
"OBJMC+0x190": "_nv043639rm",
|
|
"OBJACR+0x370": "_nv016945rm",
|
|
"OBJSEC2+0x438": "_nv055811rm",
|
|
"PMU class+0x3d8": "_nv052308rm",
|
|
"GPU+0x3b0": "_nv030929rm",
|
|
"GPU+0x3b8": "_nv030210rm",
|
|
"GPU+0x5c8": "_nv030977rm",
|
|
"GPU+0x740": "_nv030423rm",
|
|
"GPU+0x750": "_nv030519rm",
|
|
"GPU+0x768": "_nv030894rm"
|
|
},
|
|
"falcon_after_original_configuration": {
|
|
"Falcon+0x544": "0x1",
|
|
"Falcon+0x548": "0x84000",
|
|
"Falcon+0x550": "0x84600",
|
|
"Falcon+0x55c": "0x140000a1",
|
|
"Falcon+0x558": "0x0",
|
|
"Falcon+0x581": "0x1",
|
|
"Falcon+0x5ec": "0x8f99e100",
|
|
"Falcon+0x608": "0x0",
|
|
"Falcon+0x621": "0x0",
|
|
"Falcon+0x650": "0x1",
|
|
"Falcon+0x3a2": "0x0",
|
|
"Falcon+0x3af": "0x0",
|
|
"Falcon+0x5d8": "OBJBSP+0xe8"
|
|
},
|
|
"fixture_supplied": [
|
|
"_nv053907rm",
|
|
"_nv053912rm",
|
|
"_nv049598rm",
|
|
"_nv059509rm",
|
|
"_nv059505rm",
|
|
"_nv059492rm",
|
|
"_nv052687rm",
|
|
"_nv052701rm",
|
|
"_nv059714rm",
|
|
"_nv052705rm",
|
|
"_nv049786rm",
|
|
"_nv031034rm",
|
|
"_nv031133rm",
|
|
"_nv030608rm",
|
|
"_nv031478rm",
|
|
"_nv028817rm",
|
|
"_nv043721rm",
|
|
"_nv047869rm",
|
|
"_nv047868rm",
|
|
"_nv046745rm",
|
|
"_nv046747rm",
|
|
"_nv049765rm",
|
|
"os_mem_copy",
|
|
"FIFO+1b8",
|
|
"GPU+1e78 object +168",
|
|
"GPU+20c8 object +270",
|
|
"GPU+3b8",
|
|
"synthetic bundle getter"
|
|
],
|
|
"stored_by_harness": {
|
|
"OBJBSP vtables (as creator _nv005713rm)": {
|
|
"0x0": ".rodata+0x4d94840",
|
|
"0x10": ".rodata+0x4d94870",
|
|
"0x8": ".rodata+0x4d94858",
|
|
"0xe8": ".rodata+0x4d948f8",
|
|
"0x108": ".rodata+0x4d94a58",
|
|
"0x120": ".rodata+0x4d94a78",
|
|
"0x180": ".rodata+0x4d94ad0"
|
|
},
|
|
"OBJBSP interface pointers (as creator _nv005713rm)": {
|
|
"0x190": "OBJBSP+0x10",
|
|
"0x1a8": "OBJBSP+0x108",
|
|
"0x198": "OBJBSP+0x8",
|
|
"0x1a0": "OBJBSP+0xe8",
|
|
"0x1b0": "OBJBSP+0x120",
|
|
"0x1b8": "OBJBSP+0x180",
|
|
"0x1c0": "OBJBSP+0x0"
|
|
},
|
|
"OBJBSP+0x100": "Falcon object",
|
|
"OBJBSP+0xf8": "1 (interface byte +10; inferred, see the validation report)",
|
|
"GPU+0xde0": "0x140000a1",
|
|
"GPU+0xcac": "0x20",
|
|
"GPU+0x1e20": "GPU",
|
|
"GPU children": "1ea0 OBJMC, 1ec0 MemorySystem, 2080 OBJBSP, 20c8, 2120 PMU class, 2308 OBJSEC2, 2310, 2318 OBJACR, 1e78"
|
|
},
|
|
"physical_transcript": {
|
|
"file": "target/trace/b3-bar0.txt (sha256 348f232f9604a06b86b9d8574e6a3883e4cecc2e727ee3cf25aa593d76c055be)",
|
|
"lines": [
|
|
139267,
|
|
140316
|
|
],
|
|
"accesses": 1050,
|
|
"original_instructions": "With the transcript's read values the emulated original produces exactly these 1,050 accesses (asserted on every harness run): 8 by the predicate, 1,040 by the run, 2 by the range write.",
|
|
"rust": "physical_transcript_is_reproduced_from_the_container passes: offsets, values and order of all 1,050 accesses, reads included, equal the transcript, with the image taken from the container record 0x1146eb0/0x23 and the signature from 0x1146eb0/0xe. The requested window 139269-140316 is the last 1,048 of them; lines 139267 and 139268 are the predicate's first two reads.",
|
|
"provider_answers_used": "clock-gating features 7 and 0x13 in state 0, FIFO lookup of descriptor 0x8f99e100 succeeding with an engine index _nv043619rm passes back to the FIFO (0x41 in the test), that lookup returning bit 15, the GPU+20c8 function false, the Falcon not managed by the GPU+2310 object, every time check 0."
|
|
},
|
|
"unit_tests_passed": 3,
|
|
"ignored_tests_passed": 2,
|
|
"workspace_tests_passed": 562,
|
|
"strict_clippy_and_format_passed": true
|
|
},
|
|
"firmware_container": {
|
|
"previous_sha256": "d0cc11446bf4c2422a47845216535f001fa51b868f541d54d9fbd3fbf28cb4e6",
|
|
"previous_records": 59,
|
|
"previous_bytes": 93476,
|
|
"sha256": "e4609de4e540648ac2c008d953229f952c9fdae984fb4dc11a76e0e5afa8d8f3",
|
|
"records": 77,
|
|
"bytes": 407461,
|
|
"appended": [
|
|
"bundle 0x1146eb0 (OBJBSP+260, NVDEC HS): tags 0x23 (0x114b3a8, 3840 bytes), 0x18 (0x114b3c0), 0x31 (0x114b3d8), 0x32 (0x114b3f0), 0xd (0x114b408), 0xe (0x114b420)",
|
|
"bundle 0x1143718 (PMU LS): tags 0x12 (0x114f6e0, 900 bytes), 0x23 (0x114f6f8, 288512 bytes)",
|
|
"bundle 0x1140490 (SEC2 LS): tags 0x23 (0x1153b38, 204544 bytes), 0x12 (0x1153b50, 656 bytes), 0x27 (0x1153b68, 192 bytes)",
|
|
"bundle 0x1146be8 (OBJBSP+270, the NVDEC HS bundle used when bits 24:20 of 0x1180fc are at most 6): tags 0x23 (0x114b798, 3584 bytes), 0x18, 0x31, 0x32, 0xd, 0xe",
|
|
"descriptor 0x1147220 selected directly (OBJBSP+288, NVDEC LS, 230144 bytes)"
|
|
],
|
|
"stability": "The first 59 records are unchanged in order, descriptor, bundle, tag, sizes, flags and stored hash; only their payload offsets moved because the record table grew. Format version and the kernel loader are unchanged.",
|
|
"decoded_hashes_equal_analysis": "The decoded SHA-256 of every appended record named in reports/gv100-acr-bootstrap-analysis.json equals the hash that report computed from the original object; the regenerated analysis lists no image as loaded on hardware but absent from the container."
|
|
},
|
|
"hardware": {
|
|
"preconditions": [
|
|
"The first-open engine reset has run (bring-up level 3: PMC enable reads 0x1fecdff1). Bit 15 of PMC enable is the NVDEC bit the reset toggles; if it reads clear the original skips the interrupt setup and the disable and only enables.",
|
|
"BAR0 access and the timer used by the time provider. No BAR2, instance memory, DMA, interrupt or bus-master state is used: the image goes through the IMEM and DMEM ports.",
|
|
"In the original this runs in MemorySystem Load, after MC Load (transcript 139243-139246) and before the WPR and SEC2 steps. Lost events at 138656/138662 precede it; nothing in the code read here depends on them.",
|
|
"Provider answers must be real: the FIFO engine table (descriptor 0x8f99e100 to an OBJMC engine index, and that index to reset bit 15) is not derived here."
|
|
],
|
|
"expected_observations": {
|
|
"reads": "0x1180fc 0x247fffff, 0x1180f4 0, 0x100cd0 words 0x1ffff000 / 0x1 / 0x2a before and after, 0x21644 1, 0x10ac08 0, PMC enable 0x1fecdff1 (0x1fec5ff1 while bit 15 is clear), 0x84048 4, 0x8412c 0x996b1136, 0x84040 0, 0x8410c 3 then 1, 0x84624 0x110, 0x84100 0x10 before the start and 0x10 again after about 21 polls.",
|
|
"status": "0, with Falcon+3a0 set, +5d5 = 3, +5d4 = 0x60 from HWCFG1 0x996b1136."
|
|
},
|
|
"state_left_behind": [
|
|
"PMC enable equal to its value at entry; NVDEC was disabled for 2 microseconds and is enabled.",
|
|
"NVDEC Falcon halted (CPUCTL 0x10) with the HS image in IMEM (page 0 non-secure, 13 secure pages from 0x100) and 0x100 bytes in DMEM; BOOTVEC 0.",
|
|
"Falcon interrupts masked (IRQMCLR written ffffffff twice); 0x84624 bit 7 set (0x190); DMACTL 0; 0x84084 = 0x140000a1; clock-gating registers 0x85320, 0x84134, 0x85324, 0x85328, 0x8532c, 0x85330, 0x84674 as listed above.",
|
|
"0x100cd0 index left at 2; 0x100cd8 written with 2 and 3 by the later range write. The VPR words were the same before and after on this boot."
|
|
],
|
|
"original_teardown": "None for this step. MemorySystem+c68 discards the status, NVDEC+444 is cleared, the decoded image stays cached (NVDEC+498) until _nv018393rm frees it from the destructor path _nv018404rm. The next NVDEC accesses in the transcript are at line 164713 (W 84014, the same clock-gating table writes), in a later Load body.",
|
|
"restoring_for_a_test": "The step starts by resetting the engine through PMC bit 15, and so does every later Falcon+128 reset, so a rerun or a return to the original driver needs no prior cleanup. To leave the engine as a reset leaves it: clear and set PMC enable bit 15 with 2 microsecond delays and wait for bits 2:1 of 0x8410c to clear."
|
|
},
|
|
"inferred_not_verified": [
|
|
"The interface byte at OBJBSP+f8 (interface +10) is set. _nv028412rm asks the engine's configuration function (+3c8, _nv046934rm: bases 0x84000 and 0x84600) only then; no store to that byte was found. With it set the original instructions reproduce the transcript, with it clear they would not toggle PMC bit 15 nor address 0x84000.",
|
|
"GPU+2308 as OBJSEC2, GPU+2318 as OBJACR, GPU+2120 as the PMU class, GPU+2310 as the object _nv043190rm reads and GPU+1e78 as the fuse object are identified by the functions called through them and by earlier work, not by a GPU child table.",
|
|
"Which OBJMC engine index the FIFO returns for descriptor 0x8f99e100. Only indices _nv043619rm maps through the FIFO (9, 0xc, 0xf-0x17, 0x23, 0x26-0x28, 0x2f, 0x41, 0x54) can give bit 15; 0x41 was used.",
|
|
"Falcon+608 is zero after _nv046468rm; where the original stores the LSF id was not looked for. It only selects the bit _nv043190rm tests.",
|
|
"The purpose of the image (VPR scrub or unlock) remains inferred, as in the analysis report."
|
|
],
|
|
"binary_versus_pseudocode": [
|
|
"The wait is not in the loader: _nv045174rm passes wait argument 0 to Falcon+228 and MemorySystem+c80 (_nv046026rm) waits afterwards.",
|
|
"Falcon+220 is _nv028574rm, which performs the reset through Falcon+128; the PMC toggle is done by OBJMC+150 (_nv043634rm), reached from _nv028467rm because the Falcon has a configuration record (+544).",
|
|
"The caller _nv045171rm returns zero whatever +c78 returned.",
|
|
"_nv028782rm returns the last _nv059505rm status when the Falcon halts, so a nonzero status other than 0x65 is returned after a successful halt.",
|
|
"_nv045156rm rewrites the 0x100cd0 index until its low two bits read back; there is no bound."
|
|
],
|
|
"limits": [
|
|
"Production first open does not call any of this. The kernel module is unchanged by this increment.",
|
|
"Diagnostics are counted by the harness but not compared.",
|
|
"Only the GV100 path: Falcon+230 (NVDEC+423), OBJMC engine indices 0xd and 0x31, a Falcon without a configuration record or without OBJMC, more than one GPU in the per-GPU loops and a rerun with the image still cached return Error::Unsupported or are not modelled.",
|
|
"max_vpr_index_writes and max_imem_words bound loops and transfers the original leaves unbounded; record contents that would make the original read or write outside its buffers are refused after the selection reads and before the engine is reset.",
|
|
"The predicate's VPR-enabled branch reads a register whose offset comes from the function at +168 of the GPU+1e78 object (argument 0x67c); that function is a provider here.",
|
|
"scrub_predicate ignores whether the GPU+2308 object's byte +50 is set, which only changes a diagnostic; with the pointer null it returns Error::MissingObject where the original would fault.",
|
|
"No hardware executed. The comparison with the transcript covers register order and values; delays and the time bound are not visible in it."
|
|
],
|
|
"tested_sources_sha256": {
|
|
"src/nvidia/src/gpu/nvdec_hs_run.rs": "0618bc51fc4fac2650e39199dafb62feaedceca2b132919b75878593491d8db6",
|
|
"src/nvidia/src/gpu/nvdec_hs_run_tests.rs": "eccae00d3946054d68ccfdc5b070909d1e4dc632673e1ee13ed5b7062d593edc",
|
|
"tools/check_gpu_nvdec_hs_run_binary.py": "da286bf1769f07fc50994fe02e3eabc0de470a3685c72dc2fa932eada8bded86",
|
|
"tools/extract_gv100_firmware.py": "1fcdf9e3e474d4e8fdc7e976401fe0628060fb92db49ed5c2a7a5bad34ff2bbe",
|
|
"src/nvidia/src/gpu/firmware_pack.rs": "8b687d4f6f9ac7f33a401076960530bc928fbe43b271e4c0c28c96f61213719f"
|
|
},
|
|
"commands": [
|
|
"/home/geodd/.local/opt/rea-python/bin/python tools/extract_gv100_firmware.py --check",
|
|
"/home/geodd/.local/opt/rea-python/bin/python tools/check_gpu_nvdec_hs_run_binary.py",
|
|
"NV_RS_NVDEC_HS_RUN_ORACLE=target/gpu-stage/original-nvdec-hs-run.txt NV_RS_GV100_FIRMWARE=target/firmware/nvidia-rs/580.178.04/gv100.fw NV_RS_B3_BAR0_TRANSCRIPT=target/trace/b3-bar0.txt cargo test -p nv-rs-core --lib nvdec_hs_run -- --ignored (absolute paths)",
|
|
"NV_RS_GV100_FIRMWARE=... cargo test -p nv-rs-core --lib firmware_pack -- --include-ignored"
|
|
],
|
|
"reports": [
|
|
"reports/gpu-nvdec-hs-run-original.json",
|
|
"reports/gv100-firmware-pack.json"
|
|
],
|
|
"correction_2026_11_19_hal_bindings": {
|
|
"date": "2026-11-19",
|
|
"cause": "reports/gv100-engine-hal-bindings-correction.json: argument conventions of the binders and property initializers established from their callers",
|
|
"change": "The harness ran the parent-class binders _nv005997rm on OBJBSP+0 and _nv006034rm on PMU+0. Their callers pass the sub-objects OBJBSP+120 and PMU+108. Both calls now pass the sub-object.",
|
|
"harness": "tools/check_gpu_nvdec_hs_run_binary.py",
|
|
"harness_sha256_after": "7c638ad27908798e7ecb0d1a3c9d84b5222827a1835654961cd29e77c7b2ccb4",
|
|
"oracle": "target/gpu-stage/original-nvdec-hs-run.txt",
|
|
"oracle_sha256_before": "89e22c4f5c8a84f4d3b7fa08555cd839724dc024e5d8b0d74284f7d70afdb6f1",
|
|
"oracle_sha256_after": "89e22c4f5c8a84f4d3b7fa08555cd839724dc024e5d8b0d74284f7d70afdb6f1",
|
|
"oracle_changed": false,
|
|
"bindings_report_sha256": "8fbaef939de28a5295ac8cb81cebed21ff9a0310afaff0fabe004978ef1c2386",
|
|
"rust_sources_changed": false,
|
|
"comparison_tests_passed_after": [
|
|
"gpu::nvdec_hs_run::tests::compare_original_nvdec_hs_run"
|
|
],
|
|
"harness_sha256_before": "da286bf1769f07fc50994fe02e3eabc0de470a3685c72dc2fa932eada8bded86"
|
|
}
|
|
}
|