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
257 lines
9.2 KiB
JSON
257 lines
9.2 KiB
JSON
{
|
|
"scope": "GV100 light-secure start of SEC2, FECS and GPCCS and their unload: core gpu::falcon_ls_start compared with original instructions. Emulation only; nothing ran on hardware.",
|
|
"original_sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b",
|
|
"chip_hal": "0x23",
|
|
"rm_hal": 2,
|
|
"core_module": "src/nvidia/src/gpu/falcon_ls_start.rs",
|
|
"harness": "tools/check_gpu_falcon_ls_start_binary.py (interpreter /home/geodd/.local/opt/rea-python/bin/python; --traced stops after the transcript comparison)",
|
|
"oracle": {
|
|
"path": "target/gpu-stage/original-falcon-ls-start.txt",
|
|
"sha256": "ea45b2f9a6f99db0eedf4e5098b31bac0b29343bdc52cc79b9cb72a78f1e729e",
|
|
"rows": 693,
|
|
"rows_by_kind": {
|
|
"T": 3,
|
|
"S": 189,
|
|
"F": 160,
|
|
"G": 157,
|
|
"G left": 3,
|
|
"S left": 1,
|
|
"U": 180
|
|
},
|
|
"regenerated_identically": true,
|
|
"original_report": "reports/gpu-falcon-ls-start-original.json"
|
|
},
|
|
"comparison": {
|
|
"test": "gpu::falcon_ls_start::tests::compare_original_falcon_ls_start (ignored; NV_RS_FALCON_LS_START_ORACLE, NV_RS_GV100_FIRMWARE)",
|
|
"rows_equal": 678,
|
|
"rows_refused_by_rust": 15,
|
|
"refused": "4 rows the harness itself left (GPCCS with OBJACR+37b: the start that is not light-secure; SEC2 with OBJSEC2+509 clear: _nv055931rm) and 11 rows of original paths this module refuses: SEC2 with OBJACR+37b (3), OBJSEC2+508 (1), OBJSEC2+516 (1); FECS and GPCCS with GPU+4de5 (3 each)",
|
|
"compared_per_row": "status, every register access, delay, GPU section, PMU request, feature-state call, FIFO lookup, time start and check, yield and SEC2 command in order, and Falcon bytes +3a2, +3a3, +3a5, +3a7, +582, +583, +584 afterwards",
|
|
"not_compared": "the count of diagnostics; releases of the image descriptors (df tokens, bookkeeping without register access); the yield inside the scrub wait of Falcon+1a0, which nvdec_hs_run::scrub_wait has no service for"
|
|
},
|
|
"transcript": {
|
|
"original": "the harness asserts that the original, run with the read values of the transcript, makes exactly the accesses of lines 164966-165083 on 0x87000-0x87fff (39), 166382-166428 on 0x409000-0x409fff (12) and 167022-167028 on 0x41a000-0x41afff (7)",
|
|
"rust": "gpu::falcon_ls_start::tests::physical_transcript_is_reproduced_from_the_container (ignored; NV_RS_GV100_FIRMWARE, NV_RS_B3_BAR0_TRANSCRIPT): boot descriptor and OS word from the container, same three line ranges; and the non-ignored traced_v100_starts_reproduce_the_transcript_lines with the lines embedded",
|
|
"not_in_these_ranges": "the PMU queue exchanges (pmu_fbq), the interrupt service passes, and lines 166380-166381 (KernelGraphics+198)"
|
|
},
|
|
"unit_tests": [
|
|
"traced_v100_starts_reproduce_the_transcript_lines",
|
|
"unload_after_a_start",
|
|
"unsupported_configurations_are_refused_before_any_access",
|
|
"descriptor_and_os_word_helpers"
|
|
],
|
|
"commands": [
|
|
"/home/geodd/.local/opt/rea-python/bin/python tools/check_gpu_falcon_ls_start_binary.py",
|
|
"NV_RS_FALCON_LS_START_ORACLE=$PWD/target/gpu-stage/original-falcon-ls-start.txt NV_RS_GV100_FIRMWARE=$PWD/target/firmware/nvidia-rs/580.178.04/gv100.fw NV_RS_B3_BAR0_TRANSCRIPT=$PWD/target/trace/b3-bar0.txt cargo test -p nv-rs-core --lib falcon_ls_start -- --include-ignored"
|
|
],
|
|
"objects": {
|
|
"objsec2_bytes": {
|
|
"+0x50": 0,
|
|
"+0x508": 0,
|
|
"+0x509": 1,
|
|
"+0x50a": 1,
|
|
"+0x50c": 0,
|
|
"+0x50e": 1,
|
|
"+0x513": 0,
|
|
"+0x514": 0,
|
|
"+0x516": 0,
|
|
"+0x520": 1
|
|
},
|
|
"falcons_before_the_start": {
|
|
"SEC2": {
|
|
"+0x3a2": 1,
|
|
"+0x3a3": 0,
|
|
"+0x3a4": 0,
|
|
"+0x3a5": 0,
|
|
"+0x3a6": 1,
|
|
"+0x3a7": 1,
|
|
"+0x3aa": 1,
|
|
"+0x3af": 0,
|
|
"+0x3b4": 0,
|
|
"+0x3b7": 0,
|
|
"+0x544": 1,
|
|
"+0x580": 1,
|
|
"+0x581": 1,
|
|
"+0x582": 0,
|
|
"+0x583": 0,
|
|
"+0x584": 0,
|
|
"+0x548": "0x87000",
|
|
"+0x560": "0x6",
|
|
"+0x564": "0xfff2",
|
|
"+0x568": "0xfff2",
|
|
"+0x578": "0x0",
|
|
"+0x5ec": "0x28c40800",
|
|
"+0x5f8": "0x0",
|
|
"+0x608": "0x7",
|
|
"+0x650": "0x1",
|
|
"+0x3d8": "0x0"
|
|
},
|
|
"FECS": {
|
|
"+0x3a2": 1,
|
|
"+0x3a3": 0,
|
|
"+0x3a4": 0,
|
|
"+0x3a5": 0,
|
|
"+0x3a6": 1,
|
|
"+0x3a7": 1,
|
|
"+0x3aa": 1,
|
|
"+0x3af": 0,
|
|
"+0x3b4": 0,
|
|
"+0x3b7": 0,
|
|
"+0x544": 0,
|
|
"+0x580": 1,
|
|
"+0x581": 1,
|
|
"+0x582": 0,
|
|
"+0x583": 0,
|
|
"+0x584": 0,
|
|
"+0x548": "0x409000",
|
|
"+0x560": "0x0",
|
|
"+0x564": "0xffd2",
|
|
"+0x568": "0xfff2",
|
|
"+0x578": "0x0",
|
|
"+0x5ec": "0x5ee8dc00",
|
|
"+0x5f8": "0x0",
|
|
"+0x608": "0x2",
|
|
"+0x650": "0x1",
|
|
"+0x3d8": "0x0"
|
|
},
|
|
"GPCCS": {
|
|
"+0x3a2": 1,
|
|
"+0x3a3": 0,
|
|
"+0x3a4": 0,
|
|
"+0x3a5": 0,
|
|
"+0x3a6": 1,
|
|
"+0x3a7": 1,
|
|
"+0x3aa": 1,
|
|
"+0x3af": 0,
|
|
"+0x3b4": 0,
|
|
"+0x3b7": 0,
|
|
"+0x544": 0,
|
|
"+0x580": 1,
|
|
"+0x581": 1,
|
|
"+0x582": 0,
|
|
"+0x583": 0,
|
|
"+0x584": 0,
|
|
"+0x548": "0x41a000",
|
|
"+0x560": "0x0",
|
|
"+0x564": "0xffd2",
|
|
"+0x568": "0xfff2",
|
|
"+0x578": "0x0",
|
|
"+0x5ec": "0x4781e800",
|
|
"+0x5f8": "0x0",
|
|
"+0x608": "0x3",
|
|
"+0x650": "0x1",
|
|
"+0x3d8": "0x0"
|
|
}
|
|
},
|
|
"falcon_bytes_after_all_starts": {
|
|
"SEC2": {
|
|
"+0x3a2": 0,
|
|
"+0x3a3": 0,
|
|
"+0x3a5": 0,
|
|
"+0x3a7": 1,
|
|
"+0x582": 1,
|
|
"+0x583": 0,
|
|
"+0x584": 1
|
|
},
|
|
"FECS": {
|
|
"+0x3a2": 1,
|
|
"+0x3a3": 0,
|
|
"+0x3a5": 0,
|
|
"+0x3a7": 1,
|
|
"+0x582": 1,
|
|
"+0x583": 0,
|
|
"+0x584": 0
|
|
},
|
|
"GPCCS": {
|
|
"+0x3a2": 1,
|
|
"+0x3a3": 0,
|
|
"+0x3a5": 0,
|
|
"+0x3a7": 1,
|
|
"+0x582": 1,
|
|
"+0x583": 0,
|
|
"+0x584": 0
|
|
}
|
|
},
|
|
"slots": {
|
|
"OBJSEC2+0x3f0": "_nv055933rm",
|
|
"OBJSEC2+0x3f8": "_nv055940rm",
|
|
"OBJSEC2+0x258": "_nv055947rm",
|
|
"OBJSEC2+0x1e8": "_nv055604rm",
|
|
"FECS+0x70": "_nv027634rm",
|
|
"FECS+0x80": "_nv027343rm",
|
|
"FECS+0x88": "_nv027611rm",
|
|
"GPCCS+0x88": "_nv029887rm",
|
|
"GPCCS+0x98": "_nv029620rm",
|
|
"GPU+0x5c8": "_nv030977rm"
|
|
},
|
|
"falcon_slots": {
|
|
"+0x60": "_nv028555rm",
|
|
"+0x90": "_nv028773rm",
|
|
"+0xb8": "_nv028392rm",
|
|
"+0xd0": "_nv028401rm",
|
|
"+0x108": "_nv028387rm",
|
|
"+0x110": "_nv028479rm",
|
|
"+0x120": "_nv028554rm",
|
|
"+0x128": "_nv028679rm",
|
|
"+0x1a0": "_nv028785rm",
|
|
"+0x1c8": "_nv028764rm",
|
|
"+0x1d0": "_nv028761rm",
|
|
"+0x1e0": "_nv028457rm",
|
|
"+0x198": "_nv028454rm",
|
|
"+0x208": "_nv028529rm",
|
|
"+0x218": "_nv028531rm",
|
|
"+0x368": "_nv028744rm",
|
|
"+0x370": "_nv028766rm"
|
|
},
|
|
"interface_slots": {
|
|
"SEC2": {
|
|
"+0x20": "_nv004440rm",
|
|
"+0x28": "_nv004444rm",
|
|
"+0x40": "_nv028810rm",
|
|
"+0x58": "_nv028817rm",
|
|
"+0x68": "_nv028827rm",
|
|
"+0x70": "_nv028829rm",
|
|
"+0xc8": "_nv004458rm"
|
|
},
|
|
"FECS": {
|
|
"+0x20": "_nv028790rm",
|
|
"+0x28": "_nv028812rm",
|
|
"+0x40": "_nv028810rm",
|
|
"+0x58": "_nv028817rm",
|
|
"+0x68": "_nv028827rm",
|
|
"+0x70": "_nv028829rm",
|
|
"+0xc8": "_nv003554rm"
|
|
},
|
|
"GPCCS": {
|
|
"+0x20": "_nv028790rm",
|
|
"+0x28": "_nv028812rm",
|
|
"+0x40": "_nv028810rm",
|
|
"+0x58": "_nv028817rm",
|
|
"+0x68": "_nv028827rm",
|
|
"+0x70": "_nv028829rm",
|
|
"+0xc8": "_nv003584rm"
|
|
}
|
|
},
|
|
"sec2_os_word": "0x18e6cc3",
|
|
"sec2_loader_record": "0x1153b50"
|
|
},
|
|
"rea": {
|
|
"_nv028679rm": "ev_e16797779bbafae61d1b7cc4b498a6a75032e16740d72dc401fa18b9f658418a (procedure_assembly: +3a5 = 0, the two _nv028467rm calls, +3a3 from the argument or +3a2 read before them)",
|
|
"_nv028764rm": "ev_f21774e4589ac1c83bc496951e816e6b0d52c58448202d8cb2d1ea29c634ebd8 (procedure_assembly: CPUCTL bit 6 selects 0x130, else Falcon+1d0 and 0x100; value 2)",
|
|
"_nv027343rm": "capstone listing of the relocated object: the byte test of Falcon+5ec (the GR instance) before the manager's lookup and before the +3a7/+3aa/+608 stores; 0x409a20 value selection"
|
|
},
|
|
"findings": [
|
|
"Falcon+3a6 is 1 on a GV100 (property initializer _nv005778rm, called by the creator _nv006487rm). tools/check_gpu_wpr_blob_binary.py and tools/check_gpu_acr_load_binary.py do not run it; acr_load::gv100_sec2 has byte_3a6 false. In the traced ACR load this changes no access (the interface word reads 4 there), but with bit 0 of base+48 set _nv028539rm(.., false, false) would also clear bit 0.",
|
|
"OBJSEC2 Load does not wait for the firmware's INIT message on a GV100 (OBJSEC2+50c clear); the traced driver reads it later through the SEC2 interrupt service (transcript 169143 on).",
|
|
"After its unload SEC2 is disabled in PMC (bit 14 cleared by the OBJMC branch of _nv028467rm); FECS and GPCCS are left running with their interface enables cleared and every interrupt masked.",
|
|
"The unload of a started FECS or GPCCS makes the accesses gpu::gr_level::falcon_unload already has (interface word, 1 us, interrupt mask)."
|
|
],
|
|
"not_established": [
|
|
"OBJSEC2 Unload's command (unit byte 5, size byte 4) and the SEC2 queue transport beneath _nv055600rm: a provider call here. With the INIT message not yet received the original first waits for it in the SEC2 interrupt service (_nv055949rm).",
|
|
"The Falcon load _nv028572rm with Falcon+3a2 set and a non-empty class list (an interrupt-mask write instead of status 0xffff): refused; the harness's GPU has an empty class list.",
|
|
"The dword +38 of the SEC2 base object other than -1 was only exercised as a patched value (status 0x56 from _nv055904rm); no writer other than the constructor _nv037808rm was found in the pseudocode.",
|
|
"FECS image memory other than the default (0x409a20 values other than 0x80000002), GR instances other than 0, GPU+4de5, resume, multi-GPU: refused, not executed."
|
|
],
|
|
"hardware": "not executed"
|
|
}
|