nvidia 530.41.03-4 (x86_64;znver1) 2023-17501
9999
Status | published | ||||||||||||||||||||||||||||||||
Submitter | angrypenguinpoland [@T] gmail.com | ||||||||||||||||||||||||||||||||
Platform | rolling | ||||||||||||||||||||||||||||||||
Repository | non-free | ||||||||||||||||||||||||||||||||
URL | https://abf.openmandriva.org/build_lists/343323 | ||||||||||||||||||||||||||||||||
Packages |
|
||||||||||||||||||||||||||||||||
Build Date | 2023-06-02 20:58:55 +0000 UTC | ||||||||||||||||||||||||||||||||
Last Updated | 2023-06-22 20:12:21.514940562 +0000 UTC |
$ git diff --patch-with-stat --summary 72bce80a03a870592597dc4d2447663c80a816b9..46ac7fc327a1ac589c28a419e9a0976f16ce71e1 .abf.yml | 4 ++-- nvidia-fix-linux-6.4.patch | 47 ++++++++++++++++++++++++++++++++++++++++++++++ nvidia.spec | 12 +++++++----- 3 files changed, 56 insertions(+), 7 deletions(-) create mode 100644 nvidia-fix-linux-6.4.patch diff --git a/.abf.yml b/.abf.yml index b9ea241..4f718dd 100644 --- a/.abf.yml +++ b/.abf.yml @@ -1,3 +1,3 @@ sources: - NVIDIA-Linux-aarch64-525.78.01.run: e17473f8189e8da74cd959cda5b588f1bc81300b - NVIDIA-Linux-x86_64-525.78.01.run: 1144bdc9d368866c7c84fc56c5f0d39cf94fb0d0 + NVIDIA-Linux-aarch64-530.41.03.run: 62f77e1a2a2365aa3472120688f4166aeaea06a0 + NVIDIA-Linux-x86_64-530.41.03.run: 2b0308b7b6ab94b9a68c5919a66a7e4e15a5adef diff --git a/nvidia-fix-linux-6.4.patch b/nvidia-fix-linux-6.4.patch new file mode 100644 index 0000000..db3163d --- /dev/null +++ b/nvidia-fix-linux-6.4.patch @@ -0,0 +1,47 @@ +diff -uraN NVIDIA-Linux-x86_64-530.41.03/kernel/nvidia-drm/nvidia-drm-drv.c omv-NVIDIA-Linux-x86_64-530.41.03/kernel/nvidia-drm/nvidia-drm-drv.c +--- NVIDIA-Linux-x86_64-530.41.03/kernel/nvidia-drm/nvidia-drm-drv.c 2023-03-16 20:22:14.000000000 +0100 ++++ omv-NVIDIA-Linux-x86_64-530.41.03/kernel/nvidia-drm/nvidia-drm-drv.c 2023-05-30 18:54:00.945008547 +0200 +@@ -20,6 +20,7 @@ + * DEALINGS IN THE SOFTWARE. + */ + ++#include <linux/version.h> + #include "nvidia-drm-conftest.h" /* NV_DRM_AVAILABLE and NV_DRM_DRM_GEM_H_PRESENT */ + + #include "nvidia-drm-priv.h" +@@ -1436,7 +1437,11 @@ + + nv_drm_driver.dumb_create = nv_drm_dumb_create; + nv_drm_driver.dumb_map_offset = nv_drm_dumb_map_offset; ++// Rel. commit "drm: remove dumb_destroy callback" (Christian König, 26 Jan 2023) ++// NB: No resources are leaked, the kernel releases the same resources by default ++#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0) + nv_drm_driver.dumb_destroy = nv_drm_dumb_destroy; ++#endif + #endif /* NV_DRM_ATOMIC_MODESET_AVAILABLE */ + } + +diff -uraN NVIDIA-Linux-x86_64-530.41.03/kernel-open/nvidia-drm/nvidia-drm-drv.c omv-NVIDIA-Linux-x86_64-530.41.03/kernel-open/nvidia-drm/nvidia-drm-drv.c +--- NVIDIA-Linux-x86_64-530.41.03/kernel-open/nvidia-drm/nvidia-drm-drv.c 2023-03-16 20:22:15.000000000 +0100 ++++ omv-NVIDIA-Linux-x86_64-530.41.03/kernel-open/nvidia-drm/nvidia-drm-drv.c 2023-06-02 20:38:41.467596998 +0200 +@@ -20,6 +20,7 @@ + * DEALINGS IN THE SOFTWARE. + */ + ++#include <linux/version.h> + #include "nvidia-drm-conftest.h" /* NV_DRM_AVAILABLE and NV_DRM_DRM_GEM_H_PRESENT */ + + #include "nvidia-drm-priv.h" +@@ -1436,7 +1437,11 @@ + + nv_drm_driver.dumb_create = nv_drm_dumb_create; + nv_drm_driver.dumb_map_offset = nv_drm_dumb_map_offset; ++// Rel. commit "drm: remove dumb_destroy callback" (Christian König, 26 Jan 2023) ++// NB: No resources are leaked, the kernel releases the same resources by default ++#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0) + nv_drm_driver.dumb_destroy = nv_drm_dumb_destroy; ++#endif + #endif /* NV_DRM_ATOMIC_MODESET_AVAILABLE */ + } + + diff --git a/nvidia.spec b/nvidia.spec index c29a2d5..eea8ffb 100644 --- a/nvidia.spec +++ b/nvidia.spec @@ -10,15 +10,16 @@ %global kmod_o_dir %{_libdir}/nvidia/%{_arch}/%{version}/ %ifarch %{x86_64} -%global kernels desktop server desktop-gcc server-gcc rc-desktop rc-server rc-desktop-gcc rc-server-gcc +%global kernels desktop server rc-desktop rc-server +# desktop-gcc server-gcc rc-desktop-gcc rc-server-gcc %else %global kernels desktop server rc-desktop rc-server %endif Summary: Binary-only driver for nvidia graphics chips Name: nvidia -Version: 525.78.01 -Release: 1 +Version: 530.41.03 +Release: 4 ExclusiveArch: %{x86_64} %{aarch64} Url: http://www.nvidia.com/object/unix.html Source0: http://download.nvidia.com/XFree86/Linux-x86_64/%{version}/NVIDIA-Linux-x86_64-%{version}.run @@ -26,9 +27,10 @@ Source1: http://download.nvidia.com/XFree86/Linux-aarch64/%{version}/NVIDIA-Linu Source10: https://gitweb.frugalware.org/frugalware-current/raw/master/source/x11-extra/nvidia/xorg-nvidia.conf Source11: https://gitweb.frugalware.org/frugalware-current/raw/master/source/x11-extra/nvidia/modprobe-nvidia.conf Patch0: NaziVidia-kernel-6.0.patch -Patch1: nvidia-525-clang-15.patch +#Patch1: nvidia-525-clang-15.patch +Patch3: nvidia-fix-linux-6.4.patch %ifarch %{aarch64} -Patch2: nvidia-525-aarch64-clang-15.patch +#Patch2: nvidia-525-aarch64-clang-15.patch %endif Group: Hardware License: distributable
Not Available
benbullard79 [@T] cox.net | No Comment. | 519d 20hrs |
benbullard79 [@T] cox.net | No Comment. | 519d 20hrs |