Files
nvdriver/reports/gpu-clock-gating-providers-validation.json
nvidia-driver-rs 4526e6a816 Baseline: validated 30/30 tree with passing Level 7 hardware regression
- 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
2026-11-23 23:48:38 +00:00

306 lines
18 KiB
JSON

{
"scope": "Providers of the inputs and services of the GV100 clock-gating table loads of Graphics PreInitLocked (_nv033505rm, core gpu::clock_gating): where each value comes from in the original driver, its value on a GV100 at first open, and core implementations of the self-contained ones.",
"evidence_category": "instruction emulation; one physical register transcript of the original driver for the end-to-end sequence",
"original_artifact_sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b",
"items": {
"1_feature_state_and_record": {
"original": {
"query": "_nv031034rm(gpu, feature, descriptor)",
"record": "_nv031133rm(gpu, feature, descriptor, flag) -> _nv031134rm(gpu, feature, descriptor, flag ? 3 : 1)",
"default": "GPU+6e8, bound by _nv005982rm to _nv031029rm for GV100 (returns 0)",
"registry": "GPU+2d0, bound by _nv005978rm to _nv030843rm; called by the GPU post-construct routine _nv031028rm before it creates the engines (_nv030241rm)"
},
"state_read": "Word GPU+6a98 for features 0..2, GPU+6a70 for 0x11..0x1f, GPU+6a6c otherwise; the feature's 2- or 4-bit field from the 32-row table at .data+0x41120. Field 1 or 3 is returned. Field 0 returns the GPU+6e8 result unless byte GPU+6d62 is set. Field 2 looks (feature, descriptor) up in the 41-row table at .data+0x40c00 and returns that engine's field of GPU+6a78 (feature 5), GPU+6a80 (7), GPU+6a84 (0x10) or GPU+6a88 (0x13), setting byte GPU+6dc4+index; without a row it returns 2.",
"state_written": "Thirteen words at GPU+6d90 (record) and bytes GPU+6dc4.. (an engine field was read). Only the diagnostic dump _nv013522rm reads them.",
"populated_by": "_nv030843rm from registry values: RMPowerFeature -> 6a6c (0 when absent), RMPowerFeature2 -> 6a70 (0), RMClkSlowDown -> 6a98 (0), RMElcg -> 6a78 (0), RMBlcg -> 6a80 (ffffffff), RMFspg -> 6a84 (0), RMSlcg -> 6a88 (ffffffff), RMDisableFeatureDisablement -> 6d62 (stored only when present), RmWar1760398 == 1 -> 6d41 = 1. No other store to GPU+6d62 or GPU+6d41 exists in the object (search of every store with those displacements).",
"gv100_first_open": "With none of those registry values present every query of the routine returns 0: (7, d334df00), (7, 174e2100), (0x13, d334df00). The record afterwards is word0 = 0x80000 (feature 7 field = 2), word5 = 0x303 (engines d334df00 and 174e2100 = 3), word1 = 0x80 (feature 0x13 field = 2), word7 = 1.",
"this_machine": "/etc/modprobe.d and the kernel command line set no NVreg registry values (checked 2026-11-19); the transcript's writes are the state-not-1 branch.",
"status": "verified by execution: 10,212 query, 13,986 + 6,216 record and 192 registry cases"
},
"2_graphics_slot_c78": {
"original": "_nv032989rm(gpu, graphics): with MIG in use (_nv041838rm) _nv033983rm; otherwise 0 for a Graphics instance other than 0, and for instance 0 _nv034023rm = dword +c of the record at +2b0 of the GPU+1fb8 object (GraphicsManager, class 2f465a) when its byte +1c is set, else a logged 0.",
"depends_on": "_nv034073rm(gpu, GPU+1fb8 object, a, b, c, d) stores +c, +10, +14, +18 and sets +1c. Its only GV100 caller is the OBJBUS function at +300 (_nv018541rm), called by OBJBUS PreInitLocked (_nv018656rm, core bus_stage::pre_init_locked): a = register 120078 & 1f, b = 22430 & 1f, c = 22434 & 1f, d = b * c. OBJBUS is engine 24, Graphics engine 33, so it runs first.",
"gv100_first_open": "6 on the traced V100: transcript lines 37599 to 37603 read 120070 = 100001, 120078 = 6, 22430 = 6, 22438 = 8, 22434 = 7 immediately before the table writes. The value is per board; any non-zero value writes tables 400002 and 400003.",
"mig": "GPU+92d is stored 0 by the GV100 property initializer _nv005825rm and only cleared elsewhere, so _nv041838rm is false on GV100.",
"status": "verified by execution (198 + 4 cases); the caller and engine order are read from the disassembly and the transcript"
},
"3_graphics_select_and_write": {
"select": "_nv000333rm(gpu) returns GPU+1fd8[index] (8 Graphics objects, class d334df). Without a GPU+1fb8 object index 0; otherwise _nv034037rm reads the calling thread's value under the key at +2a8 of the GPU+1fb8 object (_nv059517rm): no value gives index 0, a value gives value >> 1 (must be below 8). The value is stored by _nv034063rm, which PreInitLocked only calls for instances other than 0.",
"register_object": "Graphics+17a8 is never stored directly: it is the +50 pointer (base-class pointer) of a 0x88-byte register object built in place at Graphics+1758 by _nv031724rm -> _nv037841rm -> _nv006535rm -> _nv003332rm -> _nv037840rm as a child of the GPU+1d30 object. Child base = parent base + (Graphics+1858 - 400000) = parent base, length = Graphics+185c = 200000; Graphics+1858/185c are stored by Graphics+a50 (_nv033225rm) and 400000/200000 come from _nv033987rm.",
"write": "Vtable slot +40 of the class data at .rodata+0x4da9770 is _nv003747rm -> slot +b0 of .rodata+0x4da9740 = _nv037850rm -> _nv037851rm: register = offset + base; unless byte GPU+921 is set, _nv031156rm(gpu, register, 0) non-zero or flag bit 1 from _nv013540rm drops the write; then _nv049615rm(gpu, mapping, register - mapping start, value).",
"answer": "A plain write of the same register offset: the object adds its base, which for GV100 Graphics equals the parent's base. With the GPU+1d30 object based at 0 (as the transcript shows) the BAR0 offset is the table offset.",
"status": "verified by execution (378 lookup cases, 432 object and write cases) and by the end-to-end transcript reproduction"
},
"4_inputs": {
"gpu_22c8": "Lpwr (class 112230), created by _nv030241rm, constructor _nv042751rm. Property initializer _nv005803rm (GV100): byte 244 = 1, 269 = 0, 280 = 0. With 244 set the constructor creates the +11d8 object (_nv006445rm, class 8ae552, 0x13910 zeroed bytes, name not in the public class list) and _nv021616rm stores the +11c0 pointer.",
"child_11d8_bytes": "Property initializer _nv005773rm (GV100): 189 = 0, 18b = 0; 183 and 184 are not written by it and every store to them in the object clears them (_nv019140rm, _nv019281rm, _nv043170rm), so they stay 0 from the zeroed allocation.",
"gpu_6d41": "RmWar1760398 == 1 in _nv030843rm; otherwise 0.",
"gr_160c": "Graphics+1348, bound by _nv005889rm to _nv033433rm for GV100, stores 01010101 at Graphics+1608 and +160c. _nv033667rm calls it when Graphics+d10 returns non-zero, immediately before _nv033505rm. So the byte is 1 whenever the tables are written.",
"gr_1596": "Property initializer _nv005782rm stores 0 for GV100; no other store exists.",
"status": "property bytes verified by executing the initializers; the absence of other stores is a search of every store instruction with that displacement; that the constructors ran as described is inferred from their code, and bytes 183/184 = 0 agree with the transcript (tables written)"
},
"5_graphics_d10": {
"original": "_nv033245rm: _nv053907rm(gpu+4120, 0, 0, 0x200, 0) >> 12 & 1",
"dependency": "PMC enable (register 200) bit 12. Read twice: once by _nv033667rm (transcript line 37608) and once by _nv033505rm (37609); 1fecdff1 on the traced V100.",
"status": "executed"
}
},
"values_for_a_v100_first_open": {
"Inputs.gpu_22c8": "Some(GV100_OBJECT_22C8): ptr_11c0 true, byte_269 false, byte_280 false, child_11d8 Some(all four bytes false)",
"Inputs.gpu_6d41": "false unless the registry has RmWar1760398 = 1",
"GraphicsInputs.gr_160c": "true (stored by PreInitLocked itself)",
"GraphicsInputs.gr_1596": "false",
"feature_state": "0 for every call unless the registry has RMPowerFeature/RMPowerFeature2 (feature 7 field bits 21:18 of RMPowerFeature, feature 0x13 field bits 7:6 of RMPowerFeature2)",
"record_feature": "feature_record words as listed under item 1",
"graphics_slot_c78": "register 120078 & 1f as read by OBJBUS PreInitLocked; 6 on 0000:b3:00.0",
"graphics_select": "Graphics instance 0",
"graphics_write32(offset, value)": "register write at offset + (GPU+1d30 object base) - (its mapping start); BAR0 offset = table offset on the traced V100",
"PMC enable": "must have bit 12 set (1fecdff1 after the first-open reset) or nothing is written",
"not_reached_with_these_inputs": [
"_nv042890rm",
"_nv042924rm",
"_nv042925rm",
"+11d8 object functions +118 and +178",
"Graphics+1038"
]
},
"implemented": {
"module": "src/nvidia/src/gpu/clock_gating_providers.rs (no_std, no unsafe)",
"tables": "src/nvidia/src/gpu/clock_gating_feature_tables.rs, generated from .data+0x40c00 and .data+0x41120",
"api": [
"read_registry_overrides(&mut S, gpu_6d62, gpu_6d41) -> Result<RegistryOverrides, NvStatus> (_nv030843rm, nine keys)",
"feature_state(&mut D, &FeatureWords, &mut FeatureRecord, feature, descriptor) -> Result<u32, NvStatus> (_nv031034rm with _nv031029rm)",
"record_feature / record_feature_value (_nv031133rm / _nv031134rm)",
"set_gr_manager_info (_nv034073rm), gr_manager_first_word (_nv034023rm), mig_in_use (_nv041838rm), graphics_slot_c78 (_nv032989rm)",
"graphics_index (_nv000333rm with _nv034037rm)",
"graphics_register_object (_nv031724rm chain), register_object_write32 (_nv003747rm, _nv037850rm, _nv037851rm), GV100_GRAPHICS_REGISTERS (_nv033225rm)",
"graphics_pre_init_locked(&mut S, &mut PreInitState) -> Result<NvStatus, NvStatus> (_nv033667rm for Graphics instance 0 without MIG, calling clock_gating::graphics_clock_gating with the providers above)",
"gv100_first_open(registry, info, bitmap_640, bitmap_650, parent, gpu_921) -> PreInitState, GV100_OBJECT_22C8, GV100_MIG"
]
},
"verification": {
"harness": "tools/check_gpu_clock_gating_providers_binary.py (Makefile check target)",
"original_cases": 31668,
"cases_by_entry": {
"F": 10212,
"M": 13986,
"R": 6216,
"W": 192,
"I": 4,
"C": 198,
"G": 378,
"A": 432,
"P": 50
},
"entries": {
"F": "_nv031034rm",
"M": "_nv031134rm",
"R": "_nv031133rm",
"W": "_nv030843rm",
"I": "_nv034073rm",
"C": "_nv032989rm",
"G": "_nv000333rm",
"A": "_nv031724rm and the register object's write",
"P": "_nv033667rm end to end"
},
"table_rows": 82,
"oracle": "target/gpu-stage/original-clock-gating-providers.txt",
"oracle_sha256": "c6045b16023022973fbac6fb7b9bdfcaff946081337483a763744a3277e6b0aa",
"oracle_regenerates_identically": true,
"table_bytes_sha256": "eb6c6ebfabb25d5733fc58d94095ae68d4a1f01e6fc691b7f02f17da8005fb4c",
"original_functions_executed": [
"_nv000333rm",
"_nv003332rm",
"_nv003389rm",
"_nv003413rm",
"_nv003747rm",
"_nv005117rm",
"_nv005181rm",
"_nv005245rm",
"_nv005671rm",
"_nv005738rm",
"_nv005757rm",
"_nv005773rm",
"_nv005782rm",
"_nv005803rm",
"_nv005825rm",
"_nv005886rm",
"_nv005887rm",
"_nv005888rm",
"_nv005889rm",
"_nv005890rm",
"_nv005978rm",
"_nv005980rm",
"_nv005982rm",
"_nv006535rm",
"_nv017885rm",
"_nv017897rm",
"_nv030310rm",
"_nv030423rm",
"_nv030519rm",
"_nv030556rm",
"_nv030728rm",
"_nv030732rm",
"_nv030843rm",
"_nv030891rm",
"_nv030894rm",
"_nv030902rm",
"_nv030976rm",
"_nv030977rm",
"_nv031029rm",
"_nv031034rm",
"_nv031133rm",
"_nv031134rm",
"_nv031390rm",
"_nv031724rm",
"_nv032989rm",
"_nv033225rm",
"_nv033245rm",
"_nv033433rm",
"_nv033505rm",
"_nv033667rm",
"_nv033738rm",
"_nv033764rm",
"_nv033987rm",
"_nv034023rm",
"_nv034037rm",
"_nv034073rm",
"_nv037840rm",
"_nv037841rm",
"_nv037850rm",
"_nv037851rm",
"_nv041838rm",
"_nv049073rm",
"_nv049082rm",
"_nv049091rm",
"_nv049613rm",
"_nv049614rm"
],
"fixture_supplied": [
"_nv047869rm",
"_nv047868rm",
"_nv046745rm",
"_nv046747rm",
"_nv049786rm",
"_nv049785rm",
"_nv052687rm",
"_nv052701rm",
"_nv052705rm",
"_nv054347rm",
"_nv036619rm",
"_nv030844rm",
"_nv053907rm",
"_nv053912rm",
"_nv059517rm",
"_nv033983rm",
"_nv034062rm",
"_nv034063rm",
"_nv031779rm",
"_nv031723rm",
"_nv031391rm",
"_nv031156rm",
"_nv059477rm",
"_nv013540rm",
"_nv049615rm",
"_nv042890rm",
"_nv042924rm",
"_nv042925rm"
],
"bindings": {
"GPU+0x6e8": "_nv031029rm",
"GPU+0x2d0": "_nv030843rm",
"GPU+0x5c8": "_nv030977rm",
"GPU+0x740": "_nv030423rm",
"GPU+0x748": "_nv030728rm",
"GPU+0x750": "_nv030519rm",
"GPU+0x758": "_nv030891rm",
"GPU+0x760": "_nv030902rm",
"GPU+0x768": "_nv030894rm",
"Graphics+0xa50": "_nv033225rm",
"Graphics+0xc78": "_nv032989rm",
"Graphics+0xd10": "_nv033245rm",
"Graphics+0x1348": "_nv033433rm",
"Graphics+0x1478": "_nv033738rm",
"Graphics+0x1480": "_nv033764rm"
},
"gv100_properties": {
"Graphics": {
"initializer": "_nv005782rm",
"bytes": {
"0x1596": 0
}
},
"GPU+22c8 object": {
"initializer": "_nv005803rm",
"bytes": {
"0x244": 1,
"0x269": 0,
"0x280": 0
}
},
"+11d8 object": {
"initializer": "_nv005773rm",
"bytes": {
"0x183": "not written",
"0x184": "not written",
"0x189": 0,
"0x18b": 0
}
},
"GPU": {
"initializer": "_nv005825rm",
"bytes": {
"0x921": 0,
"0x92d": 0,
"0x52f2": "not written",
"0x52f3": "not written",
"0x6d41": "not written",
"0x6d62": "not written"
}
}
},
"comparison_test": "gpu::clock_gating_providers::tests::compare_original_clock_gating_providers (ignored; NV_RS_CLOCK_GATING_PROVIDERS_ORACLE): result and full call/state trace of every case, every table row and the registry key order",
"mutation_check": "Three single-token changes to the Rust (record value for 0xffffffff, index range mask, child base) each fail the comparison. Dropping the 0xa0102000 test of _nv031034rm does not: features 13, 20, 29 and 31 have no engine rows, so both arms return 2.",
"end_to_end": "The harness runs the original _nv033667rm with the original registry reader on an empty registry, feature query and record, Graphics+c78 on the record value 6, _nv000333rm, the in-place register object and its write, and asserts that the two PMC reads and the 103 writes equal transcript lines 37608 to 37712 (99 writes of the register mapping at the table offsets, 4 direct). It also asserts transcript lines 37599 to 37603 (the OBJBUS reads).",
"provider_tests_passed": 6,
"workspace_tests_passed": 570,
"workspace_tests_failed": 0,
"strict_clippy_and_format_passed": true
},
"unresolved": [
"_nv031723rm (called by PreInitLocked before the tables): builds the object at Graphics+1658 and per-unit tables beneath it (_nv031720rm, _nv031728rm, _nv032754rm, _nv013590rm). A service here. Its first step, Graphics+a50, is implemented as GV100_GRAPHICS_REGISTERS.",
"_nv031779rm (teardown of the objects at Graphics+1658 and +1758 that PreInitLocked calls before rebuilding them): a service.",
"_nv031156rm and _nv013540rm, the access check and write filter under the register object's write, and _nv031391rm: services. They are skipped when byte GPU+921 is set. The GV100 property initializer clears that byte; _nv052503rm, _nv047590rm and _nv047591rm store 1 with that displacement and whether they act on the GPU object before PreInit was not established, so gpu_921 is a parameter. The offset and value written do not depend on it.",
"The GPU+1d30 register object (parent): its base and mapping start are parameters. The transcript shows base - mapping start = 0 on the V100; which routine builds it was not traced here.",
"The bitmaps at +640 and +650 of the GPU+1fb8 object (PreInitLocked clears bit 1 of the first and sets bit 1 of the second) and dword +25c of its record (bit 0 makes PreInitLocked return at once): initial values are parameters. The constructor zeroes the record; no writer before PreInit was identified.",
"Graphics instances other than 0 and MIG (_nv034063rm, _nv034062rm, _nv033983rm) are outside graphics_pre_init_locked; GV100 does not use them.",
"Byte 269 of the GPU+22c8 object: 0 from the property initializer; three stores with that displacement in routines of unidentified objects (_nv013043rm, _nv024017rm, _nv038739rm) were not followed. If it were set the Loader returns NOT_SUPPORTED at _nv042890rm instead of writing.",
"Production first open does not call any of this; the kernel module is unchanged."
],
"tested_sources_sha256": {
"src/nvidia/src/gpu/clock_gating_providers.rs": "fce43bb06f75d0358231bf7271a8cf6e86cac7e918a6dedbd6d102152cb79c19",
"src/nvidia/src/gpu/clock_gating_feature_tables.rs": "adc28e3088957bf6226f8c26f37dccdd091162a3d126f5c1862256fb71f965c2",
"tools/check_gpu_clock_gating_providers_binary.py": "f19c1c890d4901da08bbeeeeeeda151f9c6b6a7277c7e64654f8107ab424fb37"
},
"reports": [
"reports/gpu-clock-gating-providers-original.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 Graphics property initializer _nv005782rm as (object, chip owner, RM owner) to read Graphics+1596. Its caller _nv003325rm passes (object, RM owner, chip owner). The call now uses that order. Graphics+1596 is 0 with either order.",
"harness": "tools/check_gpu_clock_gating_providers_binary.py",
"harness_sha256_after": "f0c077b4dc4eaa247bfe8ec9454b3673df24e45603fe525876f5bb4b22095f1b",
"oracle": "target/gpu-stage/original-clock-gating-providers.txt",
"oracle_sha256_before": "c6045b16023022973fbac6fb7b9bdfcaff946081337483a763744a3277e6b0aa",
"oracle_sha256_after": "c6045b16023022973fbac6fb7b9bdfcaff946081337483a763744a3277e6b0aa",
"oracle_changed": false,
"bindings_report_sha256": "8fbaef939de28a5295ac8cb81cebed21ff9a0310afaff0fabe004978ef1c2386",
"rust_sources_changed": false,
"comparison_tests_passed_after": [
"gpu::clock_gating_providers::tests::compare_original_clock_gating_providers"
],
"harness_sha256_before": "f19c1c890d4901da08bbeeeeeeda151f9c6b6a7277c7e64654f8107ab424fb37"
}
}