-
-
Save joanbm/d0cb8790ca610fbd2c2e43f30707ce18 to your computer and use it in GitHub Desktop.
From bee3ff1153f7b42491d2a0552d6f9a66a307ec1a Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <[email protected]> | |
Date: Sun, 15 Dec 2024 17:56:03 +0000 | |
Subject: [PATCH] Tentative fix for NVIDIA 470.256.02 driver for Linux 6.14-rc1 | |
--- | |
nvidia-drm/nvidia-drm-drv.c | 3 +++ | |
1 file changed, 3 insertions(+) | |
diff --git a/nvidia-drm/nvidia-drm-drv.c b/nvidia-drm/nvidia-drm-drv.c | |
index 0b1181d..b50b17a 100644 | |
--- a/nvidia-drm/nvidia-drm-drv.c | |
+++ b/nvidia-drm/nvidia-drm-drv.c | |
@@ -882,7 +882,10 @@ static struct drm_driver nv_drm_driver = { | |
.name = "nvidia-drm", | |
.desc = "NVIDIA DRM driver", | |
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 14, 0) | |
+ // Rel. commit. "drm: remove driver date from struct drm_driver and all drivers" (Jani Nikula, 4 Dec 2024) | |
.date = "20160202", | |
+#endif | |
#if defined(NV_DRM_DRIVER_HAS_DEVICE_LIST) | |
.device_list = LIST_HEAD_INIT(nv_drm_driver.device_list), | |
-- | |
2.48.1 | |
For that patch work need first add the previous patchs for kernel 6.11 , 6.12 and 6.13 ?
@Augusto7743 Yes, see this comment for instructions on how to apply the multiple patches: https://gist.github.com/joanbm/a6d3f7f873a60dec0aa4a734c0f1d64e?permalink_comment_id=5254102#gistcomment-5254102
There are also some scripts like the one on the comment above by @satmandu or this one: https://gist.github.com/joanbm/d1f89391a4b20f4b56ba931ef6ca62da?permalink_comment_id=5461139#gistcomment-5461139
Thanks very much.
Have an nice week.
Just as an FYI, there's a patch that just went into mutter yesterday that handles loading Gnome 48’s GDM in Wayland with EGL streams, which is your only option for Wayland using the 470 driver...
But eglinfo doesn't show any Wayland support through this driver once you actually get into Wayland. See: https://gitlab.gnome.org/GNOME/gtk/-/issues/4950#note_2375106
If anyone has any ideas on how to get that to work, it would be much appreciated, as otherwise acceleration using the Nvidia driver in Wayland is broken.
When Nvidia had released the driver 470 was starting to add wayland support having problems.
does it work on my kernel?
my kernel from neofetch Kernel: 6.14.0-arch1-1
@Omar2812-spec Yes, it should. Since you are using Arch I recommend you use the nvidia-470xx-dkms AUR package, you can apply this patch on top of the PKGBUILD. Also in a few days this patch will likely be incorporated to the package.
How extensive is the patch? Will it work on Ubuntu kernel 6.14? 6.14.11?
Even never, starting with 6.15?
It would be nice if someone make an nvidia driver binary with all the patches applied for download.
@Mumuskeh Most of the time there are no breaking changes between e.g. 6.14.0 and 6.14.11 so the patch works for all of them.
There is a separate patch for 6.15.x.
Here Ubuntu 24.04.1 kernel 6.14.
That patch works.
I see then installing kernel 6.14 and using driver 470 an extreme slowdown playing video and moving mouse pointer in few softwares. The GPU usage goes to 100 % in simple tasks.
I have used in kernel the setting nvidia-drm.modeset=1
Have an nice week and thanks very much for doing that good deed.
Thank you very much for this...
The patch works on Ubuntu 24.04.2 and kernel 6.14.0-27-generic.
My two nvidia cards (Quadro M4000 & Tesla K80) are recognized by the driver. However, it only identifies just one of the two Tesla k80's chipsets. It's not perfect but better than nothing.
BTW @Augusto7743, to avoid this:
I see then installing kernel 6.14 and using driver 470 an extreme slowdown playing video and moving mouse pointer in few softwares. The GPU usage goes to 100 % in simple tasks
You need to blacklist nouveau drivers.
Thanks so much for this!
I used this process (and your patches) to get the Nvidia 470.256.02 driver working on my MacBookPro11,3 with kernel
6.14.0-rc4
:https://gist.github.com/satmandu/4e17a3e8a67f04275049679671a32b9d