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: [email protected], [email protected]
> User: [email protected]
> 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.

Reply via email to