Skip to content

Instantly share code, notes, and snippets.

@joanbm
Created February 3, 2025 00:16
Show Gist options
  • Save joanbm/d0cb8790ca610fbd2c2e43f30707ce18 to your computer and use it in GitHub Desktop.
Save joanbm/d0cb8790ca610fbd2c2e43f30707ce18 to your computer and use it in GitHub Desktop.
Tentative fix for NVIDIA 470.256.02 driver for Linux 6.14-rc1
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
@joanbm
Copy link
Author

joanbm commented Jul 22, 2025

@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.

@Augusto7743
Copy link

Augusto7743 commented Jul 30, 2025

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.

@egoipse
Copy link

egoipse commented Aug 5, 2025

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.

@Augusto7743
Copy link

Augusto7743 commented Aug 26, 2025

@egoipse
Oh yeahh ... nouveau are blacklisted.
In moment that issue not are happening very much.

@ItzDarkGod
Copy link

hello, I don't know if it would be too much trouble if you could help me how to install this patch for nobara 42, before I used pop os with a 6.12 kernel and I followed the steps left by the author and they worked for me, but I don't know what to do here haha

@joanbm
Copy link
Author

joanbm commented Sep 6, 2025

@ItzDarkGod See https://github.com/joanbm/nvidia-470xx-linux-mainline, to install it should be enough to download the repository and run the ./install script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment