Hi Jonás,

Many thanks for this!

Best wishes,

   Julian

On Mon, May 11, 2026 at 07:38:00PM +0200, Jonas Andradas wrote:
> 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 <[email protected]> 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: [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