nvidia-dkms-515 FTBS with linux 6.2

Bug #2009251 reported by Andrea Righi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-515 (Ubuntu)
Fix Released
Undecided
Unassigned
Lunar
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

nvidia-dkms-515 fails to build with linux 6.2, reporting the following error:

/var/lib/dkms/nvidia/515.86.01/build/nvidia-drm/nvidia-drm-drv.c:245:21: error: ‘struct drm_mode_config’ has no member named ‘fb_base’
  245 | dev->mode_config.fb_base = 0;
      | ^
make[2]: *** [scripts/Makefile.build:260: /var/lib/dkms/nvidia/515.86.01/build/nvidia-drm/nvidia-drm-drv.o] Error 1

[Fix]

Change the driver to support also the 6.2 kernel ABI.

[Test case]

With linux 6.2 installed, run:

$ sudo apt install nvidia-dkms-515

[Regression potential]

We may experience regressions in newer kernels (>= 6.2) that are using nvidia-dkms-515 (source code for previous kernels remain unchanged).

Tags: patch
Andrea Righi (arighi)
no longer affects: nvidia-graphics-drivers-510 (Ubuntu Lunar)
no longer affects: nvidia-graphics-drivers-510 (Ubuntu)
Revision history for this message
Andrea Righi (arighi) wrote :

debdiff in attach allows to use nvidia-dkms-515 with linux 6.2.

tags: added: patch
Revision history for this message
Andrea Righi (arighi) wrote :

I didn't realize that we use a separate folder to apply patches to the -open variant of the driver. So here's an additional debdiff (on top of the previous one) to also support nvidia-dkms-515-open with linux 6.2.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-graphics-drivers-515 - 515.86.01-0ubuntu3

---------------
nvidia-graphics-drivers-515 (515.86.01-0ubuntu3) lunar; urgency=medium

  * debian/open-kernel/patches/buildfix_kernel_6.2.patch,
    debian/templates/dkms_nvidia_open.conf.in,
    debian/dkms_nvidia_open.conf:
    - Add support for Linux 6.2 also for the 515-open driver (LP: #2009251).

 -- Andrea Righi <email address hidden> Mon, 06 Mar 2023 19:44:18 +0000

Changed in nvidia-graphics-drivers-515 (Ubuntu Lunar):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.