Repository navigation
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
driver/patches/<PV>/— per-version patches apply after the common set, only when the target driver version matches the directory name.driver/patches/615.71.09/kernel-7.3-dmem-init-arg.patch: ports NVIDIA's own 615.78.08 adaptation of kernel commite11640b9cea4("cgroup/dmem: Introduce struct dmem_cgroup_init", landed in v7.3-rc1) back to 615.71.09.dmem_cgroup_register_region()gained aconst struct dmem_cgroup_init *first arg, so unpatched 615.71.09 fails with-Wint-conversioninos-interface.c. Adds conftestdmem_cgroup_register_region_has_init_arg+nvidia.Kbuildregistration +os-interface.cguard — 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-smishows 65536 MiB. Conftest correctly selects the old signature on < 7.3. Tests intests/test_patches.pypass.Hardware tested on (if applicable):
80:03.0→83:00.0(USP) →84:08.0/84:10.0(DSP, x4) →85:00.0/86:00.0