commit 008a188d8648d20aaed3c464ca72972142f97c6a
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Tue Nov 19 13:53:47 2024 +0000
Patch for 6.12 kernel
kernel-612_runtime_fix.patch | 14 ++++++++++++++
nvidia-kmod.spec | 7 ++++++-
2 files changed, 20 insertions(+), 1 deletion(-)
---
diff --git a/kernel-612_runtime_fix.patch b/kernel-612_runtime_fix.patch
new file mode 100644
index 0000000..5db0b94
--- /dev/null
+++ b/kernel-612_runtime_fix.patch
@@ -0,0 +1,14 @@
+diff -uNrp a/kernel/nvidia-drm/nvidia-drm-drv.c b/kernel/nvidia-drm/nvidia-drm-drv.c
+--- a/kernel/nvidia-drm/nvidia-drm-drv.c 2024-10-10 12:58:12.000000000 +0100
++++ b/kernel/nvidia-drm/nvidia-drm-drv.c 2024-11-19 13:34:31.798764897 +0000
+@@ -1711,6 +1711,10 @@ static const struct file_operations nv_d
+ .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[] = {
diff --git a/nvidia-kmod.spec b/nvidia-kmod.spec
index da45018..8a51d1e 100644
--- a/nvidia-kmod.spec
+++ b/nvidia-kmod.spec
@@ -12,13 +12,14 @@ Name: nvidia-kmod
Epoch: 3
Version: 565.57.01
# Taken over by kmodtool
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: NVIDIA display driver kernel module
License: Redistributable, no modification permitted
URL:
https://www.nvidia.com/
Source11: nvidia-kmodtool-excludekernel-filterfile
Patch0: make_modeset_default.patch
+Patch1: kernel-612_runtime_fix.patch
ExclusiveArch: x86_64 aarch64
@@ -52,6 +53,7 @@ echo "Using original nvidia defaults"
echo "Set nvidia to fbdev=1 modeset=1"
%patch -P0 -p1
%endif
+%patch -P1 -p1
for kernel_version in %{?kernel_versions} ; do
cp -a kernel _kmod_build_${kernel_version%%___*}
@@ -86,6 +88,9 @@ done
%changelog
+* Tue Nov 19 2024 Leigh Scott <leigh123linux(a)gmail.com> - 3:565.57.01-2
+- Patch for 6.12 kernel
+
* Tue Oct 22 2024 Leigh Scott <leigh123linux(a)gmail.com> - 3:565.57.01-1
- Update to 565.57.01 beta