I am trying to install Nvidia driver 352.79 on kernel 4.6 (Ubuntu 14.04), as 352.79 seems to be the only version provided with the official CUDA SDK. I had nvidia-364 installed before, which was working fine but the CUDA installer is replacing that with 352. I have issues building the kernel module for 352.79, with the following errors:
Building initial module for 4.6.0-040600-generic ERROR (dkms apport): kernel package linux-headers-4.6.0-040600-generic is not supported Error! Bad return status for module build on kernel: 4.6.0-040600-generic (x86_64) Consult /var/lib/dkms/nvidia-352/352.79/build/make.log for more information. IN THE LOG: /var/lib/dkms/nvidia-352/352.79/build/uvm/../os-mlock.c:119:11: error: too many arguments to function ‘get_user_pages’ ret = get_user_pages(current, mm, (unsigned long)address, ^ In file included from /var/lib/dkms/nvidia-352/352.79/build/uvm/../nv-linux.h:65:0, from /var/lib/dkms/nvidia-352/352.79/build/uvm/../os-mlock.c:15: include/linux/mm.h:1266:6: note: declared here long get_user_pages(unsigned long start, unsigned long nr_pages, ^ /var/lib/dkms/nvidia-352/352.79/build/uvm/../os-mlock.c:132:13: error: implicit declaration of function ‘page_cache_release’ [-Werror=implicit-function-declaration] page_cache_release(user_pages[i]);
352.79 does work with kernel 4.3, but my Skylake laptop has issues with 4.3 so I need to use something >4.4. Please advise.