Skip to content

overlay nvidia-drivers: fix builds for Kernel 6.12.97 version 570 (stable) - #4207

Merged
dongsupark merged 2 commits into
flatcar-4593from
dongsu/nvidia-drivers-570-flatcar-4593
Aug 11, 2026
Merged

overlay nvidia-drivers: fix builds for Kernel 6.12.97 version 570 (stable)#4207
dongsupark merged 2 commits into
flatcar-4593from
dongsu/nvidia-drivers-570-flatcar-4593

Conversation

@dongsupark

@dongsupark dongsupark commented Aug 11, 2026

Copy link
Copy Markdown
Member

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 entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update) (not needed)
  • Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.

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 dongsupark moved this from ⚒️ In Progress to ✅ Testing / in Review in Flatcar tactical, release planning, and roadmap Aug 11, 2026
@dongsupark
dongsupark marked this pull request as ready for review August 11, 2026 13:42
@dongsupark
dongsupark requested a review from a team as a code owner August 11, 2026 13:42
@dongsupark
dongsupark merged commit 5ce0a6c into flatcar-4593 Aug 11, 2026
24 of 25 checks passed
@dongsupark
dongsupark deleted the dongsu/nvidia-drivers-570-flatcar-4593 branch August 11, 2026 14:30
@github-project-automation github-project-automation Bot moved this from ✅ Testing / in Review to Implemented in Flatcar tactical, release planning, and roadmap Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Development

Successfully merging this pull request may close these issues.

2 participants