nvidia-dkms-510 FTBS with linux 6.2

Bug #2009248 reported by Andrea Righi
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-510 (Ubuntu)
Fix Released
Undecided
Unassigned
Lunar
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

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

/var/lib/dkms/nvidia/510.108.03/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/510.108.03/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-510

[Regression potential]

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

Tags: patch
Revision history for this message
Andrea Righi (arighi) wrote (last edit ):

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

no longer affects: nvidia-graphics-drivers-470 (Ubuntu Lunar)
no longer affects: nvidia-graphics-drivers-470 (Ubuntu)
tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-graphics-drivers-510 - 510.108.03-0ubuntu2

---------------
nvidia-graphics-drivers-510 (510.108.03-0ubuntu2) lunar; urgency=medium

  * debian/dkms_nvidia/patches/buildfix_kernel_6.2.patch,
    debian/templates/dkms_nvidia.conf.in,
    debian/dkms_nvidia.conf:
    - Add support for Linux 6.2 (LP: #2009248).

 -- Andrea Righi <email address hidden> Sat, 04 Mar 2023 08:44:06 +0000

Changed in nvidia-graphics-drivers-510 (Ubuntu Lunar):
status: New → Fix Released
Revision history for this message
Eik Dahms (eik-dahms-g) wrote (last edit ):

I have the same problem with nvidia-graphics-drivers-520 and kernel 6.2.0-32-generic getting the exact same error message as in the bug description

see here for 520 - https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-520/+bug/2031973

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.