13 Commits

Author SHA1 Message Date
4f3029ebd7 tools/docs: NixOS portability for first-open runner, bind_dev_nodes, pahole, and live-swap udev freeze (#506)
* tools/docs: NixOS portability for first-open runner, bind_dev_nodes, pahole, and live-swap udev freeze

* docs: note udev queue restart on failed or aborted live swaps

* docs: drain in-flight udev workers with udevadm settle before freezing queue
2026-12-04 20:28:24 -08:00
Kev
034d12a8d6 gpu: run GP104 Devinit before framebuffer discovery (#547)
* Run GP104 VBIOS Devinit before framebuffer discovery

Run the stock-derived Devinit sequence on uninitialized Tesla P4 and GTX 1070 cards before the normal Pascal runtime reads VRAM. Extract the signed PMU boot loader from the stock 580.178.04 object and retain DMA if the PMU fails to quiesce.

* Reuse the Pascal firmware pack and recover incomplete GP104 bring-up

* Recover retained GP104 PCI owners and reconcile bus setup on rebind

* Preserve the next driver's bus mastering after a Devinit drain
2026-12-04 17:03:00 -08:00
9f70f56020 chore: update repository references from QuixiAI/nvdriver to nvdriver/nvdriver (#520)
Co-authored-by: Eric Hartford <eric@quixi.ai>
2026-12-03 21:34:14 -08:00
7f1ebf4aa1 install: preserve CDI mounts when adding /dev/char (#474)
Edit the global CDI mount list as YAML and atomically publish a complete spec. Retain the generated content when parsing fails or an existing mount conflicts.
2026-12-03 15:14:46 -08:00
a9caad9d85 docs/INSTALL.md: place public MOK.der in user-readable /etc/nvdriver while keeping MOK.priv in /root/mok 2026-12-02 22:24:19 -08:00
b928b0b03c docs/INSTALL.md: read optional nvdriver-fw from module args so omitting it works under applyModuleArgs 2026-12-02 22:08:38 -08:00
2a7fe0a1b6 docs/INSTALL.md: make NixOS pre-GSP firmware optional and support pure flake inputs 2026-12-02 22:03:38 -08:00
4191ac64b3 docs/INSTALL.md: wire rust-overlay, preserve firmware version dir, and document --rm-object & running kernel check 2026-12-02 21:57:39 -08:00
ad0101dbee docs/INSTALL.md: evaluate NixOS kernel.dev/modDirVersion from system config, supply Rust toolchain, and package pre-GSP firmware 2026-12-02 21:51:21 -08:00
42a56755ce docs/INSTALL.md: fix NixOS kernel package, python3 build input, boot load, and rollback 2026-12-02 21:41:57 -08:00
9159bc3418 Address CodeRabbit follow-up findings on #198
- Move NixOS make modules build to Step 4 Option C (after repo clone and Rust
  setup) and include a complete boot.extraModulePackages derivation example
  plus a NixOS rollback subsection.
- Add explicit ARM64 rustup target add aarch64-unknown-none instruction.
- Require a working mokutil --sb-state before running ./install.sh without
  offering firmware-UI confirmation as a substitute.
- Clarify that MODPROBE_ARGS applies only to immediate load (not across
  reboot) and document /etc/modprobe.d/nvdriver.conf + initramfs rebuild.
- Use tools/rmapi_namespace_launcher.py in Step 5 nvidia-smi verification.
2026-12-02 17:15:22 -08:00
fe4be8899c Address Greptile review findings on #198
- Step 5 (4777833017): add distro-specific initramfs rebuild steps before
  rebooting (and on uninstall) so /etc/modprobe.d/nvdriver.conf prevents
  stock nvidia.ko from claiming GPUs during early boot.
- NixOS (4777833025): include linuxPackages.kernel.dev, KERNEL_SOURCES
  build invocation, and NixOS-specific installation guidance instead of
  FHS-only ./install.sh.
- Secure Boot (4777833035, 4777833044): require mokutil before checking
  Secure Boot state (explaining ./install.sh skips signing without it),
  label update-secureboot-policy as Ubuntu/Debian, and add portable
  OpenSSL MOK_PRIV/MOK_DER instructions for Fedora/RHEL/Arch plus NixOS notes.
- Offline test command (4777833052): change cargo test --workspace to
  cargo test --workspace --lib so fresh clones do not fail on untracked
  analysis-file integration tests.
2026-12-02 16:54:12 -08:00
8e99eecf04 docs: add beginner-friendly distro-by-distro installation & rollback guide (#115, #133)
Add docs/INSTALL.md with step-by-step instructions for Ubuntu/Debian,
Arch/CachyOS, Fedora, and NixOS, covering:
- Package prerequisites and pinned Rust toolchain (rust-toolchain.toml)
- Secure Boot MOK enrollment
- ./install.sh options (BUILD_BRIDGES=0, SKIP_VOLTA_FOREVER=1, LLVM=1, MODPROBE_ARGS)
- Pre-GSP & GSP firmware extraction
- Troubleshooting NVML 'GPU access blocked by the operating system'
  (install nvidia /bin/false + tools/rmapi_namespace_launcher.py) and
  kernels without CONFIG_MODVERSIONS
- Safe VFIO testing and full rollback/uninstall steps

Link docs/INSTALL.md prominently from README.md.

Fixes #115
2026-12-01 22:05:21 -08:00