Compare commits
No commits in common. "main" and "a10s" have entirely different histories.
@ -0,0 +1,45 @@
|
|||||||
|
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
|
||||||
|
|
||||||
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: %{kmodname}-kmod
|
Name: %{kmodname}-kmod
|
||||||
Version: 610.57.04
|
Version: 580.65.06
|
||||||
Release: 2%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Kernel module (kmod) for NVIDIA GPU hardware
|
Summary: Kernel module (kmod) for NVIDIA GPU hardware
|
||||||
|
|
||||||
@ -29,6 +29,8 @@ 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
|
||||||
|
|
||||||
@ -36,6 +38,9 @@ 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
|
||||||
@ -65,28 +70,6 @@ and newer models of GPU hardware.
|
|||||||
%files
|
%files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%dir %{_sharedstatedir}/%{name}
|
|
||||||
%ghost %{_sharedstatedir}/%{name}/initramfs-rebuilt
|
|
||||||
|
|
||||||
|
|
||||||
%posttrans
|
|
||||||
# The open modules need the GSP firmware (shipped by nvidia-kmod-common) inside
|
|
||||||
# the initramfs, or early load fails with "gsp_*.bin failed with error -2".
|
|
||||||
# Some packages regenerate the initramfs before that firmware is on disk; this
|
|
||||||
# scriptlet runs after every payload has been unpacked, so a rebuild here is
|
|
||||||
# guaranteed to capture it. Equivalent to the manual "dracut -f".
|
|
||||||
#
|
|
||||||
# Only required on the initial install. The stamp below is a ghost file (absent
|
|
||||||
# from the payload), so it exists only once we create it here; it persists
|
|
||||||
# across upgrades (the new package owns it too) and is removed on erase. Net
|
|
||||||
# effect: the rebuild runs on a first install and again after a full
|
|
||||||
# removal+reinstall, but not on plain upgrades or reinstalls.
|
|
||||||
if [ ! -e %{_sharedstatedir}/%{name}/initramfs-rebuilt ]; then
|
|
||||||
if [ -x %{_bindir}/dracut ]; then
|
|
||||||
%{_bindir}/dracut --force --regenerate-all --quiet || :
|
|
||||||
touch %{_sharedstatedir}/%{name}/initramfs-rebuilt
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -95,7 +78,7 @@ fi
|
|||||||
%{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}
|
%autosetup -n open-gpu-kernel-modules-%{version} -S git_am
|
||||||
|
|
||||||
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
|
||||||
@ -113,8 +96,6 @@ 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
|
||||||
@ -129,93 +110,8 @@ for flavor in %{flavors_to_build}; do
|
|||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
|
|
||||||
# Own the state directory and pre-create the stamp so the ghost entry is
|
|
||||||
# registered correctly. The stamp is a ghost file, so its contents are not
|
|
||||||
# shipped; it is (re)created by the posttrans scriptlet on the target system.
|
|
||||||
install -d %{buildroot}%{_sharedstatedir}/%{name}
|
|
||||||
touch %{buildroot}%{_sharedstatedir}/%{name}/initramfs-rebuilt
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Sep 01 2026 Eduard Abdullin <eabdullin@almalinux.org> - 610.57.04-2
|
|
||||||
- Rebuild for new kernel
|
|
||||||
|
|
||||||
* Tue Aug 04 2026 almalinux-bot-nvidia <almalinux-bot-nvidia@almalinux.org> - 610.57.04-1
|
|
||||||
- Update to 610.57.04
|
|
||||||
|
|
||||||
* Fri Jul 24 2026 Eduard Abdullin <eabdullin@almalinux.org> - 610.43.02-7
|
|
||||||
- Rebuild for new kernel
|
|
||||||
|
|
||||||
* Sun Jul 19 2026 Jonathan Wright <jonathan@almalinux.org> - 610.43.02-6
|
|
||||||
- Rebuild the initramfs on initial install so the GSP firmware is included,
|
|
||||||
avoiding a manual dracut -f after install
|
|
||||||
|
|
||||||
* Mon Jul 13 2026 Eduard Abdullin <eabdullin@almalinux.org> - 610.43.02-5
|
|
||||||
- Rebuild for new kernel
|
|
||||||
|
|
||||||
* Mon Jun 22 2026 Eduard Abdullin <eabdullin@almalinux.org> - 610.43.02-4
|
|
||||||
- Rebuild for new kernel
|
|
||||||
|
|
||||||
* Mon Jun 15 2026 Eduard Abdullin <eabdullin@almalinux.org> - 610.43.02-3
|
|
||||||
- Rebuild for new kernel
|
|
||||||
|
|
||||||
* Tue Jun 09 2026 Andrew Lukoshko <alukoshko@almalinux.org> - 610.43.02-2
|
|
||||||
- Rebuild for new kernel
|
|
||||||
|
|
||||||
* 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
|
* Mon Aug 04 2025 Neal Gompa <ngompa@almalinux.org> - 580.65.06-2
|
||||||
- Drop metapackage and add more Provides for NVIDIA repository compatibility
|
- Drop metapackage and add more Provides for NVIDIA repository compatibility
|
||||||
|
|
||||||
@ -239,3 +135,4 @@ touch %{buildroot}%{_sharedstatedir}/%{name}/initramfs-rebuilt
|
|||||||
|
|
||||||
* 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-610.57.04.tar.gz) = 08d905b0eff99741cb9fa94109d71d73e477ece2ea888cce206644859ae84b6930ff96cde10c9c6a1dcfaa79d4de7fca2df2a56534b77f3b02c431276365d2c3
|
SHA512 (open-gpu-kernel-modules-580.65.06.tar.gz) = b1cdc014b871b174897d6f5df5994c152cc088f3a71acf1e2dfce5fa173369213406d1ff9e4289df23f7e946eabdcdbaa84d8c4644a3e113fe4f329f991724f8
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user