commit 118af0a2d09d9549e5131ba6045d8b58efe606b3
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sat May 11 13:12:20 2024 +0100
Default enable nvidia modeset and fbdev
make_modeset_default.patch | 32 ++++++++++++++++++++++++++++++++
nvidia-open-kmod.spec | 8 +++++++-
2 files changed, 39 insertions(+), 1 deletion(-)
---
diff --git a/make_modeset_default.patch b/make_modeset_default.patch
new file mode 100644
index 0000000..bdf8a6b
--- /dev/null
+++ b/make_modeset_default.patch
@@ -0,0 +1,32 @@
+--- a/kernel-open/nvidia-drm/nvidia-drm-linux.c
++++ b/kernel-open/nvidia-drm/nvidia-drm-linux.c
+@@ -31,13 +31,13 @@
+
+ MODULE_PARM_DESC(
+ modeset,
+- "Enable atomic kernel modesetting (1 = enable, 0 = disable (default))");
++ "Enable atomic kernel modesetting (1 = enable (default), 0 = disable)");
+ module_param_named(modeset, nv_drm_modeset_module_param, bool, 0400);
+
+ #if defined(NV_DRM_FBDEV_GENERIC_AVAILABLE)
+ MODULE_PARM_DESC(
+ fbdev,
+- "Create a framebuffer device (1 = enable, 0 = disable (default))
(EXPERIMENTAL)");
++ "Create a framebuffer device (1 = enable (default), 0 = disable)
(EXPERIMENTAL)");
+ module_param_named(fbdev, nv_drm_fbdev_module_param, bool, 0400);
+ #endif
+
+--- a/kernel-open/nvidia-drm/nvidia-drm-os-interface.c
++++ b/kernel-open/nvidia-drm/nvidia-drm-os-interface.c
+@@ -41,8 +41,8 @@
+ #include <drm/drmP.h>
+ #endif
+
+-bool nv_drm_modeset_module_param = false;
+-bool nv_drm_fbdev_module_param = false;
++bool nv_drm_modeset_module_param = true;
++bool nv_drm_fbdev_module_param = true;
+
+ void *nv_drm_calloc(size_t nmemb, size_t size)
+ {
+
diff --git a/nvidia-open-kmod.spec b/nvidia-open-kmod.spec
index f4f0e6b..95a05c0 100644
--- a/nvidia-open-kmod.spec
+++ b/nvidia-open-kmod.spec
@@ -12,13 +12,14 @@ Name: nvidia-open-kmod
Epoch: 3
Version: 550.78
# Taken over by kmodtool
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: NVIDIA open display driver kernel module
License: GPLv2 and MIT
URL:
https://github.com/NVIDIA/open-gpu-kernel-modules
Source0: %{url}/archive/%{version}/open-gpu-kernel-modules-%{version}.tar.gz
Source11: nvidia-open-kmodtool-excludekernel-filterfile
+Patch0: make_modeset_default.patch
ExclusiveArch: x86_64 aarch64
@@ -39,7 +40,9 @@ The nvidia open %{version} display driver kernel module for kernel
%{kversion}.
# print kmodtool output for debugging purposes:
kmodtool --target %{_target_cpu} --repo rpmfusion --kmodname %{name} --filterfile
%{SOURCE11} %{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels
"%{?kernels}"} 2>/dev/null
%setup -q -c
+ls
# patch loop
+%patch 0 -p1 -d open-gpu-kernel-modules-%{version}
%if 0%{?_without_nvidia_kmod_patches:1}
# placeholder
%endif
@@ -77,6 +80,9 @@ done
%changelog
+* Sat May 11 2024 Leigh Scott <leigh123linux(a)gmail.com> - 3:550.78-2
+- Default enable nvidia modeset and fbdev
+
* Fri Apr 26 2024 Leigh Scott <leigh123linux(a)gmail.com> - 3:550.78-1
- Update to 550.78 release