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
69 lines
4.1 KiB
Plaintext
69 lines
4.1 KiB
Plaintext
GPU construction implementation and fresh original-driver observations
|
|
|
|
The new src/nvidia/src/gpu.rs implements a transactional 32-adapter registry.
|
|
The backend owns allocations, bindings and physical resources. Registration,
|
|
zeroed GPU storage, table setup, four base constructors, field initialization
|
|
and GPU construction complete before registry publication. Each failed stage
|
|
returns its exact status and unwinds completed base constructors in reverse,
|
|
releases owned storage and unregisters the adapter. The failed backend stage
|
|
must clean its own partial resources. Tokens include registry identity and
|
|
slot generation. Removing a constructed/ready object destroys it once; a ready
|
|
object first shuts hardware down. Dropping the registry drains owned objects.
|
|
|
|
Construction is a separate phase from hardware readiness. initialize() calls
|
|
the owning backend's actual hardware initialization and enters Ready only on
|
|
success. No physical backend is provided here; these mechanisms do not perform
|
|
GPU initialization and their tests never claim physical CUDA execution.
|
|
|
|
Recovered original sequence
|
|
_nv005722rm sets four embedded-base pointers and class vtables, then performs
|
|
four HAL-specialized function-table setup passes. _nv003368rm matches exact
|
|
580 generated g_gpu_nvoc.c::__nvoc_ctor_OBJGPU, using Object, GpuHalspecOwner,
|
|
RmHalspecOwner and OBJTRACEABLE in that order. All four constructor callees in
|
|
this image are seven-byte functions returning zero. Failed GPU construction
|
|
unwinds the four base destructors in reverse order, corroborating the public
|
|
source. Original object size is0x6e70; constructor thread-state allocation0xa0.
|
|
|
|
_nv030237rm matches exact source gpu/gpu.c::gpuConstruct_IMPL: stores instance,
|
|
GPU ID/board ID, architecture object, optional16-byte UUID, initializes the OS
|
|
extension and container state, allocates thread state and invokes the physical
|
|
constructor through GPU+0xa0. The initialized callback _nv030234rm simply
|
|
returns0 for VF / kernel-only paths. PF monolithic runtime3 maps to HALindex2
|
|
and selects _nv030235rm, which sets
|
|
software lists and allocates/zeros0x2cbytes. Neither is an ordered GPU boot
|
|
sequence. The names and runtime mapping are now corroborated by original _nv006055 and
|
|
creation path _nv031364; see gpu-gv100-hal-audit.txt.
|
|
|
|
_nv031342rm writes its second argument to GPU+0xc8 and returns. Earlier notes
|
|
listing it as a mandatory registered-GPU transition did not establish a hardware
|
|
initializer. The fresh instructions show it is an OS-binding pointer assignment.
|
|
_nv049713rm and later initialization stages still require complete contracts.
|
|
|
|
Next actual hardware work
|
|
The kernel driver must implement safe PCI ownership, BAR/DMA allocation,
|
|
interrupts and chipset/factory callbacks after object publication. The large
|
|
adapter initialization dispatcher _nv000790rm remains the path for these
|
|
operations; constructor success alone is not device readiness. OS-binding
|
|
_nv049556rm assigns backpointers and queries RMSecBusResetEnable /
|
|
RMForcePcieConfigSave, while _nv049623rm returns0 in this image. Those findings
|
|
are from preserved full exports; only the eight queried functions listed in
|
|
validation JSON are fresh REA observations in this pass.
|
|
|
|
Evidence and limits
|
|
reports/gpu-constructor-rea/ holds three fresh complete function dossiers;
|
|
reports/gpu-constructor-followup-rea/ holds five focused instruction results.
|
|
The first complete follow-up encountered REA's10MiB transport budget; it was
|
|
replaced with focused instruction tools rather than silently treating missing
|
|
reference data as complete. Original binary/Program and installed modules were
|
|
not changed. No MMIO or target GPU initialization was attempted.
|
|
|
|
Tests
|
|
Four tests cover failure injection at all nine construction stages, exact
|
|
reverse cleanup, Constructed-versus-Ready separation, visibility policy,
|
|
ready shutdown/reuse and stale/cross-registry tokens. The backend in these tests
|
|
is an explicit simulated failure injector, not the original RM or physical GPU.
|
|
|
|
HAL selection correction: prior RM HALindex0 evaluator labels were wrong.
|
|
PF monolithic runtime3 maps to index2 in the ORIGINAL constructor. See
|
|
gpu-gv100-hal-audit.txt; base passes are not complete physical GPU phases.
|