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
90 lines
9.1 KiB
JSON
90 lines
9.1 KiB
JSON
{
|
|
"evidence_category": "replacement hardware execution (analysis of existing runs)",
|
|
"run_reports": [
|
|
"reports/hardware-first-open-b3-20261119T202826Z.json (level 6 regression run of the same build)",
|
|
"reports/hardware-first-open-b3-20261119T202938Z.json (level 7)"
|
|
],
|
|
"module_sha256": "e5380fe6dc61f562391d25165768d89b114d599d3aecbef383d4edabbf989c7b",
|
|
"guest_module_sha256": "8cdd95bb5904e80845ef9cfe6df85f620e813f94cdb38322ce122901d43aac01",
|
|
"device": "0000:b3:00.0 (Tesla V100)",
|
|
"kernel": "5.15.0-203-generic",
|
|
"bringup_level": 7,
|
|
"validation_list": "tools/validate_all.sh passed 30/30 on a quiet tree immediately before (650 workspace tests)",
|
|
"results": {
|
|
"levels_1_to_6": "completed; levels 5 and 6 ran with BAR2 still bound for the first time; computed placement equal to the trace",
|
|
"vbios": "PROM window read on hardware by nvidia_rs for the first time; override table pointer 0x21a33, version 0x20, no entries, equal to the captured image",
|
|
"init_locked": "status 0; bus geometry 0x08070606, TPC counts 0x00676777, fuse TPC masks as in the trace",
|
|
"load": "status 0, ZBC status 0, 1,280 writes, 7 engine status queries with no busy answer, features 0xfff; read-backs of the buffer addresses, tile and count registers equal the trace",
|
|
"unload": "status 0, 8 reads and 135 writes as in the emulated original; interrupt and exception enables read 0 afterwards",
|
|
"restore": "GPU back on the original driver; native CUDA baseline passed before and after both runs"
|
|
},
|
|
"differences": {
|
|
"load_reads": {
|
|
"expected": "0000015d",
|
|
"observed": "0000015e"
|
|
},
|
|
"after_load_40013c": {
|
|
"expected": "ffffffff",
|
|
"observed": "003901f3"
|
|
},
|
|
"after_load_400138": {
|
|
"expected": "ffffffff",
|
|
"observed": "030001bf"
|
|
},
|
|
"after_load_400118": {
|
|
"expected": "ffffffff",
|
|
"observed": "00000000"
|
|
},
|
|
"after_load_500910": {
|
|
"expected": "00040028",
|
|
"observed": "40040028"
|
|
}
|
|
},
|
|
"notes_on_differences": "load_reads is 350 where the transcript-derived expectation is 349: one extra read whose position was not determined (the idle waits poll, so an extra iteration is the likely cause; this is an inference). The three interrupt-enable read-backs and 0x500910 are read-backs of registers the transcript only shows being written or shows in a different state; they were predictions. None changed a status.",
|
|
"not_shown": "FECS and GPCCS stayed halted; no firmware beyond the NVDEC image ran; no channel was created; no CUDA work ran through nvidia_rs.",
|
|
"review_2026_11_19_one_read_and_read_backs": {
|
|
"evidence_category": "analysis of existing runs, instruction oracles and the transcript; no hardware access",
|
|
"runs": [
|
|
"reports/hardware-first-open-b3-20261119T202938Z.json",
|
|
"reports/hardware-first-open-b3-20261119T220106Z.json"
|
|
],
|
|
"load_reads_350_vs_349": {
|
|
"expectation_checked": "the transcript range 156720-158348 holds 349 R and 1,280 W lines (counted); tools/run_hardware_first_open.py had 0x15d = 349; the core test the_level_providers_reproduce_every_line_of_the_traced_load consumes all 1,629 lines with the level's providers. The expectation is not off by one.",
|
|
"kernel_side_checked": "kernel/gr_bringup.rs counts only reads made through GrIo::read32 between begin(false) and the NOTE_LOAD_READS note; the read-back notes (log_registers) read the guard directly after that note and are not counted. Every provider calls the same core function as the core test's provider (engine_busy, lpwr query, VBIOS table, clock gating, Falcon no-ops). No provider reads once more than its counterpart.",
|
|
"what_can_add_one_read": "reading the load code (gr_load_sequence.rs, gr_zbc.rs, memsys_zbc.rs, clock_gating.rs) for reads whose number depends on a value read, with 1,280 writes, seven status queries, status 0 and all four features done held fixed, leaves two sites: (a) the per-TPC poll of the three feature steps (_nv031833rm, _nv031876rm, _nv031879rm: write 0x419b54 = 0xff, 0x419b68 = 3 or 0x419e20 = 3, then read each TPC's register until the written bits read clear; a read that is not clear is followed by a timeout check, a yield and another read), (b) the read of 0x40060c that the idle wait makes only when 0x409b00 has bit 31 set. Core test one_unanswered_poll_is_one_more_read_and_nothing_else replays the transcript with each of the four possibilities and gets 350 reads, 1,280 writes, 7 queries, status 0 in every one; nothing else gives those numbers.",
|
|
"cause": "(a), by exclusion and by timing; not observed directly. For (b) the register 0x409b00 would have to read with bit 31 in one of the idle waits 2 to 7 although the first read and the read-back after the load are 0, the load writes no such register (no W 409b00 in the 1,280 lines) and FECS never ran. For (a): the registers are self-clearing triggers polled per TPC; in the traced run the first read follows the trigger write by 4 microseconds (lines 157144-157145: W 419b54 at .448237, R 504354 at .448241) because mmiotrace single-steps every access, and all 120 polls read 0; nvidia_rs made the whole load of 1,630 accesses in under 0.9 ms (kernel log 48297.330875 to .331780, about 0.5 microseconds per access), so its first poll comes roughly eight times sooner. One poll not yet clear, once per load, in both runs, fits that. Which of the three steps it was is not known.",
|
|
"original_behaviour": "the repeat is the original's own loop. Instructions of _nv031833rm (REA Ghidra listing, evidence ev_007652e36b514b52...): the per-TPC check through Graphics+758 returns false -> compare the last timeout status with 0x65, else timeout check with line 0x773 (_nv059505rm), yield (_nv049819rm), and the check is called again for the same TPC. The instruction oracle of the load (tools/check_gpu_graphics_load_binary.py, rows with a TPC register not clear at the first read, for each of the three offsets) executes that path and gpu/gr_load_sequence.rs matches those rows.",
|
|
"hardware_behaviour_correct": "yes for cause (a): the original would have made the same extra read on the same answer. The count 349 is the count of a run in which no poll repeated, not a property of the load.",
|
|
"fix": "expectation side. kernel/gr_bringup.rs now logs note 47520023 (repeated polls in bits 15:0, source line of the first in 27:16, reads of 0x40060c in 31:28; counters only, no register access added), and tools/run_hardware_first_open.py compares load_reads minus those with 349 (load_reads_without_waits). The next level 7 run therefore names the step, or contradicts this analysis by showing a 0x40060c read or no repeat.",
|
|
"not_established": "direct observation of the repeated poll; settled by the note on the next level 7 run."
|
|
},
|
|
"read_backs": {
|
|
"after_load_40013c": {
|
|
"written": "ffffffff",
|
|
"read": "003901f3",
|
|
"explained": "yes",
|
|
"evidence": "interrupt enable keeps only implemented bits: the original's own netlist list writes exactly 0x003901f3 to 0x40013c at transcript line 156748 (region 6, non-ctx load) before the load writes all ones at line 157130 [T]. The transcript never reads the register. Expectation changed to 003901f3."
|
|
},
|
|
"after_load_400138": {
|
|
"written": "ffffffff",
|
|
"read": "030001bf",
|
|
"explained": "partly",
|
|
"evidence": "exception enable keeps only implemented bits. The original's exception service _nv032471rm reads the status register 0x400108 and tests bits 0, 1, 2, 3, 4, 5, 7, 8 and 24 [D: pseudocode], which are nine of the ten bits read back; bit 25 was not found in that routine (it may be behind the Graphics function it calls at +0x500). nouveau (gf100.c gf100_gr_trap_intr) handles 0x01000000 and 0x02000000 as GPC and ROP traps on older chips [S, other chip]. No transcript read. Expectation changed to the value read in both runs, marked as hardware observation."
|
|
},
|
|
"after_load_400118": {
|
|
"written": "ffffffff",
|
|
"read": "00000000",
|
|
"explained": "yes",
|
|
"evidence": "0x400118 is a status register (pending GPC exceptions), cleared by writing ones: _nv032471rm reads it after 0x400108 [D], nouveau reads it and writes the mask back (gf100.c lines 1442-1447) [S, other chip]; the load's write of all ones clears it. 0 = nothing pending. The old expectation (the written value) was wrong and is removed, as for 0x400100 and 0x400108."
|
|
},
|
|
"after_load_500910": {
|
|
"written": "00040028",
|
|
"read": "40040028",
|
|
"explained": "no",
|
|
"evidence": "the original writes the whole word (Graphics+eb0 path of _nv033643rm: total TPC count | word_4 << 16, transcript line 157094) and never reads it in the transcript; no reader was found in the pseudocode of the load. Bit 30 is set by the hardware and its meaning is not established. It cannot change the original's control flow because nothing reads it. The expectation stays the written value, so the difference keeps being reported."
|
|
}
|
|
},
|
|
"other_observation": "load_microseconds (note 47520018) is 0 in both runs although the kernel log shows about 0.9 ms. Explained: the level computes it from LinuxClock::monotonic_ns, which kernel-open/nvidia/clock_adapter.c derives from jiffies, so its resolution is one tick; a load shorter than a tick measures 0. The level's timeouts use the same clock and are whole default intervals, so they are unaffected."
|
|
}
|
|
}
|