Skip to content

Per-version patch sets; 615.71.09 build on Linux 7.3 - #70

Closed
alexxy wants to merge 1 commit into
amoghmunikote:masterfrom
alexxy:feat/per-version-patches
Closed

alexxy wants to merge 1 commit into
amoghmunikote:masterfrom
alexxy:feat/per-version-patches

Conversation

@alexxy

@alexxy alexxy commented Nov 13, 2026

Copy link
Copy Markdown

Summary

Adds optional per-version patch directories (driver/patches/<PV>/*.patch, applied/staged after the common set only for a matching driver version) and uses the first one to make 615.71.09 build against Linux 7.3.

Changes

  • Build/staging hooks for driver/patches/<PV>/ — per-version patches apply after the common set, only when the target driver version matches the directory name.
  • New driver/patches/615.71.09/kernel-7.3-dmem-init-arg.patch: ports NVIDIA's own 615.78.08 adaptation of kernel commit e11640b9cea4 ("cgroup/dmem: Introduce struct dmem_cgroup_init", landed in v7.3-rc1) back to 615.71.09. dmem_cgroup_register_region() gained a const struct dmem_cgroup_init * first arg, so unpatched 615.71.09 fails with -Wint-conversion in os-interface.c. Adds conftest dmem_cgroup_register_region_has_init_arg + nvidia.Kbuild registration + os-interface.c guard — falls back to the old signature on kernels < 7.3.
  • tests/test_patches.py: asserts the per-version directory is picked for the matching PV and ignored for others, and that extra patches apply cleanly.

Testing

Verified building against 7.3.4-gentoo-dist: without the patch the build fails in os-interface.c (int→pointer); with it, the module builds and loads, nvidia-smi shows 65536 MiB. Conftest correctly selects the old signature on < 7.3. Tests in tests/test_patches.py pass.

Hardware tested on (if applicable):

  • GPU variant: 2× CMP 170HX 8 GB (10de:20c2)
  • PCIe slot / host: Supermicro X10DRG-H — GPU behind PCIe switch 80:03.0 → 83:00.0 (USP) → 84:08.0 / 84:10.0 (DSP, x4) → 85:00.0 / 86:00.0
  • Kernel / OS: 7.3.4-gentoo-dist, Gentoo Linux

driver/patches/<PV>/*.patch staged/applied after the common set for
matching versions only. First entry ports NVIDIA's own 615.78.08
adaptation for kernel commit e11640b9cea4 (dmem_cgroup_init, Linux 7.3)
back to 615.71.09: conftest dmem_cgroup_register_region_has_init_arg +
os-interface.c guard; verified building against 7.3.4-gentoo-dist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants