Files
nvdriver/reports/gpu-clock-kernel-store.txt
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

125 lines
7.5 KiB
Plaintext

Selected clock software factory: kernel-owned storage and scoped transport
Scope and result
----------------
The selected 020155 -> eight complete 020153 producers -> 021074 reset bridge
now has a kernel-facing owner. ClockStore retains a real GpuLease, CPU-owned
canonical images, typed arenas and required provider state. Each initialize or
reset borrows the real per-GPU operation/register guard for the entire call.
The graph can detach and resume without rebuilding objects, changing object
identities, rereading the strap or losing temporary-method/failure mutations.
This is a software-object integration stage. It does not bind the complete GPU
factory, establish physical access prerequisites, publish GPU readiness, or
supply missing MemorySystem/FUSE/VBIOS/registry facts.
Files
-----
src/nvidia/kernel/clock_store.rs
src/nvidia/kernel/clock_store_transport.rs
kernel-open/nvidia/clock_store_adapter.[ch]
src/nvidia/src/gpu/clock_registry.rs (RetainedGraph and checked resume)
tests/dma-mock/clock_store.[rs,c]
tools/test_clock_store.sh
Ownership and failure semantics
------------------------------
CPU buffers use process-context kvzalloc/kvfree. Typed slots and scratch pools
are initialized field by field; no large Pool is created on the kernel stack.
Input bytes are copied into retained allocations. No input slices, mutable
image views, arena borrows or register guards survive a synchronous operation.
A private RetainedGraph binds the same owner, image addresses, journal-created
nodes/objects and arena fingerprint. Resume rejects changed arenas or owners.
There is no image-only ready token.
Every external service is mandatory. The transport captures actual FUSE and
graphics links, reads graphics count and actual MemorySystem/FUSE method labels,
uses the existing concrete clock input/table logic, and calls required owned
providers for the remaining policy/HAL/diagnostic services. A nonzero method
label is not proof of a hardware owner or power/access prerequisite. The only
direct register operation allowed here is the selected constructor's read of
0x101000 under LockedGpuRegisters. Unavailable FUSE does not become a zero mask.
Executed errors and unavailability retain the original partial image mutations
and quarantine the store against a subsequent false-success retry.
Creation failure returns an owned store so partial allocations can be released.
Provider destruction precedes CPU frees; CPU frees precede the final GPU/module
lease release. Invalid-context close retains all ownership for later recovery.
Invalid-context Drop intentionally leaks the complete owner and module pin.
Provider contracts prohibit reentering the held operation lock, escaping scoped
references, unwinding or changing execution context.
Validation
----------
tools/test_clock_store.sh: one comprehensive host test passes. It runs the real
Rust kernel owner/transport, operation guard and GpuLease against the CPU mock.
The resulting entire pool image matches retained actual-original-parent vector
18, including the real eight-level translated producer/registry/reset path.
Second initialization and explicit reset resume the same graph without a
second 0x101000 read. The test drops the initial input vectors before use.
It also checks all 18 allocation failure positions, exact provider/CPU/GPU
release ordering, invalid-context close and recovery, removal blocking access,
last-lease/module-pin lifetime, and unavailable FUSE failure plus retry refusal.
Twenty provider and GPU owner destructions are observed. Fixture provider
values and the single strap read are scripted test inputs, not hardware facts.
Dedicated clippy-driver over this actual transport/fixture passes -D warnings.
The core resume test additionally rejects an arena swap without image writes.
Host tests do not validate Linux allocator execution or actual GPU policy.
Common module/VM integration and broad checks belong to the parent checkpoint.
Fresh original provenance and next production dependency
------------------------------------------------------
The REA session in gpu-clock-owner-provenance-rea read original machine
instructions from nv-kernel.o_binary (SHA256
5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b).
Its index records function address and evidence ID. The isolated provider was
closed and its investigation saved; no physical GPU was accessed.
020551 calls actual resource allocation 017001 for type 0x100/size 0x6c0,
type 0x200/size 0x2a498 and type 0x30f/size 0x14. Original 017001 allocates
and zeroes a 0x18-byte resource node and the actual payload, then appends it to
the ClockManager+0x800 list. A payload failure frees the new node. Therefore
zeroed initial pool storage is a proven allocation property, not a default for
missing clock objects. 020552 first calls 020551 and propagates failure; on
success it allocates type 0x113/size 0x14. The broader PreInit constructors and
their hardware/registry/platform dependencies are not yet fully translated.
029329 remains a type-list lookup; it is not this allocator.
InitialRegion is deliberately a low-level unsafe staging API. Production must
assemble these canonical layouts from independently constructed Rust GPU,
MemorySystem, graphics, FUSE, VBIOS/table and registry owners. It must never copy
an original-driver heap, depend on a native C++ object or call a numeric native
vtable pointer. Numeric method labels select verified Rust implementations.
No production instance of the required Providers trait is supplied yet.
The next caller must translate the actual selected ClockManager lifecycle:
resource construction/PreInit (including the complete selected 02055x chain),
typed table and policy owners, then the actual selected initialization method
at ClockManager+0x138 (020155) and producer/reset bindings +0x140/+0x218.
It must select these from the proven runtime HAL route rather than force one
route for the complete hardware matrix. Canonical image assembly must encode
actual GPU links +0x1e78 FUSE, +0x1ec0 MemorySystem, +0x1f70 platform and
+0x1f78 graphics; actual graphics+0x664 and MemorySystem+0x4384; the real FUSE
+0x118 path and power guards; ClockManager resource list+0x800, tables+0x810,
PllSettleTime scalar+0x1300 and policy fields+0x1498/+0x14a0. Missing typed
state or table provenance must fail, not become zero/6/all-enabled fixtures.
Only after those owners and GPU lifetime/order prerequisites exist can the
complete GPU factory construct ClockStore with authoritative inputs.
No physical GPU execution, full hardware-matrix coverage, full CUDA behavior
or complete-driver parity is claimed by this checkpoint.
OWNER-LABEL CORRECTION (2026-11-17): earlier Graphics/graphics labels for
GPU+1f78 and child+664 are INVALIDATED. Actual030241 constructsclasscc4c31
atGPU1f78; matching580 class metadata identifiesOBJBUS. Production interfaces
now useBus/BusClockFacts/bus_count_664 and require the actualOBJBUS owner.
Numericfield/access/order byte-oracle results remain valid, but they never
proved a Graphics owner or a real initialized OBJBUS hardware binding. No
clock/GPUhardware readiness was granted by these software-input proofs.
SECOND OWNER-LABEL CORRECTION (2026-11-17): Platform/platform labels for
GPU1f70 and child190a are INVALIDATED. Original030241 constructsclassd1755e
atGPU1f70; matching580 g_eng_desc_nvoc.h identifiesOBJDISP. Corrected production
interfaces useDisplay/DisplayClockFacts. SYS/OSplatform ownership is a separate
class/link and must never satisfy this Display contract. Numericbyteproofs are
unchanged; actualdisplay owner/property provenance is mandatory beforebinding.