Bug#1135362: linux-image-7.0.3+deb14-amd64: Fails to build nVidia module
Jonas Andradas
j.andradas at gmail.com
Mon May 11 18:38:00 BST 2026
Hi Julian,
Please find attached the "consolidated" patch as "final-patch.patch) (I had
3-4 which I merged into one), in case it is useful. As I mentioned, I used
Claude Code to support this process, and iterated several times until a
working patch was produced. (I also did the same using Gemini, but
Gemini's patch seems a little bit more messy, although it also "works"
(e.g. the module compiles). I can share the patch produced with Gemini as
well for reference when I'm back home, although the one with Claude seemed
the cleanest.)
Thanks,
Jonas.
Jonás Andradas
GPG Fingerprint: 678F 7BD0 83C3 28CE 9E8F
3F7F 4D87 9996 E0C6 9372
On Sun, May 10, 2026 at 8:17 AM Julian Gilbey <jdg at debian.org> wrote:
> Dear Jonas,
>
> Thanks for this tantalising message!
>
> Until the maintainer is able to provide a "proper" patch, would you be
> able to share your patch? The maintainer might well then be able to
> check it and either approve or improve on it.
>
> Best wishes,
>
> Julian
>
> On Fri, May 08, 2026 at 08:50:33AM +0200, Jonas Andradas wrote:
> > Package: nvidia-kernel-dkms
> > Version: 550.163.01-5
> > Followup-For: Bug #1135362
> > X-Debbugs-Cc: debian-amd64 at lists.debian.org, j.andradas at gmail.com
> > User: debian-amd64 at lists.debian.org
> > Usertags: amd64
> > Control: tags -1 ftbfs
> >
> > Dear Maintainer,
> >
> > I am experiencing this as well in my Debian sid system. I had a similar
> issue a
> > couple of weeks ago in a Proxmox host (running Debian trixie), as Proxmox
> > provides its own kernel and it was bumped to version 7. Leveraging AI
> (Gemini
> > and Claude) I managed to obtain patches for the nvidia-kernel-dkms
> package in
> > trixie, so that it would compile for Proxmox's kernel 7. These compile
> and I
> > get the functionality, so for me it was "good enough" for my homelab,
> but I
> > would not be so bold as to presume they are the best patch possible. If
> these
> > patches can be useful to see the changes that were needed to make this
> work,
> > such as the ones below, I could upload the file under debian/patches that
> > applied to the trixie package allowed me to built it for Proxmox's
> kernel 7:
> >
> > - conftest.sh: detect NV_VM_AREA_STRUCT_HAS___VM_FLAGS, absence of
> > dma_map_ops.map_resource, void return of dma_fence_signal, and
> > drm_mode_config_funcs.fb_create format_info argument
> > - nv-mm.h: handle vma->vm_flags cast for kernels without __vm_flags
> > - nv-mmap.c: wrap VMA_LOCK_OFFSET and __is_vma_write_locked for
> 1-arg form
> > - nv-time.h: compat shim for removed in_irq() macro
> > - nv-dma.c: guard dma_map_ops.map_resource access
> > - header-presence-tests.mk: add drm/drm_print.h detection
> > - nvidia-drm-priv.h: include drm_print.h for
> DRM_ERROR/DRM_INFO/DRM_DEBUG
> > - nvidia-dma-fence-helper.h: handle void dma_fence_signal return
> type
> > - nvidia-drm-helper.h: use for_each_new_*_in_state iterators
> > - nvidia-drm-drv.c, nvidia-drm-fb.c: handle fb_create format_info
> arg
> >
> >
> > Thanks,
> > Jonas.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nvidia-devel/attachments/20260511/0acf81cf/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: final-patch.patch
Type: application/x-patch
Size: 7072 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-nvidia-devel/attachments/20260511/0acf81cf/attachment.bin>
More information about the pkg-nvidia-devel
mailing list