nvidia-*: nvidia-* kernel module failed to build with kernel 4.9 [error: passing argument 5 of ‘get_user_pages’ from incompatible pointer type]

Bug #1642241 reported by Anas
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-304 (Ubuntu)
Fix Released
High
Unassigned
nvidia-graphics-drivers-340 (Ubuntu)
Fix Released
High
Unassigned
nvidia-graphics-drivers-367 (Ubuntu)
Confirmed
High
Unassigned

Bug Description

nvidia 340.98 is failed with kernel 4.9.x

ProblemType: Package
DistroRelease: Ubuntu 17.04
Package: nvidia-340 340.98-0ubuntu1
ProcVersionSignature: Ubuntu 4.8.0-27.29-generic 4.8.1
Uname: Linux 4.8.0-27-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia
.proc.driver.nvidia.gpus.0000.01.00.0: Error: [Errno 21] est un dossier: '/proc/driver/nvidia/gpus/0000:01:00.0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 340.98 Mon Sep 19 17:31:03 PDT 2016
 GCC version: gcc version 6.2.0 20161109 (Ubuntu 6.2.0-13ubuntu1)
.tmp.unity_support_test.0:

ApportVersion: 2.20.3-0ubuntu8
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: compiz
CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
CompositorUnredirectFSW: true
DKMSKernelVersion: 4.9.0-1-generic
Date: Wed Nov 16 12:06:39 2016
DistUpgraded: Fresh install
DistroCodename: zesty
DistroVariant: ubuntu
DkmsStatus:
 bbswitch, 0.8, 4.8.0-26-generic, x86_64: installed
 bbswitch, 0.8, 4.8.0-27-generic, x86_64: installed
 bbswitch, 0.8, 4.9.0-1-generic, x86_64: installed
 nvidia-340, 340.98, 4.8.0-26-generic, x86_64: installed
 nvidia-340, 340.98, 4.8.0-27-generic, x86_64: installed
DuplicateSignature: dkms:nvidia-340:340.98-0ubuntu1:/var/lib/dkms/nvidia-340/340.98/build/os-mlock.c:49:55: error: passing argument 5 of ‘get_user_pages’ from incompatible pointer type [-Werror=incompatible-pointer-types]
GraphicsCard:
 NVIDIA Corporation GT218 [GeForce G210] [10de:0a60] (rev a2) (prog-if 00 [VGA controller])
   Subsystem: Pegatron GT218 [GeForce G210] [1b0a:9045]
InstallationDate: Installed on 2016-11-13 (3 days ago)
InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Alpha amd64 (20161112)
MachineType: Hewlett-Packard HP Elite 7100 Microtower PC
PackageVersion: 340.98-0ubuntu1
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.8.0-27-generic root=UUID=c7607fd8-02eb-40f0-b3fb-25acb82c79e2 ro quiet splash
RelatedPackageVersions:
 dpkg 1.18.10ubuntu1
 apt 1.3.1
SourcePackage: nvidia-graphics-drivers-340
Title: nvidia-340 340.98-0ubuntu1: nvidia-340 kernel module failed to build
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/23/2011
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 5.19
dmi.board.name: 2A9Ch
dmi.board.vendor: MSI
dmi.board.version: 1.0
dmi.chassis.asset.tag: CZC0375QV2
dmi.chassis.type: 3
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr5.19:bd03/23/2011:svnHewlett-Packard:pnHPElite7100MicrotowerPC:pvrxxx0204GRxxxxxxxx0:rvnMSI:rn2A9Ch:rvr1.0:cvnHewlett-Packard:ct3:cvr:
dmi.product.name: HP Elite 7100 Microtower PC
dmi.product.version: xxx0204GRxxxxxxxx0
dmi.sys.vendor: Hewlett-Packard
version.compiz: compiz 1:0.9.13.1+17.04.20161114.1-0ubuntu1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.73-1
version.libgl1-mesa-dri: libgl1-mesa-dri 12.0.3-1ubuntu2
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 12.0.3-1ubuntu2
version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
version.xserver-xorg-core: xserver-xorg-core 2:1.18.4-1ubuntu7
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.7.1-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20160706-1ubuntu1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.13-1
xserver.bootTime: Wed Nov 16 12:16:34 2016
xserver.configfile: default
xserver.errors: open /dev/fb0: No such file or directory
xserver.logfile: /var/log/Xorg.0.log
xserver.outputs:

xserver.version: 2:1.18.4-1ubuntu7

Revision history for this message
Anas (anas-blinux) wrote :
summary: nvidia-340 340.98-0ubuntu1: nvidia-340 kernel module failed to build
+ [error: passing argument 5 of ‘get_user_pages’ from incompatible pointer
+ type]
Changed in nvidia-graphics-drivers-340 (Ubuntu):
status: New → Confirmed
Changed in nvidia-graphics-drivers-367 (Ubuntu):
status: New → Confirmed
summary: - nvidia-340 340.98-0ubuntu1: nvidia-340 kernel module failed to build
- [error: passing argument 5 of ‘get_user_pages’ from incompatible pointer
- type]
+ nvidia-*: nvidia-* kernel module failed to build with kernel 4.9 [error:
+ passing argument 5 of ‘get_user_pages’ from incompatible pointer type]
Changed in nvidia-graphics-drivers-340 (Ubuntu):
importance: Undecided → High
Changed in nvidia-graphics-drivers-367 (Ubuntu):
importance: Undecided → High
Revision history for this message
dino99 (9d9) wrote :

Needs using the drivers from graphics-drivers ppa

* Add patch to fix build with kernel 4.9

 -- Michael Marley <email address hidden> Wed, 16 Nov 2016 18:18:43 -0500

So hopes to see it landing into ZZ archive asap.

Revision history for this message
dino99 (9d9) wrote :

