Skip to content

overlay nvidia-drivers: fix builds for Kernel 6.12.97 (stable) - #4205

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

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

Conversation

@dongsupark

@dongsupark dongsupark commented Aug 10, 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. However we need to fix also nvidia-drivers 535.

Testing done

CI: https://jenkins.flatcar.org/job/container/job/packages_all_arches/511/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.

Signed-off-by: Dongsu Park <dongsu@dpark.io>
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.

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 10, 2026
@dongsupark
dongsupark marked this pull request as ready for review August 10, 2026 12:17
@dongsupark
dongsupark requested a review from a team as a code owner August 10, 2026 12:17
@dongsupark
dongsupark merged commit 4e7f221 into flatcar-4593 Aug 10, 2026
24 of 25 checks passed
@dongsupark
dongsupark deleted the dongsu/fix-nvidia-drivers-4593 branch August 10, 2026 12:50
@github-project-automation github-project-automation Bot moved this from ✅ Testing / in Review to Implemented in Flatcar tactical, release planning, and roadmap Aug 10, 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