- Add root LICENSE (MIT License, Copyright (c) 2026 QuixiAI / Eric Hartford).
- Set license = "MIT" in workspace Cargo.toml and member crates (zero non-MIT dependencies).
- Update all kernel-open/ and tests/vm/ SPDX headers to MIT and EXPORT_SYMBOL_GPL -> EXPORT_SYMBOL.
- Use MODULE_LICENSE("Dual MIT/GPL") in Linux .ko modules so Linux modpost permits linking against the kernel's own EXPORT_SYMBOL_GPL symbols while keeping the repository source 100% MIT.
Closes#12.
Tested on 4x Tesla V100-SXM2-16GB (Dell PowerEdge C4130) running Ubuntu
7.0.0-44-generic with Intel VT-d enabled (no iommu=pt).
Fixes#2 and a few other things that showed up once 16GB cards came up:
- Derive the GV100 runtime VRAM window, RMAPI VideoRegion ceiling, NVENC
ucode staging address, and UVM descriptor/PMA base from the real FB size
in placement::Placement::usable instead of hardcoding 32 GiB constants.
Also pass the detected VRAM size through fb_info_v2_with_usable so
cards with a smaller BAR1 still report the right total memory.
- Switch LiveEngine::irq_top_half, live_irq_mask, and live_irq_unmask to
the lockless nv_rs_pci_{read,write}32_irq helpers. Using the normal
nv_rs_pci_{read,write}32 path acquires p->access inside hardirq context
and self-deadlocks when an IRQ lands on the same CPU running
irq_thread_service.
- DMA-map sysmem pages per GPU instead of putting raw physical addresses
in GPU page tables and rings: lazy per-GPU dma_map_page for RMAPI
allocations and CPU-mapped UVM semaphore/managed pages, dma_alloc_coherent
for SysmemPageTree and the replayable fault ring, and a live coherent
flush page in 0x100c10 across ACR load/runtime/unload so SYS_MEMBAR does
not hit stale unmapped IOVAs left behind by stock nvidia.ko.
- Add version-guarded compatibility wrappers for Linux 6.3-7.0 API changes
(noop_llseek, vm_flags_set/clear, PCI_IRQ_INTX, timer_container_of,
hrtimer_setup, MAX_PAGE_ORDER, MODULE_IMPORT_NS("DMA_BUF"), and
drm_driver.date).
Verified with cargo fmt/clippy/test (918 passed), make modules +
check_kernel_module.py (10/10, largest_stack 1000), native-hello,
uvm-replayable-fault-test, 4-GPU cuda-multigpu-parity (matches stock
580.178.04), and llama-bench on 1 and 4 GPUs with zero DMAR faults and
clean unbind/rmmod.