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
89 lines
5.3 KiB
Plaintext
89 lines
5.3 KiB
Plaintext
GPU StateInit engine pass and concrete PCI-register window
|
|
|
|
Fresh REA inspected nine adapter/state functions plus eight register/engine
|
|
functions against the original580.178.04 kernel RM. The retained instruction
|
|
results identify the actual software-to-hardware boundary more precisely than
|
|
constructor success. No original driver or GPU register was changed.
|
|
|
|
Adapter dispatcher after object publication
|
|
_nv000790rm obtains the published GPU, sets aperture/OS fields, consults
|
|
configuration, applies platform console/clock paths and then reaches:
|
|
_nv031503rm -> PF monolithic GPU+0xb0 -> _nv031221rm: full StatePreInit
|
|
The wrapper performs mandatory work before its _nv031220 base engine pass.
|
|
_nv031501rm -> _nv031215rm: StateInit
|
|
_nv031502rm -> PF monolithic GPU+0xb8 -> _nv031218rm: full StateLoad
|
|
The wrapper performs mandatory work before and after _nv031217 base engine pass.
|
|
These aliases match exact580 gpu/gpu.c functions and explicit Load strings.
|
|
They are separate phases. Some GSP/virtual/SOC paths select different callbacks.
|
|
|
|
The StateInit pass iterates GPU+0xda0 descriptors in the HAL supplied order,
|
|
looks up each engine with _nv030522rm, logs transition3, calls _nv026844rm,
|
|
then logs transition completion. Missing engines are skipped. NV_ERR_NOT_SUPPORTED
|
|
is normalized to success for this Init pass; other errors stop later engines.
|
|
A pre-Init prerequisite callback at GPU+0xc8 must succeed before iteration.
|
|
After policy updates, GPU+0x90d is marked initialized. That is not the same as
|
|
successful StateLoad or operational CUDA readiness.
|
|
|
|
_nv026844rm requires the GPU lock. If the engine's vtable+0x58 is not the
|
|
no-op default, it drops the lock, calls unlocked initialization, then reacquires
|
|
the lock. It preserves the unlocked callback failure ahead of a relock failure.
|
|
Only both-success permits the locked callback at vtable+0x50. This is why a
|
|
single generic call under one permanently held lock is not equivalent.
|
|
|
|
src/nvidia/src/gpu/bringup.rs implements this ordered Init pass and exact
|
|
unsupported/error treatment over an EngineBackend. An added internal safety
|
|
boundary stops if lock ownership was lost after a normalized optional failure;
|
|
original subsequent helpers assert ownership. The backend must supply actual
|
|
HAL order and concrete engine initialization; no fake default implementation
|
|
is provided. Three tests exercise order, missing/unsupported engines, unlocked
|
|
callback/relock order, fatal failure and prevention of partial publication.
|
|
PreInit has different engine removal policies and is deliberately not treated
|
|
as an alias for this Init sequencer.
|
|
|
|
OS binding before these phases
|
|
_nv049623rm is a seven-byte return0 function in this image.
|
|
_nv049556rm assigns nv_state backpointer and GPU+0x9d8, reads
|
|
RMSecBusResetEnable and RMForcePcieConfigSave and may invoke a vGPU-host helper.
|
|
Those are OS binding operations, not a register boot transcript.
|
|
|
|
Concrete register-window HAL recovered
|
|
_nv031092rm/_nv031264rm validate offset<=0xffc, then access PCFG at
|
|
BAR0+0x88000+offset. _nv031102rm/_nv031266rm support function0 at0x88000
|
|
and function1 at0x8a000. The latter function is suppressed by GPU+0x4de4:
|
|
read returns0, write performs no physical access, both reportNV_OK. Unsupported
|
|
function/read bounds return0xffff; function-write bounds/errors return0x1f.
|
|
The underlying _nv049612rm/_nv049615rm align physical32-bit accesses by
|
|
(offset>>2)*4 after mapped-length and emulation checks.
|
|
|
|
src/nvidia/src/gpu/registers.rs implements this specifically selected physical
|
|
window policy over RegisterIo, preserving bounds/status differences and raw
|
|
physical dword rounding. Virtual/intercepted accesses must be routed separately
|
|
before choosing this branch, because their handlers receive unrounded input.
|
|
There is no raw MMIO adapter here: an owning kernel backend must establish BAR
|
|
ownership/mapping, register state checks, accessibility and ordering first.
|
|
This is not claimed as the register layout for all hardware families.
|
|
Three tests cover exact address sequencing, boundary/no-side-effect failure,
|
|
function suppression and backend error propagation.
|
|
|
|
Remaining immediate execution blockers
|
|
The first complete ordered GV100 engine/HAL register-write and poll sequence is
|
|
still not recovered. StatePreInit creates internal objects and walks its own
|
|
engine order; StateInit and StateLoad then invoke class-specific callbacks.
|
|
The full HAL order, instantiated engine set, power/reset/VBIOS steps and their
|
|
interrupt/DMA prerequisites must be resolved before executing writes.
|
|
Existing source gpuChildOrderList_GM200 is useful comparative evidence, but
|
|
must not be silently assumed identical to the proprietary GV100 engine list.
|
|
_nv031156rm gate and _nv015884rm/_nv015885rm register wrappers also enforce
|
|
GPU state/role and emulation paths; directly using a PCFG offset bypasses that
|
|
policy unless the owning backend implements those prerequisites.
|
|
|
|
Validation
|
|
Ten GPU-module tests pass including the four existing construction tests.
|
|
Strict workspace Clippy passes. Seventeen fresh REA instruction records bind
|
|
the original object SHA. This is host implementation and static evidence,
|
|
not physical GPU execution or proof of complete hardware initialization.
|
|
|
|
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.
|