Commit Graph

6 Commits

Author SHA1 Message Date
c67a0e1131 tools: absolutize rustup path before cwd and resolve rustc sysroot for clippy-driver 2026-12-02 14:56:39 -08:00
d61ad9fd3e tools: run rustup rustfmt lookup in repo_root and derive clippy-driver from RUSTC first 2026-12-02 14:41:57 -08:00
36f7b979d2 tools,gpu: fix broken timer-state-load-test.sh and hardcoded toolchain/analysis paths
- tools/timer-state-load-test.sh: resolve rustc and clippy-driver via rustup which / PATH / rustc sibling instead of hardcoding $HOME/.rustup/toolchains/1.100.0-x86_64-unknown-linux-gnu, and mark executable.
- src/nvidia/src/gpu/timer/load.rs: collapse nested if-let chain so timer-state-load-test.sh passes clippy-driver -D warnings cleanly on edition 2024.
- tools/gpu_generate_owned_clock_templates.py, tools/gpu_generate_clock_level_program.py, tools/gpu_generate_clock_cache_data.py: discover rustfmt via RUSTFMT / rustup which / PATH / RUSTUP_HOME instead of hardcoded ~/.rustup/toolchains/..., honor NV_RS_RM_OBJECT / NV_RS_ANALYSIS_ROOT, and wrap CLI entrypoints in main().
- tools/first_open_coverage.py: resolve nv-kernel.o_binary via NV_RS_RM_OBJECT / NV_RS_ANALYSIS_ROOT / /usr/src/nvidia-580.178.04 fallback, defer SPINE loading out of import scope, and handle missing reports/first-open-coverage.json cleanly under --check.
- tests/offline/test_toolchain_and_coverage_tools.py: 4 offline unit tests.
2026-12-02 03:07:40 -08:00
ab85c978d5 build(#161): portable make check, NV_RS_ANALYSIS_ROOT, /usr/bin/env python3 shebangs, and refreshed README.txt 2026-12-02 02:55:05 +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
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