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
256 lines
14 KiB
JSON
256 lines
14 KiB
JSON
{
|
|
"date": "2026-11-19",
|
|
"scope": "Bring-up level 9 (bringup=9): code and emulation only. Nothing here ran on hardware. The kernel glue src/nvidia/kernel/pmu_bringup.rs is compiled, checked by tools/check_kernel_module.py and reviewed; no test executes it.",
|
|
"needs_user_approval": "Yes: like level 8, its failure mode can be a GPU the original driver cannot initialize (CLAUDE.md). The standing approval for bring-up levels does not cover it.",
|
|
"original_sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b",
|
|
"notes": "analysis/closed-driver-580/pmu-implementation-notes.md, section 9 (sequence, deviations, failure states, expected notes, open questions)",
|
|
"sequence": [
|
|
{
|
|
"step": "levels 1-6 up to the host load; WPR primary, shadow, PMU instance block and surface placed before the runlist buffers",
|
|
"evidence": "hardware (levels up to 7 ran)"
|
|
},
|
|
{
|
|
"step": "refusals of the ACR level and of this level (pmu_bringup::Inner::prepare), no write",
|
|
"evidence": "-"
|
|
},
|
|
{
|
|
"step": "OBJACR Load",
|
|
"original": "level 8 load part",
|
|
"rust": "gpu::acr_load",
|
|
"evidence": "E, T; never run on hardware"
|
|
},
|
|
{
|
|
"step": "PMU InitLocked fills and two system-memory allocations",
|
|
"original": "_nv051858rm (_nv052270rm, _nv044030rm, _nv052522rm, _nv044059rm)",
|
|
"rust": "gpu::pmu_bar2::Space::{instance_block_zero, surface_zero}",
|
|
"evidence": "E; made after the ACR load (deviation)"
|
|
},
|
|
{
|
|
"step": "Graphics InitLocked and StateLoad",
|
|
"original": "_nv033663rm, _nv033665rm",
|
|
"rust": "kernel/gr_bringup.rs",
|
|
"evidence": "E, T; ran on hardware at level 7"
|
|
},
|
|
{
|
|
"step": "PMU Load",
|
|
"original": "_nv051860rm with _nv052584rm, _nv052399rm, _nv052272rm, _nv052321rm, _nv052625rm, _nv051841rm",
|
|
"rust": "gpu::pmu_ls_start::load over pmu_bar2 and pmu_level",
|
|
"evidence": "E (70 + 41 cases), T 147279-147456; the second surface step D + T only"
|
|
},
|
|
{
|
|
"step": "INIT message through the interrupt service",
|
|
"original": "_nv052477rm -> _nv052485rm -> _nv052510rm -> _nv052433rm",
|
|
"rust": "pmu_level::interrupt_pass, pmu_irq_service::service, pmu_fbq::Transport::receive_init",
|
|
"evidence": "A, E, T 147603-147608; entered by polling (deviation)"
|
|
},
|
|
{
|
|
"step": "OBJSEC2 Load: region request (1, 0), bootstrap request 7, SEC2 start",
|
|
"original": "_nv055933rm -> _nv055814rm -> _nv028572rm -> _nv028391rm (_nv043191rm -> _nv016743rm), _nv028398rm",
|
|
"rust": "gpu::falcon_ls_start::sec2_load, pmu_fbq::Transport::falcon_request",
|
|
"evidence": "E, T 164966-165083"
|
|
},
|
|
{
|
|
"step": "FECS and GPCCS start (bootstrap 2, 3), FECS ready, method 0x21, 0x409c24, size queries 0x10/0x16/0x25/0x1a",
|
|
"original": "_nv033633rm (_nv041053rm, _nv031609rm -> _nv027343rm and _nv029620rm, _nv027644rm, _nv033527rm, _nv032221rm, _nv045007rm, _nv031818rm/_nv031821rm)",
|
|
"rust": "gpu::gr_fecs_start::discover, falcon_ls_start::{fecs_start, gpccs_start}",
|
|
"evidence": "A, E, T 166380-167097"
|
|
},
|
|
{
|
|
"step": "one more service pass, read-back notes",
|
|
"evidence": "level policy"
|
|
},
|
|
{
|
|
"step": "OBJSEC2 Unload without its firmware command",
|
|
"original": "_nv055940rm -> _nv055939rm",
|
|
"rust": "falcon_ls_start::sec2_unload",
|
|
"evidence": "E; no transcript"
|
|
},
|
|
{
|
|
"step": "Graphics StateUnload (FECS, GPCCS unload functions)",
|
|
"original": "_nv033671rm, _nv027643rm, _nv029887rm",
|
|
"rust": "gpu::gr_unload",
|
|
"evidence": "E; ran on hardware with halted Falcons"
|
|
},
|
|
{
|
|
"step": "PMU Unload: _nv044310rm, detach on the HPQ, IRQMCLR 0x40, unmappings, unbind",
|
|
"original": "_nv052517rm, _nv052000rm, _nv052612rm -> _nv026107rm, _nv052303rm",
|
|
"rust": "gpu::pmu_unload::unload, pmu_bar2::Space::unmap, pmu_ls_start::unbind",
|
|
"evidence": "E; no transcript"
|
|
},
|
|
{
|
|
"step": "OBJACR Unload, region read-back, alarm note 414300ff dead0007",
|
|
"original": "_nv016962rm -> _nv016972rm",
|
|
"rust": "gpu::acr_unload",
|
|
"evidence": "E; never run on hardware"
|
|
},
|
|
{
|
|
"step": "host unload, Graphics PostUnload, BAR2 teardown, PMC enable, bus mask and PCI command as found",
|
|
"original": "_nv028312rm, _nv033666rm",
|
|
"evidence": "hardware for level 6; E for PostUnload"
|
|
}
|
|
],
|
|
"new_or_changed_core": {
|
|
"gpu/falcon_ls_start.rs": "new: SEC2, FECS, GPCCS light-secure start and unload",
|
|
"gpu/gr_fecs_start.rs": "new: _nv033633rm, subcontext count, Graphics PostUnload",
|
|
"gpu/pmu_level.rs": "new: clock domain 0x13, OBJFUSE+150, GCX child, bus flush, wait pass, request gates, _nv044310rm, boot words",
|
|
"gpu/pmu_bar2.rs": "new: PMU address space, instance block, surface and system-memory mappings through BAR2",
|
|
"gpu/pmu_ls_start.rs": "added: unbind (_nv052303rm) with oracle; Inputs::second_surface and Memory::Second (no oracle row)",
|
|
"gpu/pmu_fbq.rs": "added: Io::surface_write_command and command_header (a command element without a 2 KiB stack array); the message copy is byte-wise; oracle tests unchanged",
|
|
"gpu/acr_unload.rs": "added: pmu_reset_sequence (_nv052253rm composed of oracle-verified bodies; the combination was not executed as one original call)"
|
|
},
|
|
"kernel": {
|
|
"new": "src/nvidia/kernel/pmu_bringup.rs",
|
|
"changed": [
|
|
"kernel/acr_bringup.rs (WhileLoaded hook between load and unload; Placed keeps the PMU requests; lsfm mask; level 8 path unchanged without a hook)",
|
|
"kernel/gr_bringup.rs (WhileLoaded hook between StateLoad and StateUnload; level 7 path unchanged without a hook)",
|
|
"kernel/fifo_bringup.rs (Between::run receives the heap model)",
|
|
"kernel/nvdec_bringup.rs (lsfm_mask returns the mask level 5 computes)",
|
|
"kernel/adapter_start.rs (level 9 branch, Graphics PostUnload after the host unload)",
|
|
"kernel/lib.rs, src/nvidia/Makefile, tests/vm/rust_backing.rs (module registration), kernel-open/nvidia/gpu_owner.c (parameter text)"
|
|
],
|
|
"notes_prefix": "0x504d",
|
|
"stack": "largest single frame 984 bytes (limit 1024); the deepest call chain of the level sums to about 9 KiB of frames on a 16 KiB kernel stack (estimate from per-function frames, no call-chain proof)"
|
|
},
|
|
"oracles": {
|
|
"original-falcon-ls-start.txt": {
|
|
"tool": "tools/check_gpu_falcon_ls_start_binary.py",
|
|
"rust": "gpu/falcon_ls_start.rs",
|
|
"lines": 693,
|
|
"sha256": "ea45b2f9a6f99db0eedf4e5098b31bac0b29343bdc52cc79b9cb72a78f1e729e",
|
|
"note": "693 rows: T 3, S 190, F 160, G 160, U 180; 678 equal, 15 refused by the Rust"
|
|
},
|
|
"original-graphics-fecs-start.txt": {
|
|
"tool": "tools/check_gpu_graphics_fecs_start_binary.py",
|
|
"rust": "gpu/gr_fecs_start.rs",
|
|
"lines": 243,
|
|
"sha256": "8c32c5dd6ca0bc55544ab44e1452a4a78a358b3e6fc341df3513477c902ac734",
|
|
"note": "243 rows: S 164, K 25, C 1, P 5, U 48"
|
|
},
|
|
"original-pmu-level.txt": {
|
|
"tool": "tools/check_gpu_pmu_level_binary.py",
|
|
"rust": "gpu/pmu_level.rs",
|
|
"lines": 495,
|
|
"sha256": "e88ee1fb04e6cdd6e08144e2585932a6703d0165a581241063a2b8e1dc8a3577",
|
|
"note": "495 rows: C 266, F 41, G 4, K 119, Q 8, L 20, M 30, B 6, D 1"
|
|
},
|
|
"original-pmu-vaspace.txt": {
|
|
"tool": "tools/check_gpu_pmu_vaspace_binary.py",
|
|
"rust": "gpu/pmu_bar2.rs",
|
|
"lines": 41,
|
|
"sha256": "11ebf2cfd72a5261970a68068da024b9547951a88e9f48311d706d5b00697633",
|
|
"note": "41 cases, 52,172 events"
|
|
},
|
|
"original-pmu-unbind.txt": {
|
|
"tool": "tools/check_gpu_pmu_unbind_binary.py",
|
|
"rust": "gpu/pmu_ls_start.rs (unbind)",
|
|
"lines": 69,
|
|
"sha256": "0933b486c645d552530e22b08d0f6b0e424229de5a7ec268555e22b2be5b7fda",
|
|
"note": "69 rows"
|
|
},
|
|
"original-pmu-ls-start.txt": {
|
|
"tool": "tools/check_gpu_pmu_ls_start_binary.py",
|
|
"rust": "gpu/pmu_ls_start.rs",
|
|
"lines": 70,
|
|
"sha256": "83998b9a447d6a89948fe8997bb069625827e9c67e2a9298227fef0edd55239d",
|
|
"note": "unchanged, 70 cases"
|
|
},
|
|
"original-pmu-fbq.txt": {
|
|
"tool": "tools/check_gpu_pmu_fbq_binary.py",
|
|
"rust": "gpu/pmu_fbq.rs",
|
|
"lines": 56,
|
|
"sha256": "f73abeb86b04bced34179b05cbc09398c8037f627772e22a4bbcf09c910e963f",
|
|
"note": "unchanged, 56 cases"
|
|
},
|
|
"original-pmu-service.txt": {
|
|
"tool": "tools/check_gpu_pmu_service_binary.py",
|
|
"rust": "gpu/pmu_irq_service.rs, pmu_events.rs, pmu_unload.rs",
|
|
"lines": 599,
|
|
"sha256": "5b117e30b69ba595ba3e58c1ab1065608c3601e0c308aa0bd308c825ec48e5b4",
|
|
"note": "unchanged, 599 cases"
|
|
}
|
|
},
|
|
"input_sources": {
|
|
"hardware": [
|
|
"0x404030 (subcontexts)",
|
|
"0x137190, 0x137280, 0xe800, 0xe804 (clock domain 0x13)",
|
|
"0x1373a0, 0x21c04 (OBJFUSE+150)",
|
|
"0x1598 (OBJVBIOS+238)",
|
|
"0x10a108, 0x10a268, 0x87108, 0x87268 (Falcon configuration)",
|
|
"0x100 (PMC pending word)",
|
|
"DMA addresses of the two system-memory allocations",
|
|
"everything levels 4 to 8 read"
|
|
],
|
|
"retained_gpu_image": [
|
|
"+90c, +916, +6d59, +998, +92b, +934, +90e, +4de2, +c98, +d78, +1e18 and the bytes of levels 5 to 8"
|
|
],
|
|
"registry": [
|
|
"RMFermiCBSize, RMFermiAlphaCBSize, RMGfxpCBSize, RMGfxpSpillSize, RMFermiPagepoolSize, RMSetupBetaAsTpcPerPpcMax (must be absent)",
|
|
"RMSkipGrResetForInstSys",
|
|
"the keys of levels 5 to 8"
|
|
],
|
|
"firmware_container": [
|
|
"PMU_LOADER record: boot vector +60, OS word +c",
|
|
"SEC2_LOADER record: OS word +c",
|
|
"the composed region image: SEC2 boot descriptor"
|
|
],
|
|
"placement_model": [
|
|
"PMU instance block, PMU surface (InitLocked order)",
|
|
"root, three directories, page tables of the PMU address space (after the ACR load released its requests)"
|
|
],
|
|
"oracle_verified_gv100_values": [
|
|
"pmu_level::GV100_PMU_{42B,5C7,563,43B,9A2,CB0,AF8}, GV100_FALCON_3AC",
|
|
"falcon_ls_start::{Sec2Object::GV100, LsFalcon::gv100_*, FecsInputs::GV100}",
|
|
"gr_fecs_start::{GV100, GV100_BUFFERS, GV100_GR_15C0}",
|
|
"KernelFifo+44d = 1",
|
|
"interrupt table row of engine 0xe: PMC bit 24",
|
|
"region request (1, 0)",
|
|
"PMU super surface 0x207a00 bytes"
|
|
]
|
|
},
|
|
"refused_before_the_acr_load": [
|
|
"registry or GPU image unreadable",
|
|
"GPU+69e4 == 4, GPU+998, GPU+92b, GPU+d78 without +c98, a GPU not attached and running",
|
|
"one of the six size keys has a value",
|
|
"PMU_LOADER or SEC2_LOADER record missing or of an unsupported form",
|
|
"OBJLSFM+198 not computable or with bit 2, 3 or 7 set",
|
|
"no SEC2 boot descriptor in the composed image",
|
|
"GPU+1e18 == 0",
|
|
"surface does not fit the BAR2 mapping",
|
|
"storage",
|
|
"everything level 8 refuses"
|
|
],
|
|
"refused_in_core": "see the module heads of falcon_ls_start.rs, gr_fecs_start.rs, pmu_level.rs, pmu_bar2.rs (each names its original branches that return Unsupported)",
|
|
"declared_deviations": [
|
|
"no client command: after INIT only the region request and three bootstrap requests",
|
|
"every event is logged (unit, type, size, length, number) and dropped; (0x0f, 1) ends the detach wait; statistics not kept",
|
|
"PMU service entered by polling the PMC word; the original's service registry is empty on this path",
|
|
"PMU InitLocked fills after the ACR load",
|
|
"zeroed 32-bit DMA allocations for the 0x19d0 buffer and the 0x1f5b0 second surface",
|
|
"a Falcon whose bootstrap request failed is not started (the original starts it)",
|
|
"SEC2 unload without its firmware command; PMU PostUnload and the SEC2 INIT message not handled",
|
|
"when the class Unload cannot run: reset sequence _nv052253rm, then the unmappings",
|
|
"host unload last (the original unloads OBJFIFO first)",
|
|
"level 8's deviations"
|
|
],
|
|
"failure_states": "analysis/closed-driver-580/pmu-implementation-notes.md section 9.4 (table). Outcomes that could leave a GPU the original cannot initialize: (a) the ACR unload leaves a region set and the original's own PreInit unlock fails as well (level 8's hazard, unchanged); (b) not excluded by evidence: firmware state surviving the PMU reset of the ACR unload and the PMC engine resets of the next first open; (c) an oops in the never-executed glue restarts the machine.",
|
|
"known_likely_false_alarm": "The ACR unload's status check reads SEC2 MAILBOX0 and returns 0xffff unless it is 0. After a SEC2 start and unload that register is not expected to read 0, so a run whose regions were cleared may still report unload_status 0000ffff, the alarm note and passed: false. regions_read_empty_after_unload and note 504d030a (0x87040 before the ACR unload) tell the cases apart. The level-8 rule was kept on purpose.",
|
|
"runner": "tools/run_hardware_first_open.py: PMU_NOTES, PMU_EXPECTED_TRANSCRIPT (marked with transcript lines), PMU_EXPECTED_EMULATION; passed is false on a stage other than completed/refused/not-run, on a PMU start without a confirmed complete teardown, and by level 8's rules on regions not confirmed cleared. Not run.",
|
|
"validation": {
|
|
"tools/validate_all.sh": "30 of 30 steps passed (second run; the first failed guest_build because tests/vm/rust_backing.rs did not list the new kernel file)",
|
|
"workspace_tests": "675 passed, 0 failed",
|
|
"ignored_tests_run": "pmu_ls_start (7), pmu_fbq, pmu_irq_service, pmu_unload, pmu_events, falcon_ls_start, gr_fecs_start, pmu_level, pmu_bar2: 53 passed; acr_unload: 2 passed",
|
|
"nvidia_rs.ko_sha256": "194a0ba1429fb6d49ca4c7bc086d3f21a679fc31319bb1eac5b69a416c63313f",
|
|
"nv_rs_edu_test.ko_sha256": "19b6f214c84febb22b8d8e842f8d1b8b994e849f857b34cffcd8ca3cf39bc9f8",
|
|
"vermagic": "5.15.0-203-generic SMP mod_unload modversions",
|
|
"check_kernel_module": "passed, largest frame 984"
|
|
},
|
|
"not_done": [
|
|
"No hardware run; no test executes pmu_bringup.rs.",
|
|
"PMU PostUnload (_nv052515rm), the SEC2 firmware command and the SEC2 INIT message, the event functions of the client engines, the event statistics.",
|
|
"The second surface step of pmu_ls_start has no original-instruction row; its creation condition and the initial content of both system-memory allocations are not established.",
|
|
"acr_unload::pmu_reset_sequence was not executed as one original call.",
|
|
"HANDOFF.md and reports/parity-ledger.json were not edited (not this task's files)."
|
|
],
|
|
"open_questions": "pmu-implementation-notes.md section 9.6"
|
|
}
|