Addresses the remaining actionable CodeRabbit and live-silicon review findings
from PRs #204, #205, #267, #268, #286, and #335:
- #286 (live 2x Tesla P100-PCIE-16GB stock 580.178.04 recording by @dcr000):
Update GP100 PCIe (active_nvlink_mask == 0) CE_GET_ALL_CAPS in
ce_all_caps_for_arch() to match stock 0x0364 / 0x0368 / 0x0361 (no
BL_SIZE_GT_64K 0x80 bit), plus unit test in gpu_tests.rs.
- #267 (CodeRabbit Major): Fail Ga10xGsp::unload() (return false) when
Booter Unload fails or leaves WPR2_HI non-zero, so fini() does not release
DMA or un-quarantine the slot while WPR2 is still up.
- #268 (CodeRabbit Major): Add find_fwsec_for_arch(rom, want_v2) so GA10x+
VBIOSes carrying both V2 and V3 BIT entries select V3; validate secure IMEM
bounds (imem_sec_pa + imem_sec_size <= code_bytes()) in parse_fwsec_v2().
- #204 (CodeRabbit): Verify heap_base + 0x2000 fits within mapped_len in
Ga10xMem::bar1_check() on small BAR1 apertures.
- #205 (CodeRabbit Major): Search the existing shared mirror-table borrow in
gsp_route::get_pids() instead of re-borrowing via find(); short-circuit
holder counting in rmapi::memory::Table::video_usage() via .take(2).count().
- #335 (CodeRabbit Major + Minor): Include cleanup instructions (./uninstall.sh
or removing /etc/modprobe.d/nvdriver.conf and nvdriver-devnodes.service) in
install.sh's dual-GPU warning; remove regular-file /dev/nvidia* placeholders
after unmounting in uninstall.sh while preserving real character devices.
Verified with 32/32 tools/validate_all.sh checks (1,093 unit tests passed).
- /etc/modprobe.d/nvdriver.conf hardcoded 'runtime_engines=1 pci_target=*',
so MODPROBE_ARGS only applied until the next boot. Write MODPROBE_ARGS.
- bind_dev_nodes.sh refuses to run while stock nvidia is loaded; under
set -e that aborted install.sh after modprobe.d, udev and systemd were
written and before the verify step. Warn and skip the bind instead,
like the existing warning for pinned stock modules.
- nvidia-persistenced was stopped for the reload and never started
again; start it if it was active.
- uninstall.sh reverses install.sh: unloads the nvdriver modules, removes
updates/nvdriver for every kernel (unless DKMS owns it), the
modprobe.d / modules-load.d / udev / systemd / CDI-patch files, and with
REMOVE_FIRMWARE=1 /lib/firmware/nvidia-rs.