@Daniel,

as a side note:

NVIDIA today issued the 375.20 Linux driver release as their first in the stable 375 driver series for Linux:

OpenGL on-disk shader cache has been raised from 64MB to 128MB in max size, X.Org Server 1.19 (ABI 23) support, and other bug fixes.

Again, hopes to get the 1.19 xorg-server, this new nvidia driver that makes a huge performance difference.

Revision history for this message
Francois Thirioux (fthx) wrote :

I run 375 now, from PPA :-)
Seems ok (Intel -- with startup bugs -> apport -- and Nvidia).

Revision history for this message
Anas (anas-blinux) wrote : Re: [Bug 1642241] Re: nvidia-*: nvidia-* kernel module failed to build with kernel 4.9 [error: passing argument 5 of ‘get_user_pages’ from incompatible pointer type]
Download full text (4.8 KiB)

Can't run 375 for legacy GPU :S

On Sat, Nov 19, 2016 at 5:48 PM, Francois Thirioux <
<email address hidden>> wrote:

> I run 375 now, from PPA :-)
> Seems ok (Intel -- with startup bugs -> apport -- and Nvidia).
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1642241
>
> Title:
> nvidia-*: nvidia-* kernel module failed to build with kernel 4.9
> [error: passing argument 5 of ‘get_user_pages’ from incompatible
> pointer type]
>
> Status in nvidia-graphics-drivers-340 package in Ubuntu:
> Confirmed
> Status in nvidia-graphics-drivers-367 package in Ubuntu:
> Confirmed
>
> Bug description:
> nvidia 340.98 is failed with kernel 4.9.x
>
> ProblemType: Package
> DistroRelease: Ubuntu 17.04
> Package: nvidia-340 340.98-0ubuntu1
> ProcVersionSignature: Ubuntu 4.8.0-27.29-generic 4.8.1
> Uname: Linux 4.8.0-27-generic x86_64
> NonfreeKernelModules: nvidia_uvm nvidia
> .proc.driver.nvidia.gpus.0000.01.00.0: Error: [Errno 21] est un
> dossier: '/proc/driver/nvidia/gpus/0000:01:00.0'
> .proc.driver.nvidia.registry: Binary: ""
> .proc.driver.nvidia.version:
> NVRM version: NVIDIA UNIX x86_64 Kernel Module 340.98 Mon Sep 19
> 17:31:03 PDT 2016
> GCC version: gcc version 6.2.0 20161109 (Ubuntu 6.2.0-13ubuntu1)
> .tmp.unity_support_test.0:
>
> ApportVersion: 2.20.3-0ubuntu8
> Architecture: amd64
> CompizPlugins: No value set for `/apps/compiz-1/general/
> screen0/options/active_plugins'
> CompositorRunning: compiz
> CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
> CompositorUnredirectFSW: true
> DKMSKernelVersion: 4.9.0-1-generic
> Date: Wed Nov 16 12:06:39 2016
> DistUpgraded: Fresh install
> DistroCodename: zesty
> DistroVariant: ubuntu
> DkmsStatus:
> bbswitch, 0.8, 4.8.0-26-generic, x86_64: installed
> bbswitch, 0.8, 4.8.0-27-generic, x86_64: installed
> bbswitch, 0.8, 4.9.0-1-generic, x86_64: installed
> nvidia-340, 340.98, 4.8.0-26-generic, x86_64: installed
> nvidia-340, 340.98, 4.8.0-27-generic, x86_64: installed
> DuplicateSignature: dkms:nvidia-340:340.98-
> 0ubuntu1:/var/lib/dkms/nvidia-340/340.98/build/os-mlock.c:49:55: error:
> passing argument 5 of ‘get_user_pages’ from incompatible pointer type
> [-Werror=incompatible-pointer-types]
> GraphicsCard:
> NVIDIA Corporation GT218 [GeForce G210] [10de:0a60] (rev a2) (prog-if
> 00 [VGA controller])
> Subsystem: Pegatron GT218 [GeForce G210] [1b0a:9045]
> InstallationDate: Installed on 2016-11-13 (3 days ago)
> InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Alpha amd64 (20161112)
> MachineType: Hewlett-Packard HP Elite 7100 Microtower PC
> PackageVersion: 340.98-0ubuntu1
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.8.0-27-generic
> root=UUID=c7607fd8-02eb-40f0-b3fb-25acb82c79e2 ro quiet splash
> RelatedPackageVersions:
> dpkg 1.18.10ubuntu1
> apt 1.3.1
> SourcePackage: nvidia-graphics-drivers-340
> Title: nvidia-340 340.98-0ubuntu1: nvidia-340 kernel module failed to
> build
> UpgradeStatus: No upgrade log present (probably fresh install)
> dmi.bios.date: 03/23/2011
> dmi.bios.ve...

Read more...

Changed in nvidia-graphics-drivers-304 (Ubuntu):
status: New → Confirmed
importance: Undecided → High
tags: removed: need-duplicate-check
Revision history for this message
Robert Hooker (sarvatt) wrote :

Fixed by

nvidia-graphics-drivers-304 (304.132-0ubuntu3) zesty; urgency=medium

nvidia-graphics-drivers-340 (340.98-0ubuntu2) zesty; urgency=medium

  * debian/templates/dkms_nvidia.conf.in,
    debian/dkms_nvidia/patches/buildfix_kernel_4.9.patch:
    - Add support for Linux 4.9. Credit goes to Michael Marley for
      finding out about the new required DRIVER_LEGACY flag.

Changed in nvidia-graphics-drivers-304 (Ubuntu):
status: Confirmed → Fix Released
Changed in nvidia-graphics-drivers-340 (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Balint Reczey (rbalint) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 1573508, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Please continue to report any other bugs you may find.

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.