Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel 6.12.16 and x11-drivers/nvidia-drivers-390.157
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Da Fox
Guru
Guru


Joined: 06 Jul 2005
Posts: 343

PostPosted: Sat Mar 08, 2025 9:17 pm    Post subject: Kernel 6.12.16 and x11-drivers/nvidia-drivers-390.157 Reply with quote

Hi, just got this working after updating to the new 6.12.16 kernel and wanted to share.

You need the following patches from here:

  • buildfix_kernel_6.0.patch
  • buildfix_kernel_6.2.patch
  • buildfix_kernel_6.3.patch
  • buildfix_kernel_6.3_uvm.patch
  • buildfix_kernel_6.4.patch
  • buildfix_kernel_6.5-garbage-collect-all-references-to-get_user.patch
  • buildfix_kernel_6.5-handle-get_user_pages-vmas-argument-remova.patch
  • buildfix_kernel_6.5-handle-get_user_pages-vmas-argument-remova_uvm.patch
  • buildfix_kernel_6.6.patch
  • kernel-6.8.patch
  • kernel-6.10.patch
  • kernel-6.12.patch
  • gcc14.patch
  • gcc14-2.patch


And this patch from here.

For this last patch you need to make a small change so that it will apply cleanly: in the diff lines with +++/---, change kernel-open to kernel. The final patch should look like this:

kernel-6.12-fop_flags-8ac26d3c66ea88b0f80504bdd1e907658b41609d.patch
Code:
diff --git a/kernel-open/nvidia-drm/nvidia-drm-drv.c b/kernel-open/nvidia-drm/nvidia-drm-drv.c
index 8cb942193..16f0d13e1 100644
--- a/kernel/nvidia-drm/nvidia-drm-drv.c
+++ b/kernel/nvidia-drm/nvidia-drm-drv.c
@@ -1711,6 +1711,10 @@ static const struct file_operations nv_drm_fops = {
     .read           = drm_read,
 
     .llseek         = noop_llseek,

+#if defined(FOP_UNSIGNED_OFFSET)
+    .fop_flags   = FOP_UNSIGNED_OFFSET,
+#endif
 };
 
 static const struct drm_ioctl_desc nv_drm_ioctls[] = {

_________________
"Man fears the darkness, and so he scrapes away at the edges of it with fire."
- Rei Ayanami

JGBE, a Java based GameBoy Emulator
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum