mirror of
https://github.com/QuixiAI/nvdriver.git
synced 2026-12-06 22:48:43 +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
151 lines
12 KiB
JSON
151 lines
12 KiB
JSON
{
|
|
"scope": "The OBJLSFM Falcon mask (OBJLSFM+198) on a GV100 and its use by bring-up level 5 for Io::lsfm_manages_falcon",
|
|
"evidence_category": "instruction emulation of the original producers; build, codegen and guest validation of the kernel wiring; three lines of the physical transcript. No hardware executed.",
|
|
"original_artifact_sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b",
|
|
"oracle": {
|
|
"harness": "tools/check_gpu_lsfm_mask_binary.py",
|
|
"file": "target/gpu-stage/original-lsfm-mask.txt",
|
|
"sha256": "42aeaba1019dcd275e46a8d567fdc4729346bd90b289c495764ae5291195ae89",
|
|
"regenerates_identically": true,
|
|
"cases": {
|
|
"K": 160,
|
|
"Q": 90,
|
|
"F": 240,
|
|
"L": 4,
|
|
"U": 32,
|
|
"C": 280,
|
|
"P": 96,
|
|
"A": 395,
|
|
"B": 72,
|
|
"I": 3147,
|
|
"V": 1
|
|
},
|
|
"total_cases": 4517,
|
|
"case_kinds": {
|
|
"K": "chip predicates _nv030932rm/_nv030933rm with _nv031281rm",
|
|
"Q": "_nv043190rm",
|
|
"F": "fuse predicate _nv030951rm (aperture and direct read paths)",
|
|
"L": "instance-location list selection _nv043743rm",
|
|
"U": "start of the PMU class constructor _nv051986rm",
|
|
"C": "OBJLSFM ConstructEngine _nv043185rm",
|
|
"P": "OBJLSFM PreInitLocked _nv043239rm",
|
|
"A": "OBJACR ConstructEngine _nv016731rm (+37b, +37c, +381, +391)",
|
|
"B": "OBJACR PreInitLocked _nv016961rm",
|
|
"I": "OBJLSFM InitLocked _nv043236rm over the five real GV100 Falcons",
|
|
"V": "the GV100 chain with the traced register words"
|
|
},
|
|
"comparison_test": "gpu::lsfm_mask::tests::compare_original_lsfm_mask (ignored; NV_RS_LSFM_MASK_ORACLE), passed for all 4,517 cases on its first complete run",
|
|
"detail": "reports/gpu-lsfm-mask-original.json"
|
|
},
|
|
"function_chain": [
|
|
"OBJLSFM ConstructEngine _nv043185rm: _nv049786rm(gpu, \"RMLSFMDisableMask\", OBJLSFM+198) stores the registry value when present; with it present and the chip predicate 0x3f (_nv054310rm) true, bit 26 is cleared. Then the four version words through +108, +128, +130, +138 (each 1 on GV100) and \"RmLSFMFeature\": bit 0 of a present value replaces OBJLSFM+190; with +190 set and a version word of 1 the status is 0x56.",
|
|
"OBJLSFM PreInitLocked _nv043239rm: GPU+2318 (OBJACR) absent or OBJACR+37b set stores 0xffffffff; otherwise, with GPU+4de4 clear, _nv030951rm false stores 0xffffffff.",
|
|
"_nv030951rm: OBJFUSE+118 (_nv029006rm) with 0xff000020, which reads fuse word 0x434 through OBJFUSE+100 (_nv029045rm): with GPU+4de4 set the word is zero without an access; otherwise the Jtag object's function +100 (_nv039060rm, register 0x1373a0, only when Jtag+108 is set; its answer selects a diagnostic) and register 0x21434 (OBJFUSE+168 _nv029047rm). True when bit 0 of the word is set.",
|
|
"OBJLSFM InitLocked _nv043236rm: OBJACR absent or +37b set stores 0xffffffff and returns. Otherwise _nv043182rm for the first listed Falcon with engine 0x28c40800 (SEC2), then for the PMU Falcon (GPU+2120 -> +200 -> +18); if that left the PMU Falcon unmanaged (+3a7 clear) and SEC2 exists with +513 clear and OBJACR+392 clear, 0xffffffff is stored; otherwise _nv043182rm for every other listed Falcon.",
|
|
"_nv043182rm per Falcon with +3a8 clear: the image preparation _nv028614rm; with a signature record (+3f0 or +3f8) and the Falcon's bit clear: Falcon+650 of 2 or 3 sets the bit (OBJACR+381 and OBJLSFM+190 are clear on GV100); otherwise OBJACR+392 set or a first instance-location entry of 2 makes it a client (a record on the list at +1a0, +192 incremented, Falcon+3a7 = 1); otherwise the bit is set.",
|
|
"_nv043190rm(gpu, lsfm, id): bit (id & 0x1f) of OBJLSFM+198."
|
|
],
|
|
"gv100_result": {
|
|
"OBJLSFM+198": {
|
|
"after ConstructEngine": "0 (no RMLSFMDisableMask value; otherwise the registry value; chip predicate 0x3f is false for GV100, so bit 26 is never cleared)",
|
|
"after PreInitLocked": "0 when fuse word 0x21434 bit 0 is set (it reads 1 on the traced V100), else 0xffffffff",
|
|
"after InitLocked": "0 for the five Falcons modelled: SEC2, PMU, FECS, GPCCS and NVDEC all become clients"
|
|
},
|
|
"nvdec_falcon_id": "Falcon+608 = 4 once InitLocked has prepared its image (it is 0 before; the earlier NVDEC HS run fixture used 0 because it did not run the preparation)",
|
|
"lsfm_manages_falcon_for_nvdec": "_nv043190rm(gpu, lsfm, 4) = 0: not excluded, so Falcon+220 marks the Falcon managed again after the HS image has run",
|
|
"evidence": "verified by execution of the original instructions (case V) given: no registry value for the 17 keys, register words 0x1373a0 = 0xa and 0x21434 = 1, GPU+4de4, +4de5, +914 clear, the objects present",
|
|
"cross_check": "reports/gv100-acr-bootstrap-analysis.json: the traced V100 built one WPR image with clients NVDEC, GPCCS, FECS, PMU, SEC2, the list order case V produces. Bits 0, 2, 3, 4 and 7 are therefore clear on that board; the other bits depend on Falcons of the device's list that are not modelled here (they can only add their own bit).",
|
|
"coordinator_branches": {
|
|
"_nv043239rm": "GV100: OBJACR present with +37b clear, GPU+4de4 clear, so _nv030951rm is called; it returned true on the traced V100, mask unchanged. Executed (cases P, V); transcript lines 37713-37714.",
|
|
"_nv030951rm": "OBJFUSE+118 is _nv029006rm (binder _nv005974rm executed): id 0xff000020 is fuse word 0x434, shift 0, mask 1, read through OBJFUSE+100 _nv029045rm. On GV100 that first asks the Jtag function +100 (_nv039060rm, register 0x1373a0; Jtag+108 = 1 from _nv006537rm) and then reads register 0x21434, through the register aperture OBJFUSE ConstructEngine builds (base 0x21000, length 0x1000) or through OBJFUSE+168 (_nv029047rm, 0x21000 + offset) before that. The kernel reads both registers from hardware.",
|
|
"_nv043185rm": "GV100: key absent leaves the creation value 0; predicate 0x3f (architecture 0x1a0, implementation 0xb) is false; the four words are 1 (+108 _nv043208rm, +128 _nv043202rm, +130 _nv043204rm, +138 _nv043206rm); RmLSFMFeature absent with +190 = 0 (property initializer _nv005835rm) returns 0. RmLSFMFeature with bit 0 set returns 0x56 on GV100. Executed (cases C, V)."
|
|
}
|
|
},
|
|
"dependencies": [
|
|
{
|
|
"input": "registry: RMLSFMDisableMask, RmLSFMFeature, 13 OBJACR keys, RmPmuUcodeProfile, RmOverrideUprocEngineArch",
|
|
"source": "the device's registry owners (as the other level-5 keys)"
|
|
},
|
|
{
|
|
"input": "GPU+d00, +d04, +9e8, +4de4, +4de5, +914, +92b, +5308",
|
|
"source": "retained GPU software image"
|
|
},
|
|
{
|
|
"input": "fuse word 0x21434, Jtag register 0x1373a0, debug bit of 0x10ac08",
|
|
"source": "hardware, read by the provider"
|
|
},
|
|
{
|
|
"input": "OBJLSFM+190 = 0, OBJACR +381/+388/+391/+392 = 0, Jtag+108 = 1, OBJPMU+435 = 0, OBJPMU+43c = 1 (function +330 _nv052503rm called by the constructor body _nv051986rm), OBJSEC2+513 = 0, PMU owner cast to class _nv003202rm null",
|
|
"source": "GV100 initializers and constructors, executed"
|
|
},
|
|
{
|
|
"input": "OBJPMU+d8c = 0",
|
|
"source": "zero after the executed creator, property initializer and constructor start; absence of a later store is inferred from a search of the decompiled PMU-class functions"
|
|
},
|
|
{
|
|
"input": "NVDEC and PMU signature records (descriptors 0x1147610, 0x114b138; ids 4 and 0)",
|
|
"source": "firmware container; selection verified by execution (case V) for register 0x21644 = 1 and by reports/gpu-wpr-blob-original.json for other values"
|
|
},
|
|
{
|
|
"input": "Falcon+650 = 1, Falcon+3a8 = 0 for NVDEC instance 0 and the PMU",
|
|
"source": "executed constructors; _nv028412rm's replacement of 0 by 1 was executed for 0 only"
|
|
},
|
|
{
|
|
"input": "presence of OBJLSFM, OBJACR, the PMU object, OBJSEC2 and of the NVDEC Falcon in the GPU's list",
|
|
"source": "observed on the traced board (WPR clients, HS ACR on SEC2, LS PMU); not derived from the GPU child table",
|
|
"status": "remaining unavailable derivation"
|
|
}
|
|
],
|
|
"kernel": {
|
|
"file": "src/nvidia/kernel/nvdec_bringup.rs",
|
|
"changes": "lsfm_nvdec_bit runs core construct, acr_construct_flags, pmu_constructor_start, pre_init_locked, acr_pre_init_locked and init_locked over the NVDEC and PMU Falcons and answers falcon_disabled for the NVDEC id; Io::vbios_slot_270 answers nvdec_hs_inputs::GV100_VBIOS_SLOT_270. The two black_box placeholders and missing input 3 are gone; missing input 2 now means the computation was refused, with note 0x4e440045 giving the reason.",
|
|
"notes_expected_on_the_traced_v100": {
|
|
"0x4e440040 lsfm_mask": "00000000",
|
|
"0x4e440041 nvdec id and bit": "00000400",
|
|
"0x4e440042 acr flags": "00000000",
|
|
"0x4e440043 fuse 0x21434": "00000001",
|
|
"0x4e440044 clients of NVDEC and PMU": "00000002"
|
|
},
|
|
"extra_register_reads_before_the_run": "0x1373a0 and 0x21434 three times (OBJACR ConstructEngine twice, OBJLSFM PreInitLocked once, as the original), 0x10ac08 four times (signature lookups)"
|
|
},
|
|
"limits": [
|
|
"The installed /lib/firmware/nvidia-rs/580.178.04/gv100.fw (SHA-256 e4609de4...a8d8f3) has no NVDEC or PMU signature record; with it level 5 refuses with missing input 2 and reason 0x00067610. The container in target/firmware (another agent's work in progress) has both.",
|
|
"The device's full Falcon list is not modelled; the reported mask covers the five WPR clients. A Falcon's bit depends only on itself and the PMU (oracle subset and order cases; unit test a_bit_depends_only_on_its_falcon_and_the_pmu).",
|
|
"Not modelled: OBJLSFM+190 set, RISC-V clients, OBJACR+391 set in PreInitLocked, diagnostics outside the fuse predicate and PreInitLocked, the region request _nv016949rm, allocation failures, the other stores of the OBJACR constructor.",
|
|
"The OBJACR ConstructEngine fuse reads are not in the physical transcript: the transcript's start for this GPU follows lost events."
|
|
],
|
|
"validation": {
|
|
"commands": "cargo fmt --check; clippy -D warnings; cargo test --workspace (590 passed, 0 failed, 58 ignored); test_device_software, test_software_manager, test_timeout_runtime, test_pf_software, test_dma_bridge, test_pci_bridge; make modules (check_kernel_module passed, largest frame 776); audit-codegen; check_native_codegen; build_guest_test; build_initramfs; run_guest; run_guest --iommu; test_result_gate; run_live_control: all exit status 0",
|
|
"kernel_open_nvidia_rs_ko_sha256": "26f602f692dbee8b01d0450b3b33a66c9596d18be6c244aed966210def924d9b",
|
|
"guest_module_sha256": "4b3b93e0df79c8ba444bae15bec8de7468daeaf14a407828b852b8c9563c36cd",
|
|
"note": "Another agent was editing gpu/wpr_blob.rs, gpu/lsf_entry.rs, gpu/firmware_pack.rs and tools/extract_gv100_firmware.py during this run; the hashes are of the tree as it stood then."
|
|
},
|
|
"tested_sources_sha256": {
|
|
"src/nvidia/src/gpu/lsfm_mask.rs": "d631b3bab058ee9afe0cef73889d338ec8b4c194d94545d16d1e547ae58fcdaf",
|
|
"src/nvidia/src/gpu/lsfm_mask_tests.rs": "d76083599684f12bf5a83a362477110864d8194f5cae2e4cb3932d69293fcb16",
|
|
"src/nvidia/kernel/nvdec_bringup.rs": "ca4e2d2f7e599d672032a315892766307f45e94a2c97265c35e4530948a5cfcb",
|
|
"tools/check_gpu_lsfm_mask_binary.py": "81f0d9fb77049b8946b5e28086177bed46c3a02ed7162e6611d605f2ea9bd7b5"
|
|
},
|
|
"reports": [
|
|
"reports/gpu-lsfm-mask-original.json",
|
|
"reports/gpu-vbios-slot-270-validation.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 PMU property initializer _nv005852rm and the OBJLSFM property initializer _nv005835rm as (object, chip owner, RM owner). Their callers (_nv003396rm, _nv006670rm) pass (object, RM owner, chip owner). Both calls now use that order. With the wrong order PMU+42b = 1 and PMU+50 = 0 were not stored; the OBJLSFM stores are the same either way.",
|
|
"harness": "tools/check_gpu_lsfm_mask_binary.py",
|
|
"harness_sha256_after": "7b647d838a2836c6d673f6d01334f3ba76e757691a0b59ce5b81033a7c4b6be7",
|
|
"oracle": "target/gpu-stage/original-lsfm-mask.txt",
|
|
"oracle_sha256_before": "42aeaba1019dcd275e46a8d567fdc4729346bd90b289c495764ae5291195ae89",
|
|
"oracle_sha256_after": "42aeaba1019dcd275e46a8d567fdc4729346bd90b289c495764ae5291195ae89",
|
|
"oracle_changed": false,
|
|
"bindings_report_sha256": "8fbaef939de28a5295ac8cb81cebed21ff9a0310afaff0fabe004978ef1c2386",
|
|
"rust_sources_changed": false,
|
|
"comparison_tests_passed_after": [
|
|
"gpu::lsfm_mask::tests::compare_original_lsfm_mask"
|
|
],
|
|
"harness_sha256_before": "81f0d9fb77049b8946b5e28086177bed46c3a02ed7162e6611d605f2ea9bd7b5"
|
|
}
|
|
}
|