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
111 lines
7.1 KiB
Plaintext
111 lines
7.1 KiB
Plaintext
580.178.04 ACR framebuffer-image packaging and selected SEC2 bootloader
|
|
|
|
This continues gpu-acr-firmware.txt. No physical GPU access, hardware reset,
|
|
authentication, protected-memory publication or native cubin execution occurred.
|
|
|
|
Address-space correction and original allocation ABI
|
|
A transient draft incorrectly inferred addressSpace2 asSYS. That inference and
|
|
the unvalidated coherent-SYS packaging draft are INVALIDATED and replaced.
|
|
Actual original014072 space2 calls framebuffer043803/060574; space1/7 calls
|
|
OS049548. The public SDK's1=SYSMEM/2=FBMEM agrees. Prior unpack/signature proofs
|
|
did not depend on the incorrect inference. Original016741 at nativea3e4d3:
|
|
043694(out,GPU,round256(image_bytes),0x100,1,2,1,0). It sets descriptor usagea0
|
|
=82, invokes043691 backing allocation,043739 CPUmap(...,0), copies the entire
|
|
rounded CPU image with052695, then043773 CPUunmap(...,10hex). Native execution
|
|
of actual016741 observes all arguments in8 allocation-boundary cases; prepared
|
|
image/WPR gather are explicit scripted prerequisites, allocation exits status7.
|
|
This is NOT original complete hardware bootstrap execution.
|
|
|
|
Production acr_image::Image now requires explicit framebuffer-only VramIo
|
|
create/allocate/map/copy/unmap/release providers. Request includes bytes,
|
|
alignment256,contiguous1,cacheType1,flags0,usage82. No coherentSYS fallback or
|
|
raw-DMA-as-FalconVA conversion remains. Failed backing/mappings remain owned and
|
|
cannot expose a copied allocation. Kernel Firmware::package supplies its actual
|
|
owned rounded CPU allocation, including padding; it does not supply VRAM facts.
|
|
Six transaction/failure cases cover create,allocate,map,partialcopy,unmap and
|
|
successful sequencing. Unavailable and executed NvStatus remain separate.
|
|
|
|
Actual WPR allocation path and real missing inputs
|
|
016940 aggregates an actual engine request list by key, accumulating bytes and
|
|
max alignment and enforcing existing descriptor capacity. That request-list
|
|
producer and real geometry/reservations are still required; no empty/default
|
|
request list is used. 016953 rounds each real region's size to its alignment.
|
|
Primary addressSpace is2(FBMEM) when actual392false,1(SYSMEM) when392true.
|
|
All three hidden8th arguments are flags4 (including PRIMARY); all cacheTypes1.
|
|
Primary usage16hex, shadow386true usage17, optionalbackup529true usage18. Backup
|
|
swaps into primary after successful allocation. 016937 subsequently creates
|
|
physical-range allocators and places actual engine firmware. This is separate
|
|
from assigning hardware protection and authenticating WPR contents.
|
|
|
|
acr_image::Region implements exactly the framebuffer-primary branch, required
|
|
shadow/backup ordering, flags4, checked rounding and final swap. Actual supplied
|
|
requests and policy are mandatory. It tries cleanup on construction failure,
|
|
retains any failed-release tokens and blocks publication after failure. System
|
|
primary requires its separate system owner; this API never substitutes VRAM.
|
|
Eight actual original016953 execution cases (all392/386/529 combinations) retain
|
|
real creation ABI/usage/order/primary-swap observations. Four framebuffer cases
|
|
are compared with production Rust. Descriptor/backing allocation is scripted;
|
|
these tests do not allocate actual VRAM or establish protected-region ownership.
|
|
|
|
Selected Falcon and recovered matching bootloader
|
|
Executing actual005876 with chipHAL35 selects+248=028470,+250=028502,
|
|
+2e8=028579. 028502 follows actualGPU2308 SEC2+3a0. Executing actual006010 with
|
|
chipHAL35 andRMHAL2 selects+3a0=055663 returning tagged bundle011401d8.
|
|
Tag23 is768byte bootloader; tag12 is24byte metadata. Both decode through actual
|
|
017881 graph in private Unicorn RAM and match independent zlib. Decodedtag23
|
|
SHA256f21f1cfbb8fffa8067685314367fc4c50f3f84dd99eda7c19db4292d9269b9d9
|
|
is EXACTLY installed /lib/firmware/nvidia/gv100/acr/bl.bin bytes512..1280.
|
|
This proves matching bootloader bytes only. Main ACR load image differs and its
|
|
compatibility is NOT established by this match.
|
|
|
|
Actual metadata words:fd,0,0,200hex,200hex,100hex. 028470 requires bootloader
|
|
size(+c) multiple256, uses HWCFG(relative108)&1ff as IMEM256byte capacity,
|
|
places512bytes at(capacity-2)*256, and uses virtual entryfd00. New
|
|
falcon_imem::bootloader_transfer derives those parameters from actual bounded
|
|
metadata/code/HWCFG; undersized/malformed capacities reject instead of wrapping.
|
|
|
|
Concrete IMEM loader and original proof
|
|
falcon_imem::load translates028523 and selected028579 address maskfffc.
|
|
It writes IMEMC(port18hex*10hex) with auto-increment/security/address fields,
|
|
tag188 every64 words and consecutive IMEMD port+4 words. Original028579 and
|
|
028523 instructions execute for96 transcript cases; relative register leaf is
|
|
an explicit recorder. Rust matches every write.288 injected failing writes
|
|
check exact partial progress; budget/alignment/bounds fail before any write.
|
|
This is a real register algorithm, NOT evidence that reset, engine ownership,
|
|
protection or authentication prerequisites have completed. All hardware remains
|
|
untouched and no actual loader path is called against an active GPU.
|
|
|
|
Exact remaining selected028470 dependencies
|
|
- ActualGPU1ea0 clock owner+198 and initialized Falcon state: original rejects
|
|
busy582, preserves/restores3a5/3a7/3aa with distinct early-exit behavior.
|
|
- Actual028467 reset sequence1,0,1;028746 delay1us and interrupt mask14=ffffffff.
|
|
- The original ACR call uses DMAindex1/addressspace2/cache1/virtualmode1/wait1.
|
|
- Selected+260=028420 creates class90f1 VAspace64MiB,align1000,flags20000fff,
|
|
realGPUinstance mask;040832 binds actual Falcon618 instance/PDB.
|
|
- Selected+270=028379 validates framebuffer descriptor viaFB+358 and maps it
|
|
with026096 into that owned VM. The resulting GPU VA (not CPUphysical/DMAIOVA)
|
|
populates boot descriptor24/28 and adjusts40/44.
|
|
- Actual028759 binds the owned instance with aperture/physical PDB and polls;
|
|
DMEM+1e0=028457/028456, IMEM028523, mailbox40=fe,entry104=fd00,start+1c8
|
|
=028764, thenwait+268=028781->028782 with real configured timeout and actual
|
|
mapping teardown. Those missing providers cannot return synthetic success.
|
|
- ACR+110=016753 gathers actual WPR regions and copies primary to shadow using
|
|
physical range ownership. Real region requests, physical limits and reserved
|
|
firmware/VBIOS/ECC/private areas must precede VRAM allocations. MMU agent owns
|
|
real geometry/reservations and PRAMIN/bus access integration.
|
|
|
|
Evidence/reproduction
|
|
Fresh retained, closed/reset REA: gpu-acr-dma-rea(11functions),
|
|
gpu-falcon-bootstrap-rea(11functions). Original HAL binding records:
|
|
gpu-acr-falcon-bindings.json,gpu-acr-sec2-bindings.json.
|
|
Original instruction oracles:
|
|
tools/gpu_acr_parent_package_oracle.py ->8 boundary cases,
|
|
tools/gpu_acr_region_oracle.py ->8 region cases,
|
|
tools/gpu_falcon_imem_oracle.py ->96 complete write transcripts,
|
|
tools/gpu_sec2_original_unpack.py ->2 actual selected payloads.
|
|
Rust validation: tools/test_gpu_acr_bootstrap.py (4 focused tests),
|
|
tools/test_gpu_firmware_owner.sh (production kernel owner +strictClippy),
|
|
cargo clippy -p nv-rs-core --all-targets -- -D warnings.
|
|
The native oracle commands use ~/.local/opt/rea-python/bin/python and only
|
|
private emulated memory. New real framebuffer provider remains mandatory.
|