Bug#852152: kernel 4.9: NVIDIA: Failed to load the NVIDIA kernel module
Luca Boccassi
luca.boccassi at gmail.com
Sun Jan 22 10:45:40 UTC 2017
On Sun, 2017-01-22 at 10:30 +0800, Dan Jacobson wrote:
> Package: nvidia-legacy-304xx-kernel-dkms
> Version: 304.134-1
> Severity: grave
>
> Even though your package Description says
> "Building the kernel module has been tested up to Linux 4.9."
>
> Maybe BUILDING yes, but not RUNNING, no.
> With 4.9 you will get: NVIDIA: Failed to load the NVIDIA kernel module
Hi,
None of the maintainers have hardware supported by the 304 series, so
the only thing we can do is test the module build and rely on users
reports.
Could you please try the attached patch? I think the same problem
happened on 340.
Save it a file, eg /tmp/patch and then, as root:
cd /usr/src/nvidia-legacy-304xx-304.134/
patch -p1 < /tmp/patch
dkms remove nvidia-legacy-304xx/304.134 --all
dkms install nvidia-legacy-304xx/304.134 -k 4.9.0-1-amd64
And reboot. Thanks!
--- a/nv-drm.c
+++ b/nv-drm.c
@@ -71,7 +71,11 @@
};
static struct drm_driver nv_drm_driver = {
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 0)
.driver_features = 0,
+#else
+ .driver_features = DRIVER_LEGACY,
+#endif
.load = nv_drm_load,
.unload = nv_drm_unload,
.fops = &nv_drm_fops,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20170122/233bb60d/attachment.sig>
More information about the pkg-nvidia-devel
mailing list