#1143256 nvidia-driver: fails DKMS build on kernel 6.12.100-1 with too few arguments to function ‘pci_resize_resource’

#1143256#5
Date:
2026-08-01 16:54:06 UTC
From:
To:
Dear Maintainer,

Upgrading trixie to kernel 6.12.100-1 (current trixie-security) fails
the DKMS autoinstall build of nvidia-driver 555.58.02-3 (current
experimental).

Excerpt from /var/lib/dkms/nvidia-current-open/555.58.02/build/make.log:

/var/lib/dkms/nvidia-current-open/555.58.02/build/nvidia/nv-pci.c: In function ‘nv_resize_pcie_bars’:
/var/lib/dkms/nvidia-current-open/555.58.02/build/nvidia/nv-pci.c:234:9: error: too few arguments to function ‘pci_resize_resource’
  234 |     r = pci_resize_resource(pci_dev, NV_GPU_BAR1, requested_size);
      |         ^~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia-current-open/555.58.02/build/nvidia/nv-pci-table.h:27,
                 from /var/lib/dkms/nvidia-current-open/555.58.02/build/nvidia/nv-pci.c:24:
/usr/src/linux-headers-6.12.100+deb13-common/include/linux/pci.h:1421:18: note: declared here
 1421 | int __must_check pci_resize_resource(struct pci_dev *dev, int i, int size,
      |                  ^~~~~~~~~~~~~~~~~~~

I can find some wider-web references to this build failure, but not for
kernel 6.12. I guess trixie-security picked up some breaking changes
from a later kernel amongst the security patches.

(For now, I've worked around by rolling back the kernel. Note I did
this *before* running reportbug, so the reported kernel below is NOT the
build failure one.)

#1143256#10
Date:
2026-08-01 17:35:43 UTC
From:
To:
...I have no idea how my searching failed to find bug #1143204 , which I
believe is almost exactly this save that I'm on -3 rather than -2, and has
already had some more investigation done. Sorry for the dup.

#1143256#15
Date:
2026-08-04 08:12:39 UTC
From:
To:
Dear Maintainer,

After installing linux-image-amd64:6.12.100-1 on Debian 13,
nvidia-kernel-dkms does not build anymore due to pci_resize_resource.
If 550.163.01-5 fixes the build, can you bump the repository?

Sincerely, Ciel.

#1143256#20
Date:
2026-08-10 07:14:02 UTC
From:
To:
tags 1143256 + patch

I submitted https://salsa.debian.org/nvidia-team/nvidia-open-gpu-kernel-modules/-/merge_requests/3
as the patch to address this issue.