Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: [email protected], 
[email protected]
Control: affects -1 + src:nvidia-open-gpu-kernel-modules
User: [email protected]
Usertags: pu

[ Reason ]

The driver version available in trixie can no longer be compiled against
the linux kernel version in trixie-security starting with
release 6.12.100+deb13

[ Impact ]

Users cannot use their NVIDIA GPU with the kernel from trixie-security;
they might disable kernel updates from trixie-security or keep booting
older kernels before 6.12.100 to keep their GPU working.

[ Tests ]

Manually tested by installing the package on my local trixie system
which is impacted. Everything works as expected on my NVIDIA GPU.

[ Risks ]

N/A.

[ Checklist ]
  [x] *all* changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in (old)stable
  [x] the issue is verified as fixed in unstable

[ Changes ]

* Added patch
* Updated d/gbp.conf and d/salsa-ci.yml for trixie
* The d/.gitignore file is automatically removed from the source package
  after calling `gbp`; this is trivial and not worth investigating IMO.

[ Other info ]

Many users have been complaining about this for months, see the related
bugs. I have been merging them as much as I can but might have missed
some. This is not a perfect solution but better than the current
statu-quo.

Proposing a backport for this might be tricky as the driver has been
broken on forky for a while and backporting it means fixing forky first,
which is not on my priority list, so I hope this stable update comes in
due time as we cannot ask users to use trixie-backports in the meantime.
diff -Nru nvidia-open-gpu-kernel-modules-550.163.01/debian/changelog 
nvidia-open-gpu-kernel-modules-550.163.01/debian/changelog
--- nvidia-open-gpu-kernel-modules-550.163.01/debian/changelog  2025-07-21 
23:45:24.000000000 +0200
+++ nvidia-open-gpu-kernel-modules-550.163.01/debian/changelog  2026-12-02 
17:25:15.000000000 +0100
@@ -1,3 +1,16 @@
+nvidia-open-gpu-kernel-modules (550.163.01-2+deb13u1) trixie; urgency=medium
+
+  [ Agathe Porte ]
+  * d/gbp.conf: update debian-branch to 550/trixie
+  * d/salsa-ci.yml: set RELEASE to trixie
+
+  [ Ciel Avenir ]
+  * Backport NV_PCI_RESIZE_RESOURCE_HAS_EXCLUDE_BARS_ARG changes from
+    590.48.01 to fix open kernel module build for Linux 6.12.100.
+    (Closes: #1143204, #1147948)
+
+ -- Agathe Porte <[email protected]>  Wed, 02 Dec 2026 17:25:15 +0100
+
 nvidia-open-gpu-kernel-modules (550.163.01-2) unstable; urgency=medium
 
   * Sync with src:nvidia-graphics-drivers.
diff -Nru nvidia-open-gpu-kernel-modules-550.163.01/debian/gbp.conf 
nvidia-open-gpu-kernel-modules-550.163.01/debian/gbp.conf
--- nvidia-open-gpu-kernel-modules-550.163.01/debian/gbp.conf   2025-07-21 
23:45:24.000000000 +0200
+++ nvidia-open-gpu-kernel-modules-550.163.01/debian/gbp.conf   2026-12-02 
17:23:10.000000000 +0100
@@ -1,4 +1,4 @@
 [DEFAULT]
-debian-branch = 550/main
+debian-branch = 550/trixie
 upstream-branch = 550/upstream
 upstream-vcs-tag = %(version)s
diff -Nru nvidia-open-gpu-kernel-modules-550.163.01/debian/.gitignore 
nvidia-open-gpu-kernel-modules-550.163.01/debian/.gitignore
--- nvidia-open-gpu-kernel-modules-550.163.01/debian/.gitignore 2025-07-21 
23:45:24.000000000 +0200
+++ nvidia-open-gpu-kernel-modules-550.163.01/debian/.gitignore 1970-01-01 
01:00:00.000000000 +0100
@@ -1 +0,0 @@
-/patches/*~
diff -Nru 
nvidia-open-gpu-kernel-modules-550.163.01/debian/patches/module/0073-backport-NV_PCI_RESIZE_RESOURCE_HAS_EXCLUDE_BARS_ARG.patch
 
nvidia-open-gpu-kernel-modules-550.163.01/debian/patches/module/0073-backport-NV_PCI_RESIZE_RESOURCE_HAS_EXCLUDE_BARS_ARG.patch
--- 
nvidia-open-gpu-kernel-modules-550.163.01/debian/patches/module/0073-backport-NV_PCI_RESIZE_RESOURCE_HAS_EXCLUDE_BARS_ARG.patch
     1970-01-01 01:00:00.000000000 +0100
+++ 
nvidia-open-gpu-kernel-modules-550.163.01/debian/patches/module/0073-backport-NV_PCI_RESIZE_RESOURCE_HAS_EXCLUDE_BARS_ARG.patch
     2026-12-02 17:25:15.000000000 +0100
@@ -0,0 +1,58 @@
+From: cielavenir <[email protected]>
+Date: Mon, 10 Aug 2026 15:00:00 +0900
+Subject: [PATCH] backport NV_PCI_RESIZE_RESOURCE_HAS_EXCLUDE_BARS_ARG from 
590.48.01
+
+--- a/nvidia/nv-pci.c  2026-08-10 14:37:29.701142746 +0900
++++ b/nvidia/nv-pci.c  2026-08-10 14:47:54.711993675 +0900
+@@ -234,7 +234,11 @@
+ 
+ resize:
+     /* Attempt to resize BAR1 to the largest supported size */
++#if defined(NV_PCI_RESIZE_RESOURCE_HAS_EXCLUDE_BARS_ARG)
++    r = pci_resize_resource(pci_dev, NV_GPU_BAR1, requested_size, 0);
++#else
+     r = pci_resize_resource(pci_dev, NV_GPU_BAR1, requested_size);
++#endif
+ 
+     if (r) {
+         if (r == -ENOSPC)
+--- a/nvidia/nvidia.Kbuild     2026-08-10 14:42:53.576785875 +0900
++++ b/nvidia/nvidia.Kbuild     2026-08-10 14:46:57.086638469 +0900
+@@ -262,6 +262,7 @@
+ NV_CONFTEST_TYPE_COMPILE_TESTS += memory_failure_has_trapno_arg
+ NV_CONFTEST_TYPE_COMPILE_TESTS += foll_longterm_present
+ NV_CONFTEST_TYPE_COMPILE_TESTS += bus_type_has_iommu_ops
++NV_CONFTEST_TYPE_COMPILE_TESTS += pci_resize_resource_has_exclude_bars_arg
+ 
+ NV_CONFTEST_GENERIC_COMPILE_TESTS += dom0_kernel_present
+ NV_CONFTEST_GENERIC_COMPILE_TESTS += nvidia_vgpu_kvm_build
+--- a/conftest.sh      2026-08-10 14:42:53.584786074 +0900
++++ b/conftest.sh      2026-08-10 14:44:57.647827732 +0900
+@@ -6449,6 +6449,27 @@
+             compile_check_conftest "$CODE" 
"NV_PCI_REBAR_GET_POSSIBLE_SIZES_PRESENT" "" "functions"
+         ;;
+ 
++        pci_resize_resource_has_exclude_bars_arg)
++            #
++            # Determine if pci_resize_resource() has exclude_bars argument.
++            #
++            # exclude_bars argument was added to pci_resize_resource by commit
++            # 337b1b566db0 (11/14/2025) ("PCI: Fix restoring BARs on BAR 
resize rollback path")
++            # in linux-next.
++            #
++            CODE="
++            #include <linux/pci.h>
++
++            typeof(pci_resize_resource) 
conftest_pci_resize_resource_has_exclude_bars_arg;
++            int __must_check 
conftest_pci_resize_resource_has_exclude_bars_arg(struct pci_dev *dev,
++                                                                              
 int i, int size,
++                                                                              
 int exclude_bars) {
++                return 0;
++            }"
++
++            compile_check_conftest "$CODE" 
"NV_PCI_RESIZE_RESOURCE_HAS_EXCLUDE_BARS_ARG" "" "types"
++        ;;
++
+         wait_for_random_bytes)
+             #
+             # Determine if the wait_for_random_bytes() function is present.
diff -Nru 
nvidia-open-gpu-kernel-modules-550.163.01/debian/patches/module/series 
nvidia-open-gpu-kernel-modules-550.163.01/debian/patches/module/series
--- nvidia-open-gpu-kernel-modules-550.163.01/debian/patches/module/series      
2025-07-21 23:45:24.000000000 +0200
+++ nvidia-open-gpu-kernel-modules-550.163.01/debian/patches/module/series      
2026-12-02 17:25:15.000000000 +0100
@@ -21,6 +21,7 @@
 0070-backport-make_device_exclusive-changes-from-570.153..patch
 0071-backport-nv_vma_start_write-changes-from-570.169.patch
 0072-backport-NV_DRM_FBDEV_AVAILABLE-changes-from-570.169.patch
+0073-backport-NV_PCI_RESIZE_RESOURCE_HAS_EXCLUDE_BARS_ARG.patch
 
 # build system updates
 conftest-verbose.patch
diff -Nru nvidia-open-gpu-kernel-modules-550.163.01/debian/salsa-ci.yml 
nvidia-open-gpu-kernel-modules-550.163.01/debian/salsa-ci.yml
--- nvidia-open-gpu-kernel-modules-550.163.01/debian/salsa-ci.yml       
2025-07-21 23:45:24.000000000 +0200
+++ nvidia-open-gpu-kernel-modules-550.163.01/debian/salsa-ci.yml       
2026-12-02 17:24:29.000000000 +0100
@@ -5,6 +5,7 @@
 variables:
   SALSA_CI_COMPONENTS: 'main contrib non-free non-free-firmware'
   SALSA_CI_DISABLE_BUILD_PACKAGE_I386: 1
+  RELEASE: 'trixie'
 
 # some standard flags are not used while building a kernel module
 blhc:

Reply via email to