Bug#822645: nvidia-legacy-340xx-kernel-dkms: fails to build with kernel 4.6-rc5

Adam Borowski kilobyte at angband.pl
Mon Apr 25 22:14:46 UTC 2016


Package: nvidia-legacy-340xx-kernel-dkms
Version: 340.96-5
Severity: normal

Hi!
The nvidia module fails to build against current -rc kernel.  The following
patch makes it work:

--- os-mlock.c~	2016-04-22 21:19:09.000000000 +0200
+++ os-mlock.c	2016-04-25 23:47:41.529790073 +0200
@@ -45,7 +45,7 @@
     }
 
     down_read(&mm->mmap_sem);
-    ret = get_user_pages(current, mm, (unsigned long)address,
+    ret = get_user_pages((unsigned long)address,
             page_count, write, force, user_pages, NULL);
     up_read(&mm->mmap_sem);
     pinned = ret;


You'd of course need #ifdefs to keep it working on older kernels.  And
here's a problem -- the upstream commit that removes compat macros for
get_user_pages() is v4.6-rc2-1-gc12d2da, yet somehow Debian's -rc3 from
experimental does work with the unmodified nvidia source.  Thus, I'm not
certain which versions need the old and which the new code.



-- Package-specific info:
uname -a:
Linux umbar 4.6.0-rc5-x32 #1 SMP Mon Apr 25 22:42:37 CEST 2016 x86_64 GNU/Linux

/proc/version:
Linux version 4.6.0-rc5-x32 (kilobyte at umbar) (gcc version 5.3.1 20160421 (Debian 5.3.1-15) ) #1 SMP Mon Apr 25 22:42:37 CEST 2016

/proc/driver/nvidia/version:
NVRM version: NVIDIA UNIX x86_64 Kernel Module  340.96  Sun Nov  8 22:33:28 PST 2015
GCC version:  gcc version 5.3.1 20160421 (Debian 5.3.1-15) 

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (150, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-rc5-x32 (SMP w/6 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages nvidia-legacy-340xx-kernel-dkms depends on:
ii  dkms                                                             2.2.0.3-2
ii  nvidia-installer-cleanup                                         20151021+4
ii  nvidia-legacy-340xx-kernel-support [nvidia-legacy-340xx-kernel-  340.96-5

Versions of packages nvidia-legacy-340xx-kernel-dkms recommends:
ii  nvidia-legacy-340xx-driver  340.96-5

nvidia-legacy-340xx-kernel-dkms suggests no packages.

Versions of packages nvidia-legacy-340xx-driver depends on:
ii  libegl1-nvidia-legacy-340xx             340.96-5
ii  libgl1-nvidia-legacy-340xx-glx          340.96-5
ii  nvidia-installer-cleanup                20151021+4
ii  nvidia-legacy-340xx-alternative         340.96-5
ii  nvidia-legacy-340xx-driver-bin          340.96-5
ii  nvidia-legacy-340xx-vdpau-driver        340.96-5
ii  nvidia-support                          20151021+4
ii  xserver-xorg-video-nvidia-legacy-340xx  340.96-5

Versions of packages nvidia-legacy-340xx-driver recommends:
ii  libgl1-nvidia-legacy-340xx-glx-i386  340.96-5
ii  libgles1-nvidia-legacy-340xx         340.96-5
ii  libgles2-nvidia-legacy-340xx         340.96-5
ii  nvidia-persistenced                  364.15-2
ii  nvidia-settings-legacy-340xx         340.93-1

nvidia-legacy-340xx-driver suggests no packages.

Versions of packages xserver-xorg-video-nvidia-legacy-340xx depends on:
ii  libc6                                  2.22-7
ii  libgl1-nvidia-legacy-340xx-glx         340.96-5
ii  nvidia-installer-cleanup               20151021+4
ii  nvidia-legacy-340xx-alternative        340.96-5
ii  nvidia-support                         20151021+4
ii  xserver-xorg-core [xorg-video-abi-20]  2:1.18.3-1.0nosystemd1

Versions of packages xserver-xorg-video-nvidia-legacy-340xx recommends:
ii  nvidia-legacy-340xx-driver        340.96-5
ii  nvidia-legacy-340xx-vdpau-driver  340.96-5
ii  nvidia-settings-legacy-340xx      340.93-1

xserver-xorg-video-nvidia-legacy-340xx suggests no packages.

Versions of packages nvidia-legacy-340xx-alternative depends on:
ii  glx-alternative-nvidia  0.7.2

Versions of packages glx-alternative-nvidia depends on:
ii  glx-alternative-mesa  0.7.2
ii  glx-diversions        0.7.2
ii  update-glx            0.7.2

Versions of packages glx-alternative-nvidia suggests:
pn  nvidia-driver  <none>

Versions of packages xserver-xorg-video-intel depends on:
ii  libc6                                  2.22-7
ii  libdrm-intel1                          2.4.67-1
ii  libdrm2                                2.4.67-1
ii  libpciaccess0                          0.13.4-1
ii  libpixman-1-0                          0.33.6-1
ii  libudev1                               229-5
ii  libx11-6                               2:1.6.3-1
ii  libx11-xcb1                            2:1.6.3-1
ii  libxcb-dri2-0                          1.11.1-1
ii  libxcb-dri3-0                          1.11.1-1
ii  libxcb-sync1                           1.11.1-1
ii  libxcb-util0                           0.3.8-3
ii  libxcb1                                1.11.1-1
ii  libxcursor1                            1:1.1.14-1+b1
ii  libxdamage1                            1:1.1.4-2+b1
ii  libxext6                               2:1.3.3-1
ii  libxfixes3                             1:5.0.1-2+b2
ii  libxinerama1                           2:1.1.3-1+b1
ii  libxrandr2                             2:1.5.0-1
ii  libxrender1                            1:0.9.9-2
ii  libxshmfence1                          1.2-1
ii  libxss1                                1:1.2.2-1
ii  libxtst6                               2:1.2.2-1+b1
ii  libxv1                                 2:1.0.10-1+b1
ii  libxvmc1                               2:1.0.9-1
ii  xserver-xorg-core [xorg-video-abi-20]  2:1.18.3-1.0nosystemd1

Versions of packages nvidia-legacy-340xx-kernel-dkms is related to:
pn  bumblebee                                        <none>
pn  bumblebee-nvidia                                 <none>
pn  libcuda1                                         <none>
pn  libcuda1-any                                     <none>
pn  libdrm-nouveau1                                  <none>
pn  libdrm-nouveau1a                                 <none>
ii  libdrm-nouveau2                                  2.4.67-1
ii  libgl1-nvidia-legacy-340xx-glx [libgl1-nvidia-g  340.96-5
ii  linux-headers-3.19.0-x32 [linux-headers]         3.19.0-x32-10.00.Custom
ii  linux-headers-4.4.5-x32 [linux-headers]          4.4.5-x32-10.00.Custom
ii  linux-headers-4.6.0-rc4-x32 [linux-headers]      4.6.0-rc4-x32-10.00.Custom
ii  linux-headers-4.6.0-rc5-x32 [linux-headers]      4.6.0-rc5-x32-10.00.Custom
ii  make                                             4.1-9
pn  nvidia-glx-legacy-340xx                          <none>
ii  nvidia-kernel-common                             20151021+4
ii  nvidia-legacy-340xx-driver [nvidia-glx-any]      340.96-5
ii  nvidia-legacy-340xx-kernel-dkms                  340.96-5
pn  nvidia-legacy-340xx-kernel-source                <none>
ii  nvidia-legacy-340xx-kernel-support [nvidia-kern  340.96-5
ii  nvidia-modprobe                                  361.28-1
pn  nvidia-settings                                  <none>
ii  nvidia-support                                   20151021+4
pn  nvidia-xconfig                                   <none>
ii  ocl-icd-libopencl1 [libopencl1]                  2.2.9-1
pn  opencl-icd                                       <none>
ii  xserver-xorg                                     1:7.7+15
ii  xserver-xorg-core                                2:1.18.3-1.0nosystemd1
pn  xserver-xorg-legacy                              <none>
ii  xserver-xorg-video-nouveau                       1:1.0.12-1+b1
ii  xserver-xorg-video-nvidia-legacy-340xx [xserver  340.96-5

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/src/nvidia-legacy-340xx-340.96/os-mlock.c (from nvidia-legacy-340xx-kernel-dkms package)



More information about the pkg-nvidia-devel mailing list