Da Fox Guru


Joined: 06 Jul 2005 Posts: 343
|
Posted: Sat Mar 08, 2025 9:17 pm Post subject: Kernel 6.12.16 and x11-drivers/nvidia-drivers-390.157 |
|
|
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 |
|