Bug#945101: nvidia-driver: NVIDIA driver fails to compile on bpo kernel 5.2

Harm te Hennepe dhtehennepe at gmail.com
Tue Nov 19 16:20:15 GMT 2019


Package: nvidia-driver
Version: 418.74-1
Severity: normal
Tags: patch

Dear Maintainer,

Buster's nvidia kernel driver fails to install on bpo kernel 5.2, due to
put_user_pages already included in the kernel, see here:
https://garajau.com.br/2019/07/compiling-nvidia-418-on-kernel-52

This can fixed for all versions with the following patch:

*** source/nvidia-uvm/uvm8_tools.c      2019-11-19 17:11:49.478995704 +0100
--- source/nvidia-uvm/uvm8_tools.c      2019-11-19 17:04:05.458646201 +0100
***************
*** 206,217 ****
--- 206,219 ----
      return event_tracker != NULL && !event_tracker->is_queue;
  }

+ #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0)
  static void put_user_pages(struct page **pages, NvU64 page_count)
  {
      NvU64 i;
      for (i = 0; i < page_count; i++)
          put_page(pages[i]);
  }
+ #endif

  static void unmap_user_pages(struct page **pages, void *addr, NvU64 size)
  {

Kind regards,
Harm te Hennepe

-- Package-specific info:
uname -a:
Linux powerbox 5.2.0-0.bpo.3-amd64 #1 SMP Debian 5.2.17-1~bpo10+1 (2019-09-30) x86_64 GNU/Linux

/proc/version:
Linux version 5.2.0-0.bpo.3-amd64 (debian-kernel at lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 5.2.17-1~bpo10+1 (2019-09-30)

/proc/driver/nvidia/version:
NVRM version: NVIDIA UNIX x86_64 Kernel Module  418.74  Wed May  1 11:49:41 CDT 2019
GCC version:  gcc version 8.3.0 (Debian 8.3.0-6) 

-- System Information:
Debian Release: 10.2
  APT prefers stable
  APT policy: (700, 'stable'), (500, 'stable-updates'), (50, 'testing'), (40, 'unstable'), (30, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.2.0-0.bpo.3-amd64 (SMP w/12 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages nvidia-driver depends on:
ii  nvidia-alternative                         418.74-1
ii  nvidia-driver-bin                          418.74-1
ii  nvidia-driver-libs                         418.74-1
ii  nvidia-installer-cleanup                   20151021+9
ii  nvidia-kernel-dkms [nvidia-kernel-418.74]  418.74-1
ii  nvidia-legacy-check                        418.74-1
ii  nvidia-support                             20151021+9
ii  nvidia-vdpau-driver                        418.74-1
ii  xserver-xorg-video-nvidia                  418.74-1

Versions of packages nvidia-driver recommends:
ii  libnvidia-cfg1       418.74-1
pn  nvidia-persistenced  <none>
ii  nvidia-settings      418.74-1

Versions of packages nvidia-driver suggests:
ii  nvidia-kernel-dkms  418.74-1

Versions of packages nvidia-driver-libs:amd64 depends on:
ii  libgl1-nvidia-glvnd-glx  418.74-1
ii  nvidia-egl-icd           418.74-1

Versions of packages nvidia-driver-libs:amd64 recommends:
ii  libgles-nvidia1          418.74-1
ii  libgles-nvidia2          418.74-1
ii  libglx-nvidia0           418.74-1
ii  libnvidia-cfg1           418.74-1
ii  libopengl0               1.1.0-1
pn  nvidia-driver-libs-i386  <none>
ii  nvidia-vulkan-icd        418.74-1

Versions of packages xserver-xorg-video-nvidia depends on:
ii  libc6                                  2.28-10
ii  libnvidia-glcore                       418.74-1
ii  nvidia-alternative                     418.74-1
ii  nvidia-installer-cleanup               20151021+9
ii  nvidia-legacy-check                    418.74-1
ii  nvidia-support                         20151021+9
ii  xserver-xorg-core [xorg-video-abi-24]  2:1.20.4-1

Versions of packages xserver-xorg-video-nvidia recommends:
ii  nvidia-kernel-dkms [nvidia-kernel-418.74]  418.74-1
ii  nvidia-settings                            418.74-1
ii  nvidia-vdpau-driver                        418.74-1

Versions of packages xserver-xorg-video-nvidia suggests:
ii  nvidia-kernel-dkms  418.74-1

Versions of packages nvidia-alternative depends on:
ii  dpkg                    1.19.7
ii  glx-alternative-nvidia  1.0.0
ii  nvidia-legacy-check     418.74-1

Versions of packages nvidia-kernel-dkms depends on:
ii  dkms                                               2.6.1-4
ii  nvidia-installer-cleanup                           20151021+9
ii  nvidia-kernel-support [nvidia-kernel-support--v1]  418.74-1

nvidia-kernel-dkms recommends no packages.

Versions of packages glx-alternative-nvidia depends on:
ii  dpkg                  1.19.7
ii  glx-alternative-mesa  1.0.0
ii  glx-diversions        1.0.0
ii  update-glx            1.0.0

glx-alternative-nvidia suggests no packages.

Versions of packages xserver-xorg-video-intel depends on:
ii  libc6                                  2.28-10
ii  libdrm-intel1                          2.4.97-1
ii  libdrm2                                2.4.97-1
ii  libpciaccess0                          0.14-1
ii  libpixman-1-0                          0.36.0-1
ii  libudev1                               241-7~deb10u2
ii  libx11-6                               2:1.6.7-1
ii  libx11-xcb1                            2:1.6.7-1
ii  libxcb-dri2-0                          1.13.1-2
ii  libxcb-dri3-0                          1.13.1-2
ii  libxcb-sync1                           1.13.1-2
ii  libxcb-util0                           0.3.8-3+b2
ii  libxcb1                                1.13.1-2
ii  libxcursor1                            1:1.1.15-2
ii  libxdamage1                            1:1.1.4-3+b3
ii  libxext6                               2:1.3.3-1+b2
ii  libxfixes3                             1:5.0.3-1
ii  libxinerama1                           2:1.1.4-2
ii  libxrandr2                             2:1.5.1-1
ii  libxrender1                            1:0.9.10-1
ii  libxshmfence1                          1.3-1
ii  libxss1                                1:1.2.3-1
ii  libxtst6                               2:1.2.3-1
ii  libxv1                                 2:1.0.11-1
ii  libxvmc1                               2:1.0.10-1
ii  xserver-xorg-core [xorg-video-abi-24]  2:1.20.4-1

Versions of packages nvidia-driver is related to:
pn  bumblebee                                                  <none>
pn  bumblebee-nvidia                                           <none>
pn  ccache                                                     <none>
pn  libcuda1                                                   <none>
pn  libcuda1-any                                               <none>
pn  libdrm-nouveau1                                            <none>
pn  libdrm-nouveau1a                                           <none>
ii  libdrm-nouveau2                                            2.4.97-1
ii  libegl1                                                    1.1.0-1
ii  libgl1                                                     1.1.0-1
ii  libgl1-nvidia-glvnd-glx [libgl1-nvidia-glx-any]            418.74-1
ii  libgles1                                                   1.1.0-1
ii  libgles2                                                   1.1.0-1
ii  libglvnd0                                                  1.1.0-1
ii  libglx0                                                    1.1.0-1
pn  libopencl0                                                 <none>
pn  libopencl1                                                 <none>
ii  libvulkan1                                                 1.1.97-2
pn  linux-headers                                              <none>
ii  make                                                       4.2.1-1.2
ii  nvidia-driver [nvidia-glx-any]                             418.74-1
pn  nvidia-glx                                                 <none>
ii  nvidia-kernel-common                                       20151021+9
ii  nvidia-kernel-dkms                                         418.74-1
pn  nvidia-kernel-source                                       <none>
ii  nvidia-kernel-support [nvidia-kernel-support-any]          418.74-1
ii  nvidia-modprobe                                            418.56-1
ii  nvidia-settings                                            418.74-1
ii  nvidia-support                                             20151021+9
ii  nvidia-vulkan-icd [vulkan-icd]                             418.74-1
ii  nvidia-xconfig                                             418.56-1
pn  opencl-icd                                                 <none>
ii  xserver-xorg                                               1:7.7+19
ii  xserver-xorg-core                                          2:1.20.4-1
ii  xserver-xorg-legacy                                        2:1.20.4-1
ii  xserver-xorg-video-nouveau                                 1:1.0.16-1
ii  xserver-xorg-video-nvidia [xserver-xorg-video-nvidia-any]  418.74-1

-- no debconf information



More information about the pkg-nvidia-devel mailing list