mirror of
https://github.com/QuixiAI/nvdriver.git
synced 2026-12-06 06:28:39 +00:00
* GB20x (RTX 50): GSP boot through the FSP, MMU v3 and CUDA on a GB205 A GB205 (RTX 5070) stopped at "boot failed" (EIO): its GSP is started by the FSP, not by booter_load on SEC2, and its page tables are format version 3. - gpu/fsp.rs: the FSP command channel (EMEM queue, MCTP/NVDM headers), the chain-of-trust message with the FMC image and its signature, and the checks of the reply. extract_gsp_boot_ucode.py also takes the GB20x FMC out of the 580.178.04 module. - MMU format version 3 for the kernel-side tables and the UVM node: PDE4 root with 2 entries, PCF field, 16-byte PDE0. - Context buffers placed by their own sizes: a GB205's attribute CB is 50 MiB. - Work submit token with RUNLIST_DOORBELL (bit 30). - BLACKWELL_USERMODE_A with bBar1Mapping: the doorbell is mapped through BAR1 (PTE kind SMSKED_MESSAGE). Rung through BAR0, about one CUDA start in four waited forever for its first work. - Classes 0xcec0, 0xce97 and 0xc761; copy engines from the class database. Tested on an RTX 5070 (10de:2f04, VFIO guest, 580.178.04 userspace). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * uvm: a PTE kind that does not fit MMU format 3 gives an invalid entry V3 has four bits for the kind. A kind like 0x1f became 0xf, a reflected SKED entry without an address, and 0xdb became 0xb. Such an entry is now invalid, so that an access faults instead of using another kind. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * GB20x: review fixes - ga10x_mem: a BAR1 of 2 MiB or less has no room for the doorbell slot and is refused before anything is allocated. The check word stays out of that slot. If the window is taken back and the invalidate does not complete, its tables stay allocated. - ga10x_gsp: a boot that fails before the message to the FSP (for example because the FMC file is missing) gave no falcon an address, so its memory is freed and the next open can try again without a GPU reset. - uvm_node: VA bit 56 picks the PDE3 page in MMU format 3. - mmu_v3: a system address above bit 51 gives an invalid entry. - fsp: use the HWCFG2 and NVDM helpers that exist. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>