Commit Graph

12 Commits

Author SHA1 Message Date
1a395c78c1 rmapi/vm: port FB_GET_INFO_V2 heap stats, CUDA 12 dlopen, guest_build, and path fallbacks (#162, #150) 2026-12-02 02:13:47 +00:00
32c8728037 Migrate the workspace and kernel crates to Rust edition 2024
Mechanical, behavior-neutral: edition/resolver keys, unsafe extern blocks,
unsafe(no_mangle)/unsafe(export_name), unsafe blocks inside unsafe fn,
r#gen renames, --edition flags in Makefiles/tools, rustfmt style_edition
pinned to 2021 so formatting stays edition-independent, and clippy
collapsible_if allowed workspace-wide (let-chain churn).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-12-02 01:52:38 +08:00
d4cd0444d2 tools: stop EDU validation when VM build prerequisites fail 2026-12-01 17:27:18 +00:00
d7894b7b43 tools: replace stale EDU success reports when a run fails (#103) 2026-12-01 12:24:33 -05:00
33ac35fb3f tools: record and gate reproducible 620 header checks (#100) 2026-12-01 12:24:18 -05:00
6f57dc38c7 tools: validate exact integer types in EDU guest evidence (#99) 2026-12-01 12:24:10 -05:00
faf69d5275 gsp: honor gsp_abi in boot/recovery RPCs, fix 6.12+ guest header, clarify driver_version
- Fixes #47: dispatch wait_for_rm_init_done_with_abi, execute_gsp_boot_with_abi,
  boot_gsp_rm, and GspRpcSession::rpc_call through the active session
  GspAbiVersion (matching REA _nv041450rm dispatching via pRpc->rpcRecvPoll),
  with end-to-end R620 MCTP/NVDM boot unit test.
- Fixes #52: guard <linux/unaligned.h> vs <asm/unaligned.h> on 6.12+ in
  tests/vm/edu_adapter_test.c so validate_all.sh guest_build passes on 6.12+/7.x.
- Fixes #49: clarify in MODULE_PARM_DESC and README.md that driver_version
  (default 580.178.04 for userspace NVML/libcuda matching) is independent of
  gsp_abi (GSP-RM wire protocol framing).
2026-12-01 05:59:57 +00:00
77c9ad20b1 tests/vm: use unimplemented class 0x9096 in rmapi_user_test NOT_SUPPORTED check
0x208f (CLASS_SUBDEVICE_DIAG) is now implemented, so testing it for
NOT_SUPPORTED (0x56) failed the QEMU guest RM API gate. Switch the
unimplemented-class probe to 0x9096 (GF100_ZBC_CLEAR).
2026-12-01 05:21:06 +00:00
8202288ea7 Follow-up to PR #16/#29: harden IRQ/CE/NVLink edge cases and fix guest test build
- gv100_irq_service.rs: drop sw_methods_serviced > 0 requirement so a fresh SW method (PGRAPH_INTR == 0x10) arriving before PMC_INTR_0 recheck never falsely quarantines PGRAPH.
- rmapi_engine.rs: unbind SCRUB_CHID in CCSR on CE scrub timeout; preserve bound_irq_handle across deactivate/reactivate so nv_rs_irq_bind() does not fail with -EBUSY on reopen.
- uvm_node.rs & uvm_interface_ffi.rs: check NVLink symmetrically before enabling peer atomics.
- tools/vm/build_guest_test.sh & tests/vm/edu_adapter_test.c: copy uvm_node.h and stub nv_rs_uvm_unmap_gpu_dev for the QEMU EDU guest module build.
2026-12-01 01:10:46 +00:00
33ff608a88 Add MIT LICENSE and unify repository SPDX/Cargo/module licensing
- 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.
2026-12-01 00:20:02 +00:00
4b6a77d90f Clean-room Rust NVIDIA 580.178.04 driver: GV100 0-diff parity (8-GPU PyTorch/NCCL/llama.cpp, H.264+HEVC NVDEC/NVENC, 2,096/2,096 RM controls, stock UVM/modeset bridges, artificial restrictions unlocked) 2026-11-27 20:45:30 +00:00
4526e6a816 Baseline: validated 30/30 tree with passing Level 7 hardware regression
- 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
2026-11-23 23:48:38 +00:00