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
257 lines
17 KiB
JSON
257 lines
17 KiB
JSON
{
|
|
"scope": "Bring-up level 5: the verified NVDEC HS Falcon run (core gpu::nvdec_hs_run) wired into the kernel's direct bring-up path, with the source of every input, and original-instruction oracles for four inputs the earlier harness took from its fixture",
|
|
"evidence_category": "instruction emulation for the four producers; build, codegen and guest validation for the kernel wiring. No hardware executed.",
|
|
"original_artifact_sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b",
|
|
"oracle": {
|
|
"harness": "tools/check_gpu_nvdec_hs_inputs_binary.py",
|
|
"file": "target/gpu-stage/original-nvdec-hs-inputs.txt",
|
|
"sha256": "30899cca251166b36415509f9c5540c336f0cec9ed88c9609a8a81c2440e2b80",
|
|
"regenerates_identically": true,
|
|
"cases": {
|
|
"X": 3420,
|
|
"B": 2,
|
|
"C": 375,
|
|
"S": 1728
|
|
},
|
|
"total_cases": 5525,
|
|
"comparison_test": "gpu::nvdec_hs_inputs::tests::compare_original_nvdec_hs_inputs (ignored; NV_RS_NVDEC_HS_INPUTS_ORACLE), passed for all cases",
|
|
"detail": "reports/gpu-nvdec-hs-inputs-original.json"
|
|
},
|
|
"findings": [
|
|
"KernelFifo+1b8 is _nv040256rm, a wrapper of _nv040255rm that only changes input type 4. Over the 16 engine records the original constructor builds from the device-info table of 0000:b3:00.0 it answers (0, 0x8f99e100, 8) with 0x41 and (8, 0x41, 6) with 15. The earlier oracle (tools/check_engine_discovery_binary.py) covered output types 0, 1, 3, 4, 12 and 14 on a modelled table; cases X cover output types 0 to 14 for input types 0 to 14, 16 and 17 on the physical table (3,420 cases).",
|
|
"The interface byte at OBJBSP+f8 is stored by the interface constructor _nv003365rm, which the OBJBSP constructor _nv003356rm calls on OBJBSP+e8: `movb $1, 0x10(%rdi)` for every chip. The same routine stores +12 = 0, +13 = 1 and +14 = 0 for chip HAL 0x23 and tail-calls _nv028792rm, which creates the Falcon object and stores it at interface +18. Byte +11 (OBJBSP+f9) is stored by no constructor; _nv006624rm clears the 0x4f8-byte object first, so it is zero. This replaces the item 'inferred, not verified' of reports/gpu-nvdec-hs-run-validation.json.",
|
|
"Because interface byte +13 (OBJBSP+fb) is 1, the engine constructor _nv046468rm leaves Falcon+3a2 = 1, not 0 as falcon_after_original_configuration of the earlier report lists (that harness did not run the interface constructor). Core nvdec_hs_run never reads Falcon+3a2, so no verified behaviour changes; the kernel sets the field from the constructor's value.",
|
|
"_nv046468rm reads three registry values: RmDisableBsp equal to 1 stores OBJBSP+50 = 1 (the run then returns 0x40 and the predicate is false), RmDisableBspLoad equal to 1 stores +420, RMForceNvdecUcodeEncryption stores +421. The property initializer _nv005811rm stores +50 = 0 and +423 = 0 before it.",
|
|
"_nv031478rm does nothing unless the device GPU+cac names has more than one GPU. _nv031395rm returns zero for a slot above 31 (after reading the manager pointer at +1e0 of the system object) and for an empty slot. The retained GPU image holds GPU+cac = 0x20, so the call is a no-op with two diagnostics."
|
|
],
|
|
"inputs": [
|
|
{
|
|
"input": "RegisterIo read32/write32",
|
|
"source": "hardware, BAR0 through the locked register owner",
|
|
"evidence": "as levels 1 to 4"
|
|
},
|
|
{
|
|
"input": "Services::feature_state, record_feature",
|
|
"source": "core clock_gating_providers::feature_state/record_feature on the words read_registry_overrides takes from the device's registry owners",
|
|
"evidence": "reports/gpu-clock-gating-providers-validation.json item 1; registry through LinuxRegistry and the constructed-table NBSI prefix"
|
|
},
|
|
{
|
|
"input": "Services graphics_select, graphics_write32, nv042890/924/925, child_slot_118/178, graphics_slot_c78/1038",
|
|
"source": "not reached for register block 0x84000 with byte 269 of the GPU+22c8 object clear; the provider returns NOT_SUPPORTED and records missing input 9",
|
|
"evidence": "core clock_gating::load_blcg/load_slcg; transcript lines 139293-139299"
|
|
},
|
|
{
|
|
"input": "Io::delay_us",
|
|
"source": "udelay (nv_rs_os_busy_us)",
|
|
"evidence": "as level 3"
|
|
},
|
|
{
|
|
"input": "Io::timeout_start, timeout_check, timeout_reset",
|
|
"source": "Linux monotonic clock; a zero interval takes the configured default (timeout record of the device), otherwise the requested microseconds (0x3567e0 for the halt)",
|
|
"evidence": "same simplification as level 4 (Bar2Io): no thread-state timeout, CPU yield or flags"
|
|
},
|
|
{
|
|
"input": "Io::fifo_lookup",
|
|
"source": "core nvdec_hs_inputs::kernel_fifo_slot_1b8 over the engine records EngineCache builds from registers 0x2004, 0x2390.. and 0x22700..",
|
|
"evidence": "cases X; reports/gv100-physical-topology-validation.json for the table construction"
|
|
},
|
|
{
|
|
"input": "Io::gpu_section",
|
|
"source": "no-op when the retained image's GPU+cac is above 0x1f (it is 0x20); otherwise refused (missing input 10)",
|
|
"evidence": "cases S"
|
|
},
|
|
{
|
|
"input": "Io::lsfm_manages_falcon",
|
|
"source": "none",
|
|
"evidence": "unsourced, see below"
|
|
},
|
|
{
|
|
"input": "Io::vbios_slot_270",
|
|
"source": "none",
|
|
"evidence": "unsourced, see below"
|
|
},
|
|
{
|
|
"input": "Io::fuse_register_67c",
|
|
"source": "none; asked only when the VPR is enabled, the level then refuses (missing input 4)",
|
|
"evidence": "transcript: VPR disabled (word 2 = 0x2a)"
|
|
},
|
|
{
|
|
"input": "Io::gpu_slot_3b8",
|
|
"source": "none; asked only when GPU+91f is set, which the level checks before any write (missing input 5)",
|
|
"evidence": "retained image: zero"
|
|
},
|
|
{
|
|
"input": "GpuFlags 915/917/918/919/926, GPU+90e, 914, 91f, 4de4, cac",
|
|
"source": "retained GPU software image (PF constructor)",
|
|
"evidence": "pf_construct metadata: 915 = 1, cac = 0x20, the others zero"
|
|
},
|
|
{
|
|
"input": "Falcon word_55c (GPU+de0)",
|
|
"source": "retained GPU image, stored by the legacy HAL binding from the BOOT0 register",
|
|
"evidence": "core legacy_hal::bind_boot (_nv030179rm)"
|
|
},
|
|
{
|
|
"input": "Falcon base, base2, engine, state bytes",
|
|
"source": "core Falcon::gv100_nvdec; valid because interface byte +10 is set and +11 clear; engine checked against _nv046468rm's value; byte_3a2 from the constructor",
|
|
"evidence": "cases B and C; reports/gpu-nvdec-hs-run-validation.json (bindings, transcript)"
|
|
},
|
|
{
|
|
"input": "Nvdec byte_50",
|
|
"source": "property initializer value 0, or 1 when registry RmDisableBsp reads 1",
|
|
"evidence": "cases B and C"
|
|
},
|
|
{
|
|
"input": "Nvdec byte_423",
|
|
"source": "property initializer value 0",
|
|
"evidence": "cases B; reports/gv100-engine-hal-bindings.json"
|
|
},
|
|
{
|
|
"input": "presence of the GPU+2080 (NVDEC) and GPU+2308 (SEC2) objects",
|
|
"source": "observed: the original ran this step and later loaded SEC2 on this board",
|
|
"evidence": "reports/gpu-nvdec-hs-run-validation.json original_sequence_on_the_traced_v100; reports/original-trace-b3-segment-map.json. Not derived from the GPU child table."
|
|
},
|
|
{
|
|
"input": "PredicateInputs sec2_byte_50",
|
|
"source": "property initializer _nv005840rm value 0; the value only changes a diagnostic",
|
|
"evidence": "reports/gv100-engine-hal-bindings.json OBJSEC2 0x50"
|
|
},
|
|
{
|
|
"input": "clock_gating::Inputs gpu_22c8, gpu_6d41",
|
|
"source": "GV100_OBJECT_22C8; registry RmWar1760398",
|
|
"evidence": "reports/gpu-clock-gating-providers-validation.json item 4 (byte 269 has three unfollowed stores)"
|
|
},
|
|
{
|
|
"input": "MemorySystem byte_8cc5 before the run",
|
|
"source": "clear: the traced run chose bundle 0x1146eb0",
|
|
"evidence": "reports/gpu-nvdec-hs-run-validation.json lines 139275-139278"
|
|
},
|
|
{
|
|
"input": "Inputs load_flags",
|
|
"source": "0",
|
|
"evidence": "_nv000790rm calls _nv031502rm with esi = 0 (text 0xd6ed89); core base_load passes the flags to each engine unchanged (reports/gpu-base-load-validation.json)"
|
|
},
|
|
{
|
|
"input": "Inputs max_imem_words, max_vpr_index_writes",
|
|
"source": "0x400 and 8",
|
|
"evidence": "bounds the original does not have; the largest transfer is 832 words and the traced run wrote each index once"
|
|
},
|
|
{
|
|
"input": "firmware container",
|
|
"source": "request_firmware nvidia-rs/580.178.04/gv100.fw, requested before the register lock is taken",
|
|
"evidence": "reports/gpu-nvdec-hs-run-validation.json firmware_container"
|
|
}
|
|
],
|
|
"unsourced": [
|
|
{
|
|
"input": "Io::lsfm_manages_falcon (_nv043190rm): bit Falcon+608 (0 for this Falcon) of the dword at OBJLSFM+198",
|
|
"why": "The engine constructor _nv043185rm reads registry RMLSFMDisableMask into that dword; PreInitLocked _nv043239rm stores ffffffff when the ACR object is missing, has byte 37b set, GPU+4de4 is set or _nv030951rm is false; InitLocked _nv043236rm (with _nv043182rm) changes it again from ACR and HAL state. None of the three bodies is implemented or has an oracle.",
|
|
"effect_in_core": "Asked after the Falcon is started. The answer only selects Falcon+3a7/3a5 and a discarded status; both answers give the same register accesses (454 oracle cases of kind S cover both).",
|
|
"level": "missing input 2; refuses before the predicate"
|
|
},
|
|
{
|
|
"input": "Io::vbios_slot_270: the function at +270 of the OBJVBIOS object (class 5dc772) at GPU+20c8",
|
|
"why": "OBJVBIOS is not an engine class of reports/gv100-engine-hal-bindings.json and its GV100 binding for this slot was not established.",
|
|
"effect_in_core": "Asked twice before the engine is touched. The result is combined with OBJBSP+423, which is zero on GV100, so it cannot change the path.",
|
|
"level": "missing input 3; refuses before the predicate"
|
|
}
|
|
],
|
|
"level_5": {
|
|
"order": "after the level-4 BAR2 step has returned and before the PMC enable and bus interrupt mask restore",
|
|
"refusal": "With an unsourced input the level logs the two FIFO answers, each missing input, a read-only snapshot of ten registers (1180fc, 1180f4, 21644, 10ac08, 84048, 8412c, 8410c, 84624, 84100, 100cd0) and stage 'refused', writes nothing and returns -95. First open returns -95 at every level, so tools/run_hardware_first_open.py still passes.",
|
|
"as_built": "Both unsourced inputs are compiled as unavailable, so on hardware the level refuses. The run path is compiled and checked (the two values pass through core::hint::black_box so the optimizer cannot remove it).",
|
|
"run": "predicate (scrub_predicate), run (bundle, tags, status), halt polls and microseconds, VPR words before and after, first-read values of the nine expected registers, Falcon+3a0/5d5/5d4",
|
|
"cleanup": "Bring-up cleanup, not original behaviour: core falcon_slot_220 with argument 0 (the Falcon+128 reset the run itself starts with), then 0x8410c and PMC enable are read for the notes.",
|
|
"notes": "codes 4e44xxxx; tools/run_hardware_first_open.py names them under nvdec_hs_run and lists differences from the traced values"
|
|
},
|
|
"core_changes_for_the_kernel_build": [
|
|
"nvdec_hs_run::prepare: the two signature records and the small fixed-field records are decoded into the caller's scratch after the image (SCRATCH_TAIL_BYTES = 768) and not into stack arrays; Prepared holds two slices. The scratch must therefore be 768 bytes longer than before. decode and tagged are not inlined, and the five required records are looked up, then fetched one at a time. The frame of prepare went from 3,064 bytes (inlined into run) to 520.",
|
|
"nvdec_hs_run::dmem and firmware_signature::apply copy bytewise through core::hint::black_box: a slice copy of unknown length becomes a memcpy call, which kernel builds cannot relocate.",
|
|
"mmu::engine_cache: State is repr(u8) with Empty = 0, the software source is Option<NonZeroU32>, the type documents that the all-zero bit pattern is a valid empty cache, and adopt gives such a cache an owner in place. A 2,200-byte cache cannot be moved through the kernel stack.",
|
|
"After these changes tools/check_gpu_nvdec_hs_run_binary.py regenerates its oracle identically (89e22c4f...afdb6f1) and compare_original_nvdec_hs_run (754 cases) and physical_transcript_is_reproduced_from_the_container pass."
|
|
],
|
|
"validation": {
|
|
"cargo_fmt_check": true,
|
|
"cargo_clippy_strict": true,
|
|
"workspace_tests": {
|
|
"passed": 570,
|
|
"failed": 0,
|
|
"ignored": 57
|
|
},
|
|
"ignored_oracle_tests_rerun": [
|
|
"nvdec_hs_inputs::compare_original_nvdec_hs_inputs",
|
|
"nvdec_hs_run::compare_original_nvdec_hs_run",
|
|
"nvdec_hs_run::physical_transcript_is_reproduced_from_the_container"
|
|
],
|
|
"host_fixture_scripts_passed": [
|
|
"test_device_software",
|
|
"test_software_manager",
|
|
"test_timeout_runtime",
|
|
"test_pf_software",
|
|
"test_dma_bridge",
|
|
"test_pci_bridge"
|
|
],
|
|
"make_modules_and_object_gate": true,
|
|
"largest_function_stack_bytes": 680,
|
|
"audit_codegen": true,
|
|
"native_codegen_check": true,
|
|
"guest_build": true,
|
|
"guest_largest_frame": 888,
|
|
"initramfs": true,
|
|
"guest_run": true,
|
|
"guest_run_iommu": true,
|
|
"guest_result_gate": true,
|
|
"live_control_smoke": true,
|
|
"module_sha256": "34b0f62730622ca5438a909bd996f42ea5a47fa2dd07186819769231b31fe6b0",
|
|
"guest_module_sha256": "026d9061ce1d424aa0d8a775c5fd95d39e2a099fc4b20d0e780c808829018755",
|
|
"validated_at_utc": "2026-11-19 03:51:51 to 03:53:23, source tree unchanged between start and end",
|
|
"firmware_container_sha256": "949c532bc7579b7c1b2c57741f34019fea48967b4456f2a3a6aae0b6b5dd741a"
|
|
},
|
|
"limits": [
|
|
"No hardware executed. As built, level 5 refuses on hardware because of the two unsourced inputs.",
|
|
"Registry values come from this module's registry owners, not from the original driver's module parameters; the NBSI part is the constructed-table prefix, and whether the original's tables are initialized when it reads these keys was not established.",
|
|
"The time provider is the level-4 simplification. The halt wait reads CPUCTL in a busy loop for up to 3.5 seconds under the device's operation mutex.",
|
|
"The presence of the NVDEC and SEC2 objects is an observation of the traced board, not a derivation.",
|
|
"The 'executed' list of the harness report is the set of functions reachable by direct calls from the roots."
|
|
],
|
|
"tested_sources_sha256": {
|
|
"src/nvidia/src/gpu/nvdec_hs_inputs.rs": "982fed0b3da345e6db77f229054543072285928960d6e1f33f500686e4416622",
|
|
"src/nvidia/src/gpu/nvdec_hs_run.rs": "2bc249b0ad97f16a0cec69b59d4b3a4ac51edc65be7ae65834ad4a730f9f9ebd",
|
|
"src/nvidia/src/gpu/nvdec_hs_run_tests.rs": "0c537d2a7d69a5bf7cdec157d8e66479791bec76ffe82a5e0eae45266b85f568",
|
|
"src/nvidia/src/gpu/firmware_signature.rs": "c0b5f4078fc2d8e08960a66a073e20a934416274fc26b5709cf4ee26fe742fef",
|
|
"src/nvidia/src/mmu/engine_cache.rs": "0572286821245c86b29d1a0e1950e26dfcf0066c4e14f212a10b223b92a94494",
|
|
"src/nvidia/kernel/nvdec_bringup.rs": "7a42446fa9ec2d051f3aa8df021cbc4fca8000c4372b9f3fe9414b26d75777b1",
|
|
"src/nvidia/kernel/adapter_start.rs": "5d532b081e1a0aab91c152cd14174f0787288ea8a2328d9f314cfb659dc8d721",
|
|
"tools/check_gpu_nvdec_hs_inputs_binary.py": "432cc883ade70c6f3d49a937481297534569dd5c2d2824f574d95a026b9718ef",
|
|
"tools/run_hardware_first_open.py": "ad6a6008d6cb6600fb8903addd1b571d4cb4b57496e4d2271c226fe5b69e6128",
|
|
"kernel-open/nvidia/gpu_owner.c": "4aa109d5b6caf1d94899cbdd9634402a88dc940071090c750f9c31d8beb3a034"
|
|
},
|
|
"commands": [
|
|
"/home/geodd/.local/opt/rea-python/bin/python tools/check_gpu_nvdec_hs_inputs_binary.py",
|
|
"NV_RS_NVDEC_HS_INPUTS_ORACLE=target/gpu-stage/original-nvdec-hs-inputs.txt cargo test -p nv-rs-core --lib nvdec_hs_inputs -- --include-ignored (absolute path)"
|
|
],
|
|
"reports": [
|
|
"reports/gpu-nvdec-hs-inputs-original.json"
|
|
],
|
|
"concurrent_changes": [
|
|
"Another agent changed the tree while this work was validated: src/nvidia/src/gpu/firmware_pack.rs, lsf_entry.rs, wpr_blob.rs (new, registered in gpu.rs), wpr_blob_tests.rs, tools/extract_gv100_firmware.py, tools/check_gpu_wpr_blob_binary.py and the firmware container, which went from 77 records (e4609de4...a8d8f3) to 80 (949c532b...dd741a). None of these files was edited for level 5.",
|
|
"The module hashes above are those of the last full pass, which includes those changes. An earlier full pass without the lsf_entry.rs change gave nvidia_rs.ko 8b3e7cab...a52670 and guest module 853baf53...27bdf7; a pass in between failed to build because wpr_blob.rs was being edited.",
|
|
"The NVDEC oracle tests (754 run cases, the transcript reproduction and the 5,525 input cases) pass with the 80-record container. /lib/firmware still holds the 77-record container; tools/run_hardware_first_open.py installs the current one before a run."
|
|
],
|
|
"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 bindings report now also lists the interface constructors _nv003365rm and _nv003371rm among the OBJBSP property routines, so the harness assertion property_binders == [_nv005811rm] was widened to membership, and it now checks the report's argument order for _nv005811rm (chip, RM) and its values at +f8, +fa, +fb against the stores the harness observes itself. No original call changed: the harness already ran the OBJBSP creator and constructor as (chip, RM), which is the real order for this class.",
|
|
"harness": "tools/check_gpu_nvdec_hs_inputs_binary.py",
|
|
"harness_sha256_after": "26b69108a08976bc91db8b13fe92e3df0a3edcdc3d002872492c3e5b082547d8",
|
|
"oracle": "target/gpu-stage/original-nvdec-hs-inputs.txt",
|
|
"oracle_sha256_before": "30899cca251166b36415509f9c5540c336f0cec9ed88c9609a8a81c2440e2b80",
|
|
"oracle_sha256_after": "30899cca251166b36415509f9c5540c336f0cec9ed88c9609a8a81c2440e2b80",
|
|
"oracle_changed": false,
|
|
"bindings_report_sha256": "8fbaef939de28a5295ac8cb81cebed21ff9a0310afaff0fabe004978ef1c2386",
|
|
"rust_sources_changed": false,
|
|
"comparison_tests_passed_after": [
|
|
"gpu::nvdec_hs_inputs::tests::compare_original_nvdec_hs_inputs"
|
|
]
|
|
}
|
|
}
|