overlay nvidia-drivers: fix builds for Kernel 6.12.97 version 570 (stable) - #4207
Merged
Merged
Conversation
Starting from Kernel 6.12.97, prototype of pci_resize_resource() has changed [1], so it started to take 4 args instead of 3. To deal with both cases of 3 and 4 args, define a new config check in conftest.sh to check if the Kernel header has which variant of pci_resize_resource(), and define a variable NV_PCI_RESIZE_RESOURCE_HAS_EXCLUDE_BARS_ARG if that has 4 args. Use that later from the caller in nvidia/nv-pci.c. [1] https://lore.kernel.org/all/20251113162628.5946-7-ilpo.jarvinen@linux.intel.com/ This is similar to the previous fix 56a996d, which fixed only old-nvidia-drivers 550. Now fixing for nvidia-drivers 570. Signed-off-by: Dongsu Park <dongsu@dpark.io>
Clean up unnecessary version 580.95.05, and regenerate Manifest. Signed-off-by: Dongsu Park <dongsu@dpark.io>
dongsupark
requested a deployment
to
development
August 11, 2026 07:08 — with
GitHub Actions
Waiting
dongsupark
marked this pull request as ready for review
August 11, 2026 13:42
tormath1
approved these changes
Aug 11, 2026
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.
Starting from Kernel 6.12.97, prototype of pci_resize_resource() has changed, so it started to take 4 args instead of 3. To deal with both cases of 3 and 4 args, define a new config check in conftest.sh to check if the Kernel header has which variant of pci_resize_resource(), and define a variable NV_PCI_RESIZE_RESOURCE_HAS_EXCLUDE_BARS_ARG if that has 4 args. Use that later from the caller in nvidia/nv-pci.c.
This is similar to the previous fix 56a996d, which fixed only old-nvidia-drivers 550. Now fixing for nvidia-drivers 570.
Testing done
CI: https://jenkins.flatcar.org/job/container/job/packages_all_arches/519/cldsv/ (passed)
changelog/directory (user-facing change, bug fix, security fix, update) (not needed)/bootand/usrsize, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.