commit bc01856aec21cf1deadcc6e9c2d3b5cf016bb71d
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sat May 11 14:02:05 2024 +0100
Adjust patch to disable nvidia fbdev
make_modeset_default.patch | 26 +++++++++-----------------
nvidia-open-kmod.spec | 5 ++++-
2 files changed, 13 insertions(+), 18 deletions(-)
---
diff --git a/make_modeset_default.patch b/make_modeset_default.patch
index bdf8a6b..08904d8 100644
--- a/make_modeset_default.patch
+++ b/make_modeset_default.patch
@@ -1,6 +1,7 @@
---- a/kernel-open/nvidia-drm/nvidia-drm-linux.c
-+++ b/kernel-open/nvidia-drm/nvidia-drm-linux.c
-@@ -31,13 +31,13 @@
+diff -uNrp a/kernel-open/nvidia-drm/nvidia-drm-linux.c
b/kernel-open/nvidia-drm/nvidia-drm-linux.c
+--- a/kernel-open/nvidia-drm/nvidia-drm-linux.c 2024-04-25 15:24:58.000000000 +0100
++++ b/kernel-open/nvidia-drm/nvidia-drm-linux.c 2024-05-11 13:57:02.979853843 +0100
+@@ -31,7 +31,7 @@
MODULE_PARM_DESC(
modeset,
@@ -9,24 +10,15 @@
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 @@
+diff -uNrp a/kernel-open/nvidia-drm/nvidia-drm-os-interface.c
b/kernel-open/nvidia-drm/nvidia-drm-os-interface.c
+--- a/kernel-open/nvidia-drm/nvidia-drm-os-interface.c 2024-04-25 15:24:58.000000000
+0100
++++ b/kernel-open/nvidia-drm/nvidia-drm-os-interface.c 2024-05-11 13:58:02.537871953
+0100
+@@ -41,7 +41,7 @@
#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;
+ bool nv_drm_fbdev_module_param = false;
void *nv_drm_calloc(size_t nmemb, size_t size)
- {
-
diff --git a/nvidia-open-kmod.spec b/nvidia-open-kmod.spec
index 95a05c0..6cb68a8 100644
--- a/nvidia-open-kmod.spec
+++ b/nvidia-open-kmod.spec
@@ -12,7 +12,7 @@ Name: nvidia-open-kmod
Epoch: 3
Version: 550.78
# Taken over by kmodtool
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: NVIDIA open display driver kernel module
License: GPLv2 and MIT
URL:
https://github.com/NVIDIA/open-gpu-kernel-modules
@@ -80,6 +80,9 @@ done
%changelog
+* Sat May 11 2024 Leigh Scott <leigh123linux(a)gmail.com> - 3:550.78-3
+- Adjust patch to disable nvidia fbdev
+
* Sat May 11 2024 Leigh Scott <leigh123linux(a)gmail.com> - 3:550.78-2
- Default enable nvidia modeset and fbdev