forked from rpms/nvidia-open-kmod
Compare commits
23 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 15ad597bea | |||
| 26b93458af | |||
| 0c28952b66 | |||
| a3137250a8 | |||
| cbdc523c31 | |||
| 0b513e14a1 | |||
| d445731f59 | |||
| 16abbbf764 | |||
|
|
8e196010e6 | ||
| 92a9e633d3 | |||
|
|
e7703c8af8 | ||
|
|
4492e96e97 | ||
| cc7ad40e7a | |||
|
|
c7bb4904ba | ||
|
|
0cfa018431 | ||
|
|
99dbcdf1b0 | ||
|
|
40021c6033 | ||
|
|
0baac4b7b8 | ||
| 5cd41fa7d3 | |||
|
|
232f61945e | ||
| 7a6791a141 | |||
| 1dc22f7401 | |||
| b27e2a9dfa |
@ -1,45 +0,0 @@
|
|||||||
From a2e9b73f8d3f593eed007ebfe51dabc9a0e410c2 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Neal Gompa <ngompa@almalinux.org>
|
|
||||||
Date: Mon, 7 Apr 2025 19:36:18 -0400
|
|
||||||
Subject: [PATCH] kernel-open/nvidia-drm: Enable kernel mode-setting by default
|
|
||||||
|
|
||||||
The general expectation for the Linux graphics stack for more than
|
|
||||||
a decade has been to use kernel mode-setting. It is now a requirement
|
|
||||||
for things to work properly on Wayland-based graphical environments,
|
|
||||||
so flip the default to use kernel mode-setting by default.
|
|
||||||
|
|
||||||
Signed-off-by: Neal Gompa <ngompa@almalinux.org>
|
|
||||||
---
|
|
||||||
kernel-open/nvidia-drm/nvidia-drm-linux.c | 2 +-
|
|
||||||
kernel-open/nvidia-drm/nvidia-drm-os-interface.c | 2 +-
|
|
||||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/kernel-open/nvidia-drm/nvidia-drm-linux.c b/kernel-open/nvidia-drm/nvidia-drm-linux.c
|
|
||||||
index 3cb1815d..209cb469 100644
|
|
||||||
--- a/kernel-open/nvidia-drm/nvidia-drm-linux.c
|
|
||||||
+++ b/kernel-open/nvidia-drm/nvidia-drm-linux.c
|
|
||||||
@@ -31,7 +31,7 @@
|
|
||||||
|
|
||||||
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_AVAILABLE)
|
|
||||||
diff --git a/kernel-open/nvidia-drm/nvidia-drm-os-interface.c b/kernel-open/nvidia-drm/nvidia-drm-os-interface.c
|
|
||||||
index 7617476d..f22afd77 100644
|
|
||||||
--- a/kernel-open/nvidia-drm/nvidia-drm-os-interface.c
|
|
||||||
+++ b/kernel-open/nvidia-drm/nvidia-drm-os-interface.c
|
|
||||||
@@ -41,7 +41,7 @@
|
|
||||||
#include <drm/drmP.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-bool nv_drm_modeset_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)
|
|
||||||
--
|
|
||||||
2.48.1
|
|
||||||
|
|
||||||
@ -1,11 +1,13 @@
|
|||||||
Conflicts: akmod-%{kmodname}
|
Conflicts: akmod-%{kmodname}
|
||||||
Conflicts: dkms-%{kmodname}
|
Conflicts: dkms-%{kmodname}
|
||||||
|
Conflicts: kmod-%{kmodname}-dkms
|
||||||
# Conflict with legacy driver
|
# Conflict with legacy driver
|
||||||
Conflicts: dkms-nvidia
|
Conflicts: dkms-nvidia
|
||||||
Conflicts: kmod-nvidia${dashvariant}
|
Conflicts: kmod-nvidia${dashvariant}
|
||||||
# Declare ourselves as a provider of the nvidia kernel module
|
# Declare ourselves as a provider of the nvidia kernel module
|
||||||
Conflicts: nvidia-kmod
|
Conflicts: nvidia-kmod
|
||||||
Provides: nvidia-kmod = 3:%{version}-%{release}
|
Provides: nvidia-kmod = 3:%{version}-%{release}
|
||||||
|
Provides: kmod-nvidia-open${dashvariant} = 3:%{version}-%{release}
|
||||||
# Require our parts of the stack
|
# Require our parts of the stack
|
||||||
Requires: nvidia-open-kmod = %{version}-%{release}
|
Requires: nvidia-open-kmod = %{version}-%{release}
|
||||||
# Install if negativo17 packaged userspace libraries are being installed
|
# Install if negativo17 packaged userspace libraries are being installed
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: %{kmodname}-kmod
|
Name: %{kmodname}-kmod
|
||||||
Version: 575.64.03
|
Version: 610.43.02
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Kernel module (kmod) for NVIDIA GPU hardware
|
Summary: Kernel module (kmod) for NVIDIA GPU hardware
|
||||||
|
|
||||||
@ -29,8 +29,6 @@ License: GPL-2.0-only and MIT
|
|||||||
URL: https://github.com/NVIDIA/open-gpu-kernel-modules
|
URL: https://github.com/NVIDIA/open-gpu-kernel-modules
|
||||||
Source0: %{url}/archive/%{version}/open-gpu-kernel-modules-%{version}.tar.gz
|
Source0: %{url}/archive/%{version}/open-gpu-kernel-modules-%{version}.tar.gz
|
||||||
|
|
||||||
Patch0: 0001-kernel-open-nvidia-drm-Enable-kernel-mode-setting-by.patch
|
|
||||||
|
|
||||||
# For kmodtool
|
# For kmodtool
|
||||||
Source10: kmod-%{kmodname}.spec.preamble
|
Source10: kmod-%{kmodname}.spec.preamble
|
||||||
|
|
||||||
@ -38,9 +36,6 @@ Source10: kmod-%{kmodname}.spec.preamble
|
|||||||
Source20: kmp-local-override.macros
|
Source20: kmp-local-override.macros
|
||||||
Source21: kmodtool-local-override
|
Source21: kmodtool-local-override
|
||||||
|
|
||||||
# patch dependencies
|
|
||||||
BuildRequires: git-core
|
|
||||||
|
|
||||||
# kernel module package macros were split out sometime after EL7...
|
# kernel module package macros were split out sometime after EL7...
|
||||||
BuildRequires: kernel-rpm-macros
|
BuildRequires: kernel-rpm-macros
|
||||||
# kmod dependencies
|
# kmod dependencies
|
||||||
@ -51,7 +46,7 @@ BuildRequires: gcc
|
|||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
|
|
||||||
# Depend on negativo17 kmod support packaging
|
# Depend on nvidia/negativo17 kmod support packaging
|
||||||
Requires: nvidia-kmod-common = 3:%{version}
|
Requires: nvidia-kmod-common = 3:%{version}
|
||||||
|
|
||||||
# Only supported architectures for the driver
|
# Only supported architectures for the driver
|
||||||
@ -67,6 +62,10 @@ This package contains the kernel modules for providing
|
|||||||
hardware support for the NVIDIA Turing (GTX 16/RTX 20)
|
hardware support for the NVIDIA Turing (GTX 16/RTX 20)
|
||||||
and newer models of GPU hardware.
|
and newer models of GPU hardware.
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license COPYING
|
||||||
|
%doc README.md
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
# let's make sure we don't publish unsigned builds, that would be bad
|
# let's make sure we don't publish unsigned builds, that would be bad
|
||||||
@ -74,13 +73,14 @@ and newer models of GPU hardware.
|
|||||||
%{error:modsign_os macro not set to almalinux-nvidia-signing, exiting}
|
%{error:modsign_os macro not set to almalinux-nvidia-signing, exiting}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%autosetup -n open-gpu-kernel-modules-%{version} -S git_am
|
%autosetup -n open-gpu-kernel-modules-%{version}
|
||||||
|
|
||||||
for flavor in %{flavors_to_build}; do
|
for flavor in %{flavors_to_build}; do
|
||||||
cp -a ../open-gpu-kernel-modules-%{version} ../%{name}-%{version}-kmodbuild-$flavor
|
cp -a ../open-gpu-kernel-modules-%{version} ../%{name}-%{version}-kmodbuild-$flavor
|
||||||
mv ../%{name}-%{version}-kmodbuild-$flavor .
|
mv ../%{name}-%{version}-kmodbuild-$flavor .
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# This module is useless
|
# This module is useless
|
||||||
export NV_EXCLUDE_KERNEL_MODULES=nvidia-peermem
|
export NV_EXCLUDE_KERNEL_MODULES=nvidia-peermem
|
||||||
@ -91,6 +91,8 @@ for flavor in %{flavors_to_build}; do
|
|||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
|
|
||||||
|
find . -name "*.ko" -type f -exec chmod u+x '{}' +
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# Set correct install paths
|
# Set correct install paths
|
||||||
@ -106,12 +108,68 @@ for flavor in %{flavors_to_build}; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
%files
|
|
||||||
%license COPYING
|
|
||||||
%doc README.md
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 27 2026 almalinux-bot-nvidia <almalinux-bot-nvidia@almalinux.org> - 610.43.02-1
|
||||||
|
- Update to 610.43.02
|
||||||
|
|
||||||
|
* Mon May 25 2026 Andrew Lukoshko <alukoshko@almalinux.org> - 595.71.05-2
|
||||||
|
- Rebuild for new kernel
|
||||||
|
|
||||||
|
* Tue Apr 28 2026 almalinux-bot-nvidia <almalinux-bot-nvidia@almalinux.org> - 595.71.05-1
|
||||||
|
- Update to 595.71.05
|
||||||
|
|
||||||
|
* Wed Mar 25 2026 almalinux-bot-nvidia <almalinux-bot-nvidia@almalinux.org> - 595.58.03-1
|
||||||
|
- Update to 595.58.03
|
||||||
|
|
||||||
|
* Fri Mar 06 2026 almalinux-bot-nvidia <almalinux-bot-nvidia@almalinux.org> - 595.45.04-1
|
||||||
|
- Update to 595.45.04
|
||||||
|
|
||||||
|
* Thu Feb 26 2026 Andrew Lukoshko <alukoshko@almalinux.org> - 590.48.01-2
|
||||||
|
- Rebuild for new kernel
|
||||||
|
|
||||||
|
* Thu Dec 18 2025 almalinux-bot-nvidia <almalinux-bot-nvidia@almalinux.org> - 590.48.01-1
|
||||||
|
- Update to 590.48.01
|
||||||
|
|
||||||
|
* Thu Dec 18 2025 Eduard Abdullin <eabdullin@almalinux.org> - 590.44.01-2
|
||||||
|
- Rebuild for new kernel
|
||||||
|
|
||||||
|
* Wed Dec 03 2025 almalinux-bot-nvidia <almalinux-bot-nvidia@almalinux.org> - 590.44.01-1
|
||||||
|
- Update to 590.44.01
|
||||||
|
|
||||||
|
* Fri Nov 14 2025 Eduard Abdullin <eabdullin@almalinux.org> - 580.105.08-3
|
||||||
|
- Mark modules executable
|
||||||
|
|
||||||
|
* Thu Nov 13 2025 Eduard Abdullin <eabdullin@almalinux.org> - 580.105.08-2
|
||||||
|
- Rebuild for the new kernel version
|
||||||
|
|
||||||
|
* Thu Nov 06 2025 almalinux-bot-nvidia <almalinux-bot-nvidia@almalinux.org> - 580.105.08-1
|
||||||
|
- Update to 580.105.08
|
||||||
|
|
||||||
|
* Thu Nov 06 2025 Eduard Abdullin <eabdullin@almalinux.org> - 580.95.05-3
|
||||||
|
- Rebuild for new kernel
|
||||||
|
|
||||||
|
* Thu Oct 22 2025 Eduard Abdullin <eabdullin@almalinux.org> - 580.95.05-2
|
||||||
|
- Rebuild for new kernel
|
||||||
|
|
||||||
|
* Thu Oct 02 2025 Eduard Abdullin <eabdullin@almalinux.org> - 580.95.05-1
|
||||||
|
- Update to 580.95.05
|
||||||
|
|
||||||
|
* Thu Oct 02 2025 Eduard Abdullin <eabdullin@almalinux.org> - 580.82.07-3
|
||||||
|
- Rebuild for new kernel
|
||||||
|
|
||||||
|
* Wed Sep 03 2025 Jonathan Wright <jonathan@almalinux.org> - 580.82.07-1
|
||||||
|
- Update to 580.82.07
|
||||||
|
|
||||||
|
* Sun Aug 24 2025 Andrew Lukoshko <alukoshko@almalinux.org> - 580.65.06-3
|
||||||
|
- Rebuild for new kernel
|
||||||
|
|
||||||
|
* Mon Aug 04 2025 Neal Gompa <ngompa@almalinux.org> - 580.65.06-2
|
||||||
|
- Drop metapackage and add more Provides for NVIDIA repository compatibility
|
||||||
|
|
||||||
|
* Mon Aug 04 2025 Neal Gompa <ngompa@almalinux.org> - 580.65.06-1
|
||||||
|
- Update to 580.65.06
|
||||||
|
- Add nvidia-open metapackage for driver+userspace installation
|
||||||
|
|
||||||
* Fri Jul 04 2025 Jonathan Wright <jonathan@almalinux.org> - 575.64.03-1
|
* Fri Jul 04 2025 Jonathan Wright <jonathan@almalinux.org> - 575.64.03-1
|
||||||
- Add conditional to help prevent shipping unsigned (secure boot) packages
|
- Add conditional to help prevent shipping unsigned (secure boot) packages
|
||||||
- update to 575.64.03
|
- update to 575.64.03
|
||||||
@ -128,4 +186,3 @@ done
|
|||||||
|
|
||||||
* Mon May 26 2025 Neal Gompa <ngompa@almalinux.org> - 570.153.02-1
|
* Mon May 26 2025 Neal Gompa <ngompa@almalinux.org> - 570.153.02-1
|
||||||
- Initial package
|
- Initial package
|
||||||
|
|
||||||
|
|||||||
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (open-gpu-kernel-modules-575.64.03.tar.gz) = 43651b3f2f646c2f3b395c2790025d1f39765e8dfe6ccf2c3d4e8a7a8f75827f50b7ef45d05c890c24f7e032a0aaf02583943b3c62191fcdb34d424abb3610c2
|
SHA512 (open-gpu-kernel-modules-610.43.02.tar.gz) = 7049f394a7084544fbfea415b5d24c285fe529002cd21fc8b5c81a15468ccf07473b619070997fb04d016d114577d23e69b0a73f8a98e60a1819a07735e50830
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user