Files
nvdriver/reports/gpu-pf-constructor.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

121 lines
7.6 KiB
Plaintext

Selected GV100 PF base-object and GpuArch construction
====================================================
Implemented CPU-only original005722/005825 metadata and003368->030237->030235
construction in gpu/pf_construct.rs, with actual owned kernel storage in
kernel/pf_software.rs. The GPU canonical image is6e70bytes; scratcha0 and selected
PF-private2c allocations remain owned through cleanup. The four base constructors
and their failure destructors are original return-only bodies, not unavailable
operations normalized into success. Original049713 is also return-only; its
previous tentative OS-identity label was incorrect.
The public kernel constructor requires an actual shared GpuArchOwner and checks
all four architecture factors plus GPU9d0 identity. The unowned staging constructor
is private. Core construction accepts only the recovered GV100 legacy physical
profile; unknown chip/runtime/selector paths return unavailable. It never creates
engine children, executes StatePreInit/Init/Load, or grants GPU readiness.
Selector and identity provenance
-------------------------------
Profile::from_normal_pci takes actual BOOT42/BOOT4, required8f020 when BOOT4 type1,
and Linux is_virtfn. Original031364 regards BOOT4[17:16]==2 as virtual; type1 reads
8f020[13:12], where0 is virtual and1/2/3 are physical; types0/3 are physical.
Linux VF rejection is an additional conservative guard. GV100 architecture14 is
below16 and takes the legacy runtime3 physical branch even when firmware-client
policy was requested. Original006055 maps runtime3 to RM HAL2. The normal PCI
route sets separate SoC chip ID0;031399 derives hidrev0 from that value. Tegra
selector is default0. Display IP version is literal0 in the original constructor
call and is initialized later; it is NOT a VBIOS or GSP firmware version.
Profile field names are therefore architecture/implementation/hidrev/tegra_type/
runtime/display_ip_version. Earlier draft names soc/chip_mode/firmware_version
were inaccurate and were corrected before this checkpoint. GPUc9c is registered
gpuInstance, ca8/ca4 registered gpuId,9d0 actual retained GpuArch owner, and UUID
is supplied only when the original OS registry marked it valid. The parent owns
actual PCI ID registration, independent RM-instance reservation and attach/open
lifecycle; a private prepared-device slot must not substitute for these IDs.
Consulted requested620.70.06 open checkout gpu_mgr.c1376 and generated
g_gpu_halspec_nvoc.h for semantic names/build/ownership guidance. Its constructor
argument names corroborate original580031364/006647/005722 linkage, but this
newer checkout does not replace580 binary evidence or its legacy mode policy.
GpuArch ownership
-----------------
gpu/gpu_arch.rs constructs the selected canonical98-byte GpuArch. Original006506
zeroes the object, installs Object/GpuHalspecOwner metadata and005882 methods,
then003322->031300 stores four factors at88/8c/90/94. Selected methods68/70/78/80
are actual031306/031301/031308/031310 constant bodies (2f/0/0/0), not no-op defaults.
kernel/gpu_arch.rs provides shared immutable refcounted CPU ownership plus an
exclusive ArchitectureRegistry keyed by those exact four factors. Parent-held
exclusive Rust registry access replaces original031399 mutex/list traversal.
Repeated keys share an actual retained object; PF owners retain references after
cache shutdown. Shutdown permanently seals new lookups, so live references cannot
alias a replacement at a reused slot. Invalid-context close retains ownership;
failed destruction intentionally leaks CPU data rather than freeing live memory.
No architecture/GPU reference cycle, callback payload or module self-pin exists.
The native architecture oracle exercises original root-form006506 with null
native parent. Parent/cache ownership is independently represented by the Rust
registry, not a fabricated C++ parent object/intrusive list. This does not claim
byte-identical native parent links or a complete generic C++ object runtime.
Kernel lifetime and access
-------------------------
PfSoftware is embedded/retained by its real KernelGpu parent, never holds a
GpuLease back to itself, and frees CPU resources before final DMA/module release.
CreationFailure owns every partial allocation/reference for recovery. Public
access is a scoped immutable image closure. Narrow unsafe commit_mmu_92c and
attach_system_os require the actual same-owner operation/child-lifetime contract;
there is no public arbitrary mutable image. SystemOs attachment permits only a
zero or identical prior1e60 link. MMU/SystemOs ownership is supplied by the MMU
agent's actual typed owners; unavailable platform/registry/FB state remains a
blocked prerequisite, never a ready64K default.
Evidence and verification
-------------------------
Fresh REA instruction records: gpu-pf-constructor-rea (7 functions),
gpu-architecture-rea (9 functions). Each index contains address/evidence ID;
providers closed and investigations saved. Original RM SHA256:
5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b.
The independent gpu_generate_pf_constructor_metadata.py executes actual original
instructions. Full005722 plus005825 produce381 ordered GPU stores (291 binding,
90 field initialization), identical over prior zero/A5 GPU backing. Fourteen
actual functions execute; production consumes static checked Rust metadata.
It then executes original005722 +003368/005825/030237/030235 and their transitive
list/container/base bodies for64 cases, varying identity/UUID, allocation failure
positions and zero/A5 allocation bytes. Complete GPU and retained allocation
images, return statuses and allocation counts match the Rust implementation.
Two original complete006506/005671/005882/003322/031300 architecture constructions
also match canonical Rust bytes. Only OS allocation/memset/memcpy and diagnostics
are scripted leaves; entered scripted functions are explicitly separated from
executed bodies in the report. No original runtime heap is an implementation
input. No original global allocator statistics/debug subsystem parity is claimed.
The initial full-constructor oracle comparison exposed an oracle normalization
error: allocator0600bfd0 is in BSS (origin05fd2180), not DATA (origin00f7e890).
This was fixed before any successful full-constructor proof was recorded. Current
64 vectors pass with correct origins; prior metadata-only381-store proof did not
contain that allocator pointer and is unaffected.
Four focused core PF/architecture tests pass, including original whole-image
vectors, unknown-profile/overflow and virtualization predicates. Host fixture
tools/test_pf_software.sh passes3 tests covering actual owned constructor,
three allocation failures/retained cleanup, shared cache identity/ref lifetime/
sealed shutdown, invalid-context recovery, and actual SYS->PF->MMU pending-owner
chain with foreign-parent rejection. Strict core all-target Clippy, dedicated
kernel fixture clippy-driver and whole-project formatting pass.
Next production boundary
------------------------
The parent is integrating actual registration/RM-instance/architecture ownership
into KernelGpu attachment. Constructor success is only a software base object.
Remaining original attach work includes030179 HAL/BOOT binding, required OS
mapping/backend setup and actual engine construction; selected full PF031221,
031215 and031218 phases remain required before initialized device-open can serve
CUDA resources. Clock inputs now have a typed independent encoder, but actual
FUSE/MemorySystem/VBIOS/graphics/FB owners must be constructed and wired.
No physical GPU execution, native cubin/CUDA hello, StateLoad completion, whole
hardware matrix or full closed-driver parity is claimed by this checkpoint.