nvidia-dkms-390 FTBS with linux 6.2

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

Bug Description

[Impact]

nvidia-dkms-390 fails to build with linux 6.2:

/var/lib/dkms/nvidia/390.157/build/nvidia-drm/nvidia-drm-drv.c:244:21: error: ‘struct drm_mode_config’ has no member named ‘fb_base’
  244 | dev->mode_config.fb_base = 0;
      | ^

[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-390

[Regression potential]

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

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

debdiff in attatch allows to build nvidia-dkms-390 with linux 6.2.

Changed in nvidia-graphics-drivers-390 (Ubuntu):
status: New → Triaged
tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-graphics-drivers-390 - 390.157-0ubuntu5

---------------
nvidia-graphics-drivers-390 (390.157-0ubuntu5) lunar; urgency=medium

  * debian/templates/control.in:
    - Drop i386 from the nvidia-libopencl1-384 and the
      nvidia-opencl-icd-384 transitional packages. This should allow
      correct migration.

 -- Alberto Milone <email address hidden> Wed, 15 Mar 2023 15:38:08 +0000

Changed in nvidia-graphics-drivers-390 (Ubuntu Lunar):
status: Triaged → Fix Released
Revision history for this message
Andrea Righi (arighi) wrote :

Moving jammy to the same version of the driver used in lunar allows to use nvidia-dkms-390 both with the stock 5.15 kernel and the new hwe 6.2 (verified in a VM doing a simple test build).

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

Better debdiff to backport only the patch required to support linux 6.2 (that is much better from an SRU perspective). Tested with positive result in a VM both with 5.15 and the new hwe 6.2 kernels. So, please ignore my previous comment.

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-390 (Ubuntu Jammy):
status: New → Confirmed
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.