[xorg-x11-drv-nvidia-470xx] Fix rfbz#6264
by Leigh Scott
commit b79fc71035fafae6311585c95dfcf7d0beea940b
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sun Apr 3 16:56:12 2022 +0100
Fix rfbz#6264
xorg-x11-drv-nvidia-470xx.metainfo.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/xorg-x11-drv-nvidia-470xx.metainfo.xml b/xorg-x11-drv-nvidia-470xx.metainfo.xml
index ab2e139..afa06ac 100644
--- a/xorg-x11-drv-nvidia-470xx.metainfo.xml
+++ b/xorg-x11-drv-nvidia-470xx.metainfo.xml
@@ -2,7 +2,7 @@
<!-- Copyright 2016 Richard Hughes <richard(a)hughsie.com> -->
<component type="driver">
<id>xorg-x11-drv-nvidia-470xx</id>
- <name>NVIDIA Linux Graphics Driver</name>
+ <name>NVIDIA 470xx Linux Graphics Driver</name>
<summary>Accelerated Linux Graphics Driver</summary>
<description>
<p>
2 years, 7 months
[loudgain] Build against ffmpeg-free from Fedora.
by mavit
commit a00ffa78e89a869902e2323568790665a44283e6
Author: Peter Oliver <git(a)mavit.org.uk>
Date: Sun Apr 3 12:31:18 2022 +0100
Build against ffmpeg-free from Fedora.
loudgain.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/loudgain.spec b/loudgain.spec
index ce341f0..8e727ba 100644
--- a/loudgain.spec
+++ b/loudgain.spec
@@ -3,7 +3,7 @@ Version: 0.6.8
%forgemeta
Name: %{repo}
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: ReplayGain 2.0 audio loudness normalizer
License: BSD
URL: %{forgeurl}
@@ -15,7 +15,7 @@ Patch1: fix_ffmpeg5.patch
BuildRequires: cmake
BuildRequires: gcc-c++
-BuildRequires: ffmpeg-devel
+BuildRequires: ffmpeg-free-devel
BuildRequires: libebur128-devel
BuildRequires: taglib-devel
@@ -54,6 +54,9 @@ modify the actual audio data.
%changelog
+* Sun Apr 3 2022 Peter Oliver <rpm(a)mavit.org.uk> - 0.6.8-6
+- Build against ffmpeg-free from Fedora.
+
* Wed Feb 09 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> - 0.6.8-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2 years, 7 months
[nvidia-340xx-kmod] Patch for kernel-5.17.0
by wojnilowicz
commit cecd8fdaf1d21096f34326669d82479707ca6e02
Author: Łukasz Wojniłowicz <lukasz.wojnilowicz(a)gmail.com>
Date: Sun Apr 3 10:23:57 2022 +0200
Patch for kernel-5.17.0
fix-build-issues.patch | 76 ++++++++++++++++++++++++++++++++++++++++++--------
nvidia-340xx-kmod.spec | 5 +++-
2 files changed, 68 insertions(+), 13 deletions(-)
---
diff --git a/fix-build-issues.patch b/fix-build-issues.patch
index 3d83e75..3030bb7 100644
--- a/fix-build-issues.patch
+++ b/fix-build-issues.patch
@@ -1,7 +1,7 @@
diff -Naur a/kernel/conftest.Kbuild b/kernel/conftest.Kbuild
--- a/kernel/conftest.Kbuild 1970-01-01 01:00:00.000000000 +0100
-+++ b/kernel/conftest.Kbuild 2022-01-21 18:38:55.073844408 +0100
-@@ -0,0 +1,212 @@
++++ b/kernel/conftest.Kbuild 2022-04-03 09:54:09.789517505 +0200
+@@ -0,0 +1,213 @@
+NV_CONFTEST_GENERIC_COMPILE_TESTS += drm_available
+NV_CONFTEST_GENERIC_COMPILE_TESTS += drm_atomic_available
+NV_CONFTEST_GENERIC_COMPILE_TESTS += dom0_kernel_present
@@ -37,6 +37,7 @@ diff -Naur a/kernel/conftest.Kbuild b/kernel/conftest.Kbuild
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += get_num_physpages
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += proc_create_data
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += pde_data
++NV_CONFTEST_FUNCTION_COMPILE_TESTS += PDE_DATA
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += proc_remove
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += pm_vt_switch_required
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += pci_save_state
@@ -215,8 +216,8 @@ diff -Naur a/kernel/conftest.Kbuild b/kernel/conftest.Kbuild
+
+$(NV_CONFTEST_HEADERS): | $(BUILD_SANITY_CHECKS)
diff -Naur a/kernel/conftest.sh b/kernel/conftest.sh
---- a/kernel/conftest.sh 2022-01-21 18:37:50.022267249 +0100
-+++ b/kernel/conftest.sh 2022-01-21 18:38:55.082844211 +0100
+--- a/kernel/conftest.sh 2022-04-03 09:53:53.384897612 +0200
++++ b/kernel/conftest.sh 2022-04-03 09:54:09.792517436 +0200
@@ -113,6 +113,7 @@
FILES="$FILES drm/drm_vblank.h"
FILES="$FILES drm/drm_file.h"
@@ -379,7 +380,44 @@ diff -Naur a/kernel/conftest.sh b/kernel/conftest.sh
sg_table)
#
# Determine if the struct sg_table type is present.
-@@ -2034,6 +2147,21 @@
+@@ -1795,15 +1908,35 @@
+
+ pde_data)
+ #
++ # Determine if the pde_data() function is present.
++ #
++ # The commit c28198889c15 removed the function
++ # 'PDE_DATA()', and replaced it with 'pde_data()'
++ # ("proc: remove PDE_DATA() completely") in v5.17-rc1.
++ #
++ CODE="
++ #include <linux/proc_fs.h>
++ void conftest_pde_data(void) {
++ pde_data();
++ }"
++
++ compile_check_conftest "$CODE" "NV_PDE_DATA_PRESENT" "" "functions"
++ ;;
++
++ PDE_DATA)
++ #
+ # Determine if the PDE_DATA() function is present.
+ #
++ # Added by commit d9dda78bad87
++ # ("procfs: new helper - PDE_DATA(inode)") in v3.10
++ #
+ CODE="
+ #include <linux/proc_fs.h>
+ void conftest_PDE_DATA(void) {
+ PDE_DATA();
+ }"
+
+- compile_check_conftest "$CODE" "NV_PDE_DATA_PRESENT" "" "functions"
++ compile_check_conftest "$CODE" "NV_PDE_DATA_UPPER_CASE_PRESENT" "" "functions"
+ ;;
+
+ get_num_physpages)
+@@ -2034,6 +2167,21 @@
compile_check_conftest "$CODE" "NV_FILE_HAS_INODE" "" "types"
;;
@@ -401,7 +439,7 @@ diff -Naur a/kernel/conftest.sh b/kernel/conftest.sh
xen_ioemu_inject_msi)
#
# Determine if the xen_ioemu_inject_msi() function is present.
-@@ -3411,6 +3539,64 @@
+@@ -3411,6 +3559,64 @@
compile_check_conftest "$CODE" "NV_DRM_DRIVER_UNLOAD_HAS_INT_RETURN_TYPE" "" "types"
;;
@@ -466,7 +504,7 @@ diff -Naur a/kernel/conftest.sh b/kernel/conftest.sh
kref_has_refcount_of_type_refcount_t)
CODE="
#include <linux/kref.h>
-@@ -3963,6 +4149,30 @@
+@@ -3963,6 +4169,30 @@
compile_check_conftest "$CODE" "NV_DMA_IS_DIRECT_PRESENT" "" "functions"
;;
@@ -1152,8 +1190,8 @@ diff -Naur a/kernel/nvidia-modules-common.mk b/kernel/nvidia-modules-common.mk
@$(RM) -rf Module*.symvers .tmp_versions modules.order
diff -Naur a/kernel/nv-linux.h b/kernel/nv-linux.h
---- a/kernel/nv-linux.h 2022-01-21 18:37:49.978268211 +0100
-+++ b/kernel/nv-linux.h 2022-01-21 18:38:55.092843992 +0100
+--- a/kernel/nv-linux.h 2022-04-03 09:53:53.350898400 +0200
++++ b/kernel/nv-linux.h 2022-04-03 09:54:09.795517366 +0200
@@ -119,12 +119,15 @@
#include <asm/tlbflush.h> /* flush_tlb(), flush_tlb_all() */
#include <linux/cpu.h> /* CPU hotplug support */
@@ -1274,7 +1312,21 @@ diff -Naur a/kernel/nv-linux.h b/kernel/nv-linux.h
/*
* proc_mkdir_mode exists in Linux 2.6.9, but isn't exported until Linux 3.0.
-@@ -2023,6 +2065,24 @@
+@@ -2010,9 +2052,11 @@
+ })
+
+ #if defined(NV_PDE_DATA_PRESENT)
+-# define NV_PDE_DATA(inode) PDE_DATA(inode)
++#define NV_PDE_DATA(inode) pde_data(inode)
++#elif defined(NV_PDE_DATA_UPPER_CASE_PRESENT)
++#define NV_PDE_DATA(inode) PDE_DATA(inode)
+ #else
+-# define NV_PDE_DATA(inode) PDE(inode)->data
++#define NV_PDE_DATA(inode) PDE(inode)->data
+ #endif
+
+ #if defined(NV_PROC_REMOVE_PRESENT)
+@@ -2023,6 +2067,24 @@
remove_proc_entry(entry->name, entry->parent);
#endif
@@ -1299,7 +1351,7 @@ diff -Naur a/kernel/nv-linux.h b/kernel/nv-linux.h
#define NV_DEFINE_PROCFS_SINGLE_FILE(__name) \
static int nv_procfs_open_##__name( \
struct inode *inode, \
-@@ -2040,6 +2100,7 @@
+@@ -2040,6 +2102,7 @@
.llseek = seq_lseek, \
.release = single_release, \
};
@@ -1307,7 +1359,7 @@ diff -Naur a/kernel/nv-linux.h b/kernel/nv-linux.h
#endif /* CONFIG_PROC_FS */
-@@ -2187,9 +2248,13 @@
+@@ -2187,9 +2250,13 @@
flags |= FOLL_FORCE;
#if defined(NV_GET_USER_PAGES_REMOTE_HAS_LOCKED_ARG)
diff --git a/nvidia-340xx-kmod.spec b/nvidia-340xx-kmod.spec
index ca966eb..5fa95db 100644
--- a/nvidia-340xx-kmod.spec
+++ b/nvidia-340xx-kmod.spec
@@ -12,7 +12,7 @@ Name: nvidia-340xx-kmod
Epoch: 1
Version: 340.108
# Taken over by kmodtool
-Release: 18%{?dist}
+Release: 19%{?dist}
Summary: NVIDIA display driver kernel module
Group: System Environment/Kernel
License: Redistributable, no modification permitted
@@ -77,6 +77,9 @@ done
%{?akmod_install}
%changelog
+* Sun Apr 03 2022 Łukasz Wojniłowicz <lukasz.wojnilowicz(a)gmail.com> - 1:340.108-19
+- Patch for kernel-5.17.0
+
* Thu Feb 10 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> - 1:340.108-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2 years, 7 months
[nvidia-340xx-kmod/f36] Patch for kernel-5.17.0
by wojnilowicz
commit d9345bc386468177e5609c119c762c6a62806232
Author: Łukasz Wojniłowicz <lukasz.wojnilowicz(a)gmail.com>
Date: Sun Apr 3 10:21:27 2022 +0200
Patch for kernel-5.17.0
fix-build-issues.patch | 76 ++++++++++++++++++++++++++++++++++++++++++--------
nvidia-340xx-kmod.spec | 5 +++-
2 files changed, 68 insertions(+), 13 deletions(-)
---
diff --git a/fix-build-issues.patch b/fix-build-issues.patch
index 3d83e75..3030bb7 100644
--- a/fix-build-issues.patch
+++ b/fix-build-issues.patch
@@ -1,7 +1,7 @@
diff -Naur a/kernel/conftest.Kbuild b/kernel/conftest.Kbuild
--- a/kernel/conftest.Kbuild 1970-01-01 01:00:00.000000000 +0100
-+++ b/kernel/conftest.Kbuild 2022-01-21 18:38:55.073844408 +0100
-@@ -0,0 +1,212 @@
++++ b/kernel/conftest.Kbuild 2022-04-03 09:54:09.789517505 +0200
+@@ -0,0 +1,213 @@
+NV_CONFTEST_GENERIC_COMPILE_TESTS += drm_available
+NV_CONFTEST_GENERIC_COMPILE_TESTS += drm_atomic_available
+NV_CONFTEST_GENERIC_COMPILE_TESTS += dom0_kernel_present
@@ -37,6 +37,7 @@ diff -Naur a/kernel/conftest.Kbuild b/kernel/conftest.Kbuild
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += get_num_physpages
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += proc_create_data
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += pde_data
++NV_CONFTEST_FUNCTION_COMPILE_TESTS += PDE_DATA
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += proc_remove
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += pm_vt_switch_required
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += pci_save_state
@@ -215,8 +216,8 @@ diff -Naur a/kernel/conftest.Kbuild b/kernel/conftest.Kbuild
+
+$(NV_CONFTEST_HEADERS): | $(BUILD_SANITY_CHECKS)
diff -Naur a/kernel/conftest.sh b/kernel/conftest.sh
---- a/kernel/conftest.sh 2022-01-21 18:37:50.022267249 +0100
-+++ b/kernel/conftest.sh 2022-01-21 18:38:55.082844211 +0100
+--- a/kernel/conftest.sh 2022-04-03 09:53:53.384897612 +0200
++++ b/kernel/conftest.sh 2022-04-03 09:54:09.792517436 +0200
@@ -113,6 +113,7 @@
FILES="$FILES drm/drm_vblank.h"
FILES="$FILES drm/drm_file.h"
@@ -379,7 +380,44 @@ diff -Naur a/kernel/conftest.sh b/kernel/conftest.sh
sg_table)
#
# Determine if the struct sg_table type is present.
-@@ -2034,6 +2147,21 @@
+@@ -1795,15 +1908,35 @@
+
+ pde_data)
+ #
++ # Determine if the pde_data() function is present.
++ #
++ # The commit c28198889c15 removed the function
++ # 'PDE_DATA()', and replaced it with 'pde_data()'
++ # ("proc: remove PDE_DATA() completely") in v5.17-rc1.
++ #
++ CODE="
++ #include <linux/proc_fs.h>
++ void conftest_pde_data(void) {
++ pde_data();
++ }"
++
++ compile_check_conftest "$CODE" "NV_PDE_DATA_PRESENT" "" "functions"
++ ;;
++
++ PDE_DATA)
++ #
+ # Determine if the PDE_DATA() function is present.
+ #
++ # Added by commit d9dda78bad87
++ # ("procfs: new helper - PDE_DATA(inode)") in v3.10
++ #
+ CODE="
+ #include <linux/proc_fs.h>
+ void conftest_PDE_DATA(void) {
+ PDE_DATA();
+ }"
+
+- compile_check_conftest "$CODE" "NV_PDE_DATA_PRESENT" "" "functions"
++ compile_check_conftest "$CODE" "NV_PDE_DATA_UPPER_CASE_PRESENT" "" "functions"
+ ;;
+
+ get_num_physpages)
+@@ -2034,6 +2167,21 @@
compile_check_conftest "$CODE" "NV_FILE_HAS_INODE" "" "types"
;;
@@ -401,7 +439,7 @@ diff -Naur a/kernel/conftest.sh b/kernel/conftest.sh
xen_ioemu_inject_msi)
#
# Determine if the xen_ioemu_inject_msi() function is present.
-@@ -3411,6 +3539,64 @@
+@@ -3411,6 +3559,64 @@
compile_check_conftest "$CODE" "NV_DRM_DRIVER_UNLOAD_HAS_INT_RETURN_TYPE" "" "types"
;;
@@ -466,7 +504,7 @@ diff -Naur a/kernel/conftest.sh b/kernel/conftest.sh
kref_has_refcount_of_type_refcount_t)
CODE="
#include <linux/kref.h>
-@@ -3963,6 +4149,30 @@
+@@ -3963,6 +4169,30 @@
compile_check_conftest "$CODE" "NV_DMA_IS_DIRECT_PRESENT" "" "functions"
;;
@@ -1152,8 +1190,8 @@ diff -Naur a/kernel/nvidia-modules-common.mk b/kernel/nvidia-modules-common.mk
@$(RM) -rf Module*.symvers .tmp_versions modules.order
diff -Naur a/kernel/nv-linux.h b/kernel/nv-linux.h
---- a/kernel/nv-linux.h 2022-01-21 18:37:49.978268211 +0100
-+++ b/kernel/nv-linux.h 2022-01-21 18:38:55.092843992 +0100
+--- a/kernel/nv-linux.h 2022-04-03 09:53:53.350898400 +0200
++++ b/kernel/nv-linux.h 2022-04-03 09:54:09.795517366 +0200
@@ -119,12 +119,15 @@
#include <asm/tlbflush.h> /* flush_tlb(), flush_tlb_all() */
#include <linux/cpu.h> /* CPU hotplug support */
@@ -1274,7 +1312,21 @@ diff -Naur a/kernel/nv-linux.h b/kernel/nv-linux.h
/*
* proc_mkdir_mode exists in Linux 2.6.9, but isn't exported until Linux 3.0.
-@@ -2023,6 +2065,24 @@
+@@ -2010,9 +2052,11 @@
+ })
+
+ #if defined(NV_PDE_DATA_PRESENT)
+-# define NV_PDE_DATA(inode) PDE_DATA(inode)
++#define NV_PDE_DATA(inode) pde_data(inode)
++#elif defined(NV_PDE_DATA_UPPER_CASE_PRESENT)
++#define NV_PDE_DATA(inode) PDE_DATA(inode)
+ #else
+-# define NV_PDE_DATA(inode) PDE(inode)->data
++#define NV_PDE_DATA(inode) PDE(inode)->data
+ #endif
+
+ #if defined(NV_PROC_REMOVE_PRESENT)
+@@ -2023,6 +2067,24 @@
remove_proc_entry(entry->name, entry->parent);
#endif
@@ -1299,7 +1351,7 @@ diff -Naur a/kernel/nv-linux.h b/kernel/nv-linux.h
#define NV_DEFINE_PROCFS_SINGLE_FILE(__name) \
static int nv_procfs_open_##__name( \
struct inode *inode, \
-@@ -2040,6 +2100,7 @@
+@@ -2040,6 +2102,7 @@
.llseek = seq_lseek, \
.release = single_release, \
};
@@ -1307,7 +1359,7 @@ diff -Naur a/kernel/nv-linux.h b/kernel/nv-linux.h
#endif /* CONFIG_PROC_FS */
-@@ -2187,9 +2248,13 @@
+@@ -2187,9 +2250,13 @@
flags |= FOLL_FORCE;
#if defined(NV_GET_USER_PAGES_REMOTE_HAS_LOCKED_ARG)
diff --git a/nvidia-340xx-kmod.spec b/nvidia-340xx-kmod.spec
index ca966eb..5fa95db 100644
--- a/nvidia-340xx-kmod.spec
+++ b/nvidia-340xx-kmod.spec
@@ -12,7 +12,7 @@ Name: nvidia-340xx-kmod
Epoch: 1
Version: 340.108
# Taken over by kmodtool
-Release: 18%{?dist}
+Release: 19%{?dist}
Summary: NVIDIA display driver kernel module
Group: System Environment/Kernel
License: Redistributable, no modification permitted
@@ -77,6 +77,9 @@ done
%{?akmod_install}
%changelog
+* Sun Apr 03 2022 Łukasz Wojniłowicz <lukasz.wojnilowicz(a)gmail.com> - 1:340.108-19
+- Patch for kernel-5.17.0
+
* Thu Feb 10 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> - 1:340.108-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2 years, 7 months
[nvidia-340xx-kmod/f35] Patch for kernel-5.17.0
by wojnilowicz
commit a5341901c98924ec48540afaedf492164f23a84a
Author: Łukasz Wojniłowicz <lukasz.wojnilowicz(a)gmail.com>
Date: Sun Apr 3 10:01:55 2022 +0200
Patch for kernel-5.17.0
fix-build-issues.patch | 76 ++++++++++++++++++++++++++++++++++++++++++--------
nvidia-340xx-kmod.spec | 5 +++-
2 files changed, 68 insertions(+), 13 deletions(-)
---
diff --git a/fix-build-issues.patch b/fix-build-issues.patch
index 3d83e75..3030bb7 100644
--- a/fix-build-issues.patch
+++ b/fix-build-issues.patch
@@ -1,7 +1,7 @@
diff -Naur a/kernel/conftest.Kbuild b/kernel/conftest.Kbuild
--- a/kernel/conftest.Kbuild 1970-01-01 01:00:00.000000000 +0100
-+++ b/kernel/conftest.Kbuild 2022-01-21 18:38:55.073844408 +0100
-@@ -0,0 +1,212 @@
++++ b/kernel/conftest.Kbuild 2022-04-03 09:54:09.789517505 +0200
+@@ -0,0 +1,213 @@
+NV_CONFTEST_GENERIC_COMPILE_TESTS += drm_available
+NV_CONFTEST_GENERIC_COMPILE_TESTS += drm_atomic_available
+NV_CONFTEST_GENERIC_COMPILE_TESTS += dom0_kernel_present
@@ -37,6 +37,7 @@ diff -Naur a/kernel/conftest.Kbuild b/kernel/conftest.Kbuild
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += get_num_physpages
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += proc_create_data
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += pde_data
++NV_CONFTEST_FUNCTION_COMPILE_TESTS += PDE_DATA
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += proc_remove
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += pm_vt_switch_required
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += pci_save_state
@@ -215,8 +216,8 @@ diff -Naur a/kernel/conftest.Kbuild b/kernel/conftest.Kbuild
+
+$(NV_CONFTEST_HEADERS): | $(BUILD_SANITY_CHECKS)
diff -Naur a/kernel/conftest.sh b/kernel/conftest.sh
---- a/kernel/conftest.sh 2022-01-21 18:37:50.022267249 +0100
-+++ b/kernel/conftest.sh 2022-01-21 18:38:55.082844211 +0100
+--- a/kernel/conftest.sh 2022-04-03 09:53:53.384897612 +0200
++++ b/kernel/conftest.sh 2022-04-03 09:54:09.792517436 +0200
@@ -113,6 +113,7 @@
FILES="$FILES drm/drm_vblank.h"
FILES="$FILES drm/drm_file.h"
@@ -379,7 +380,44 @@ diff -Naur a/kernel/conftest.sh b/kernel/conftest.sh
sg_table)
#
# Determine if the struct sg_table type is present.
-@@ -2034,6 +2147,21 @@
+@@ -1795,15 +1908,35 @@
+
+ pde_data)
+ #
++ # Determine if the pde_data() function is present.
++ #
++ # The commit c28198889c15 removed the function
++ # 'PDE_DATA()', and replaced it with 'pde_data()'
++ # ("proc: remove PDE_DATA() completely") in v5.17-rc1.
++ #
++ CODE="
++ #include <linux/proc_fs.h>
++ void conftest_pde_data(void) {
++ pde_data();
++ }"
++
++ compile_check_conftest "$CODE" "NV_PDE_DATA_PRESENT" "" "functions"
++ ;;
++
++ PDE_DATA)
++ #
+ # Determine if the PDE_DATA() function is present.
+ #
++ # Added by commit d9dda78bad87
++ # ("procfs: new helper - PDE_DATA(inode)") in v3.10
++ #
+ CODE="
+ #include <linux/proc_fs.h>
+ void conftest_PDE_DATA(void) {
+ PDE_DATA();
+ }"
+
+- compile_check_conftest "$CODE" "NV_PDE_DATA_PRESENT" "" "functions"
++ compile_check_conftest "$CODE" "NV_PDE_DATA_UPPER_CASE_PRESENT" "" "functions"
+ ;;
+
+ get_num_physpages)
+@@ -2034,6 +2167,21 @@
compile_check_conftest "$CODE" "NV_FILE_HAS_INODE" "" "types"
;;
@@ -401,7 +439,7 @@ diff -Naur a/kernel/conftest.sh b/kernel/conftest.sh
xen_ioemu_inject_msi)
#
# Determine if the xen_ioemu_inject_msi() function is present.
-@@ -3411,6 +3539,64 @@
+@@ -3411,6 +3559,64 @@
compile_check_conftest "$CODE" "NV_DRM_DRIVER_UNLOAD_HAS_INT_RETURN_TYPE" "" "types"
;;
@@ -466,7 +504,7 @@ diff -Naur a/kernel/conftest.sh b/kernel/conftest.sh
kref_has_refcount_of_type_refcount_t)
CODE="
#include <linux/kref.h>
-@@ -3963,6 +4149,30 @@
+@@ -3963,6 +4169,30 @@
compile_check_conftest "$CODE" "NV_DMA_IS_DIRECT_PRESENT" "" "functions"
;;
@@ -1152,8 +1190,8 @@ diff -Naur a/kernel/nvidia-modules-common.mk b/kernel/nvidia-modules-common.mk
@$(RM) -rf Module*.symvers .tmp_versions modules.order
diff -Naur a/kernel/nv-linux.h b/kernel/nv-linux.h
---- a/kernel/nv-linux.h 2022-01-21 18:37:49.978268211 +0100
-+++ b/kernel/nv-linux.h 2022-01-21 18:38:55.092843992 +0100
+--- a/kernel/nv-linux.h 2022-04-03 09:53:53.350898400 +0200
++++ b/kernel/nv-linux.h 2022-04-03 09:54:09.795517366 +0200
@@ -119,12 +119,15 @@
#include <asm/tlbflush.h> /* flush_tlb(), flush_tlb_all() */
#include <linux/cpu.h> /* CPU hotplug support */
@@ -1274,7 +1312,21 @@ diff -Naur a/kernel/nv-linux.h b/kernel/nv-linux.h
/*
* proc_mkdir_mode exists in Linux 2.6.9, but isn't exported until Linux 3.0.
-@@ -2023,6 +2065,24 @@
+@@ -2010,9 +2052,11 @@
+ })
+
+ #if defined(NV_PDE_DATA_PRESENT)
+-# define NV_PDE_DATA(inode) PDE_DATA(inode)
++#define NV_PDE_DATA(inode) pde_data(inode)
++#elif defined(NV_PDE_DATA_UPPER_CASE_PRESENT)
++#define NV_PDE_DATA(inode) PDE_DATA(inode)
+ #else
+-# define NV_PDE_DATA(inode) PDE(inode)->data
++#define NV_PDE_DATA(inode) PDE(inode)->data
+ #endif
+
+ #if defined(NV_PROC_REMOVE_PRESENT)
+@@ -2023,6 +2067,24 @@
remove_proc_entry(entry->name, entry->parent);
#endif
@@ -1299,7 +1351,7 @@ diff -Naur a/kernel/nv-linux.h b/kernel/nv-linux.h
#define NV_DEFINE_PROCFS_SINGLE_FILE(__name) \
static int nv_procfs_open_##__name( \
struct inode *inode, \
-@@ -2040,6 +2100,7 @@
+@@ -2040,6 +2102,7 @@
.llseek = seq_lseek, \
.release = single_release, \
};
@@ -1307,7 +1359,7 @@ diff -Naur a/kernel/nv-linux.h b/kernel/nv-linux.h
#endif /* CONFIG_PROC_FS */
-@@ -2187,9 +2248,13 @@
+@@ -2187,9 +2250,13 @@
flags |= FOLL_FORCE;
#if defined(NV_GET_USER_PAGES_REMOTE_HAS_LOCKED_ARG)
diff --git a/nvidia-340xx-kmod.spec b/nvidia-340xx-kmod.spec
index a62fcdc..f4171e7 100644
--- a/nvidia-340xx-kmod.spec
+++ b/nvidia-340xx-kmod.spec
@@ -12,7 +12,7 @@ Name: nvidia-340xx-kmod
Epoch: 1
Version: 340.108
# Taken over by kmodtool
-Release: 16%{?dist}
+Release: 17%{?dist}
Summary: NVIDIA display driver kernel module
Group: System Environment/Kernel
License: Redistributable, no modification permitted
@@ -77,6 +77,9 @@ done
%{?akmod_install}
%changelog
+* Sun Apr 03 2022 Łukasz Wojniłowicz <lukasz.wojnilowicz(a)gmail.com> - 1:340.108-17
+- Patch for kernel-5.17.0
+
* Fri Jan 21 2022 Łukasz Wojniłowicz <lukasz.wojnilowicz(a)gmail.com> - 1:340.108-16
- Reduce the patchset to two patches
2 years, 7 months
[nvidia-340xx-kmod/f34] Patch for kernel-5.17.0
by wojnilowicz
commit 34a7b822104be58b10a3d0f6fe9a98a21ba6f94b
Author: Łukasz Wojniłowicz <lukasz.wojnilowicz(a)gmail.com>
Date: Sun Apr 3 10:20:00 2022 +0200
Patch for kernel-5.17.0
fix-build-issues.patch | 76 ++++++++++++++++++++++++++++++++++++++++++--------
nvidia-340xx-kmod.spec | 5 +++-
2 files changed, 68 insertions(+), 13 deletions(-)
---
diff --git a/fix-build-issues.patch b/fix-build-issues.patch
index 3d83e75..3030bb7 100644
--- a/fix-build-issues.patch
+++ b/fix-build-issues.patch
@@ -1,7 +1,7 @@
diff -Naur a/kernel/conftest.Kbuild b/kernel/conftest.Kbuild
--- a/kernel/conftest.Kbuild 1970-01-01 01:00:00.000000000 +0100
-+++ b/kernel/conftest.Kbuild 2022-01-21 18:38:55.073844408 +0100
-@@ -0,0 +1,212 @@
++++ b/kernel/conftest.Kbuild 2022-04-03 09:54:09.789517505 +0200
+@@ -0,0 +1,213 @@
+NV_CONFTEST_GENERIC_COMPILE_TESTS += drm_available
+NV_CONFTEST_GENERIC_COMPILE_TESTS += drm_atomic_available
+NV_CONFTEST_GENERIC_COMPILE_TESTS += dom0_kernel_present
@@ -37,6 +37,7 @@ diff -Naur a/kernel/conftest.Kbuild b/kernel/conftest.Kbuild
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += get_num_physpages
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += proc_create_data
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += pde_data
++NV_CONFTEST_FUNCTION_COMPILE_TESTS += PDE_DATA
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += proc_remove
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += pm_vt_switch_required
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += pci_save_state
@@ -215,8 +216,8 @@ diff -Naur a/kernel/conftest.Kbuild b/kernel/conftest.Kbuild
+
+$(NV_CONFTEST_HEADERS): | $(BUILD_SANITY_CHECKS)
diff -Naur a/kernel/conftest.sh b/kernel/conftest.sh
---- a/kernel/conftest.sh 2022-01-21 18:37:50.022267249 +0100
-+++ b/kernel/conftest.sh 2022-01-21 18:38:55.082844211 +0100
+--- a/kernel/conftest.sh 2022-04-03 09:53:53.384897612 +0200
++++ b/kernel/conftest.sh 2022-04-03 09:54:09.792517436 +0200
@@ -113,6 +113,7 @@
FILES="$FILES drm/drm_vblank.h"
FILES="$FILES drm/drm_file.h"
@@ -379,7 +380,44 @@ diff -Naur a/kernel/conftest.sh b/kernel/conftest.sh
sg_table)
#
# Determine if the struct sg_table type is present.
-@@ -2034,6 +2147,21 @@
+@@ -1795,15 +1908,35 @@
+
+ pde_data)
+ #
++ # Determine if the pde_data() function is present.
++ #
++ # The commit c28198889c15 removed the function
++ # 'PDE_DATA()', and replaced it with 'pde_data()'
++ # ("proc: remove PDE_DATA() completely") in v5.17-rc1.
++ #
++ CODE="
++ #include <linux/proc_fs.h>
++ void conftest_pde_data(void) {
++ pde_data();
++ }"
++
++ compile_check_conftest "$CODE" "NV_PDE_DATA_PRESENT" "" "functions"
++ ;;
++
++ PDE_DATA)
++ #
+ # Determine if the PDE_DATA() function is present.
+ #
++ # Added by commit d9dda78bad87
++ # ("procfs: new helper - PDE_DATA(inode)") in v3.10
++ #
+ CODE="
+ #include <linux/proc_fs.h>
+ void conftest_PDE_DATA(void) {
+ PDE_DATA();
+ }"
+
+- compile_check_conftest "$CODE" "NV_PDE_DATA_PRESENT" "" "functions"
++ compile_check_conftest "$CODE" "NV_PDE_DATA_UPPER_CASE_PRESENT" "" "functions"
+ ;;
+
+ get_num_physpages)
+@@ -2034,6 +2167,21 @@
compile_check_conftest "$CODE" "NV_FILE_HAS_INODE" "" "types"
;;
@@ -401,7 +439,7 @@ diff -Naur a/kernel/conftest.sh b/kernel/conftest.sh
xen_ioemu_inject_msi)
#
# Determine if the xen_ioemu_inject_msi() function is present.
-@@ -3411,6 +3539,64 @@
+@@ -3411,6 +3559,64 @@
compile_check_conftest "$CODE" "NV_DRM_DRIVER_UNLOAD_HAS_INT_RETURN_TYPE" "" "types"
;;
@@ -466,7 +504,7 @@ diff -Naur a/kernel/conftest.sh b/kernel/conftest.sh
kref_has_refcount_of_type_refcount_t)
CODE="
#include <linux/kref.h>
-@@ -3963,6 +4149,30 @@
+@@ -3963,6 +4169,30 @@
compile_check_conftest "$CODE" "NV_DMA_IS_DIRECT_PRESENT" "" "functions"
;;
@@ -1152,8 +1190,8 @@ diff -Naur a/kernel/nvidia-modules-common.mk b/kernel/nvidia-modules-common.mk
@$(RM) -rf Module*.symvers .tmp_versions modules.order
diff -Naur a/kernel/nv-linux.h b/kernel/nv-linux.h
---- a/kernel/nv-linux.h 2022-01-21 18:37:49.978268211 +0100
-+++ b/kernel/nv-linux.h 2022-01-21 18:38:55.092843992 +0100
+--- a/kernel/nv-linux.h 2022-04-03 09:53:53.350898400 +0200
++++ b/kernel/nv-linux.h 2022-04-03 09:54:09.795517366 +0200
@@ -119,12 +119,15 @@
#include <asm/tlbflush.h> /* flush_tlb(), flush_tlb_all() */
#include <linux/cpu.h> /* CPU hotplug support */
@@ -1274,7 +1312,21 @@ diff -Naur a/kernel/nv-linux.h b/kernel/nv-linux.h
/*
* proc_mkdir_mode exists in Linux 2.6.9, but isn't exported until Linux 3.0.
-@@ -2023,6 +2065,24 @@
+@@ -2010,9 +2052,11 @@
+ })
+
+ #if defined(NV_PDE_DATA_PRESENT)
+-# define NV_PDE_DATA(inode) PDE_DATA(inode)
++#define NV_PDE_DATA(inode) pde_data(inode)
++#elif defined(NV_PDE_DATA_UPPER_CASE_PRESENT)
++#define NV_PDE_DATA(inode) PDE_DATA(inode)
+ #else
+-# define NV_PDE_DATA(inode) PDE(inode)->data
++#define NV_PDE_DATA(inode) PDE(inode)->data
+ #endif
+
+ #if defined(NV_PROC_REMOVE_PRESENT)
+@@ -2023,6 +2067,24 @@
remove_proc_entry(entry->name, entry->parent);
#endif
@@ -1299,7 +1351,7 @@ diff -Naur a/kernel/nv-linux.h b/kernel/nv-linux.h
#define NV_DEFINE_PROCFS_SINGLE_FILE(__name) \
static int nv_procfs_open_##__name( \
struct inode *inode, \
-@@ -2040,6 +2100,7 @@
+@@ -2040,6 +2102,7 @@
.llseek = seq_lseek, \
.release = single_release, \
};
@@ -1307,7 +1359,7 @@ diff -Naur a/kernel/nv-linux.h b/kernel/nv-linux.h
#endif /* CONFIG_PROC_FS */
-@@ -2187,9 +2248,13 @@
+@@ -2187,9 +2250,13 @@
flags |= FOLL_FORCE;
#if defined(NV_GET_USER_PAGES_REMOTE_HAS_LOCKED_ARG)
diff --git a/nvidia-340xx-kmod.spec b/nvidia-340xx-kmod.spec
index 5bcf893..f83497d 100644
--- a/nvidia-340xx-kmod.spec
+++ b/nvidia-340xx-kmod.spec
@@ -12,7 +12,7 @@ Name: nvidia-340xx-kmod
Epoch: 1
Version: 340.108
# Taken over by kmodtool
-Release: 15%{?dist}
+Release: 16%{?dist}
Summary: NVIDIA display driver kernel module
Group: System Environment/Kernel
License: Redistributable, no modification permitted
@@ -77,6 +77,9 @@ done
%{?akmod_install}
%changelog
+* Sun Apr 03 2022 Łukasz Wojniłowicz <lukasz.wojnilowicz(a)gmail.com> - 1:340.108-16
+- Patch for kernel-5.17.0
+
* Fri Jan 21 2022 Łukasz Wojniłowicz <lukasz.wojnilowicz(a)gmail.com> - 1:340.108-15
- Reduce the patchset to two patches
2 years, 7 months
[chromium-freeworld] Revert "Enable v4l2_codec for aarch64"
by Leigh Scott
commit 800800af52df1498916eb92f2b12ab60e0239e15
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sat Apr 2 15:22:36 2022 +0100
Revert "Enable v4l2_codec for aarch64"
This reverts commit df6460981e9858ffa4c6fb71f01e04fd7d197d2e.
chromium-freeworld.spec | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/chromium-freeworld.spec b/chromium-freeworld.spec
index dc36888..f844dde 100644
--- a/chromium-freeworld.spec
+++ b/chromium-freeworld.spec
@@ -361,7 +361,6 @@ gn_arg use_system_wayland_scanner=true
gn_arg use_bundled_weston=false
%ifarch aarch64
-gn_arg use_v4l2_codec=true
gn_arg 'target_cpu="arm64"'
%endif
2 years, 7 months