Sven-Hendrik Haase pushed to branch main at Arch Linux / Packaging / Packages / 
nvidia-open


Commits:
b1a67aa2 by Peter Jung at 2024-10-02T19:03:00+02:00
nvidia-utils: Add patch for enabling fbdev and modeset as default

Signed-off-by: Peter Jung <ptr1...@archlinux.org>

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- + make-modeset-fbdev-default.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -10,9 +10,11 @@ pkgbase = nvidia-open
        depends = libglvnd
        source = 
nvidia-open-560.35.03.tar.gz::https://github.com/NVIDIA/open-gpu-kernel-modules/archive/refs/tags/560.35.03.tar.gz
        source = nvidia-open-gcc-ibt-sls.patch
+       source = make-modeset-fbdev-default.patch
        source = 6.11-fbdev.patch
        sha512sums = 
a0cbe05fc8acbb4769fa5320d6bfe2033fd31775036e984278cdf7e67ebd801bd8991d4d1626884a4ff729d3900c969f385caea7ae049e3d918a1ea60e45890a
        sha512sums = 
263c4c5e75ef8cb8ca2641c022dfaf8bd9222fadf68ed15120b0ae7dd9cc901a04ce2e55625d513a0995759c9d82dfbdc4c33d4751159124915d7404b1400e34
+       sha512sums = 
f19a7d52c6e7f5bd6818658c2b11adaaf4ad05016ec0acc73a42417748ed4bf81b8394c077a6f5aba9dfcf6ab01a578692ed1e9d3c2ab583fdaa56166bba05f2
        sha512sums = 
3b6357627ad4672d864b985088908d43f7718dc428e8901c9d27101fd2e9bc109c84e2b414688bbcaa9a05c1e7e55434fff06bf1df5ed33175f1e8bac95dc557
 
 pkgname = nvidia-open


=====================================
PKGBUILD
=====================================
@@ -11,9 +11,11 @@ makedepends=('linux-headers')
 license=('MIT AND GPL-2.0-only')
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/NVIDIA/open-gpu-kernel-modules/archive/refs/tags/${pkgver}.tar.gz";
         nvidia-open-gcc-ibt-sls.patch
+        make-modeset-fbdev-default.patch
         6.11-fbdev.patch)
 
sha512sums=('a0cbe05fc8acbb4769fa5320d6bfe2033fd31775036e984278cdf7e67ebd801bd8991d4d1626884a4ff729d3900c969f385caea7ae049e3d918a1ea60e45890a'
             
'263c4c5e75ef8cb8ca2641c022dfaf8bd9222fadf68ed15120b0ae7dd9cc901a04ce2e55625d513a0995759c9d82dfbdc4c33d4751159124915d7404b1400e34'
+            
'f19a7d52c6e7f5bd6818658c2b11adaaf4ad05016ec0acc73a42417748ed4bf81b8394c077a6f5aba9dfcf6ab01a578692ed1e9d3c2ab583fdaa56166bba05f2'
             
'3b6357627ad4672d864b985088908d43f7718dc428e8901c9d27101fd2e9bc109c84e2b414688bbcaa9a05c1e7e55434fff06bf1df5ed33175f1e8bac95dc557')
 
 prepare() {
@@ -22,6 +24,12 @@ prepare() {
   # Fix for https://bugs.archlinux.org/task/74886
   patch -Np1 --no-backup-if-mismatch -i "$srcdir"/nvidia-open-gcc-ibt-sls.patch
 
+  # Enable modeset and fbdev as default
+  # This avoids various issue, when Simplefb is used
+  # 
https://gitlab.archlinux.org/archlinux/packaging/packages/nvidia-utils/-/issues/14
+  # 
https://github.com/rpmfusion/nvidia-kmod/blob/master/make_modeset_default.patch
+  patch -Np1 < "$srcdir"/make-modeset-fbdev-default.patch
+
   # Fix for 
https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/issues/80
   patch -Np1 --no-backup-if-mismatch -i "$srcdir"/6.11-fbdev.patch
 


=====================================
make-modeset-fbdev-default.patch
=====================================
@@ -0,0 +1,31 @@
+--- 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)
+ {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/nvidia-open/-/commit/b1a67aa2cc359002983ec35044d0dfa1403a634e

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/nvidia-open/-/commit/b1a67aa2cc359002983ec35044d0dfa1403a634e
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to