[packages/xorg-driver-video-nvidia-legacy-390xx] - move uvm bits to separate patch

baggins baggins at pld-linux.org
Wed Oct 21 09:10:20 CEST 2020


commit 88d459b81bf785f30a65ea9225c9c8041377477f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Oct 21 09:09:59 2020 +0200

    - move uvm bits to separate patch

 kernel-5.9-uvm.patch                       | 24 ++++++++++++++++++++++++
 xorg-driver-video-nvidia-legacy-390xx.spec |  4 +++-
 2 files changed, 27 insertions(+), 1 deletion(-)
---
diff --git a/xorg-driver-video-nvidia-legacy-390xx.spec b/xorg-driver-video-nvidia-legacy-390xx.spec
index ddcecde..466a6f1 100644
--- a/xorg-driver-video-nvidia-legacy-390xx.spec
+++ b/xorg-driver-video-nvidia-legacy-390xx.spec
@@ -58,6 +58,7 @@ Patch1:		X11-driver-nvidia-desktop.patch
 Patch2:		kernel-5.8.patch
 Patch3:		kernel-5.8-uvm.patch
 Patch4:		kernel-5.9.patch
+Patch5:		kernel-5.9-uvm.patch
 URL:		http://www.nvidia.com/object/unix.html
 BuildRequires:	rpmbuild(macros) >= 1.701
 %{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}}
@@ -265,10 +266,11 @@ rm -rf NVIDIA-Linux-x86*-%{version}*
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch4 -p1
 %ifarch %{x8664}
 %patch3 -p1
+%patch5 -p1
 %endif
-%patch4 -p1
 echo 'EXTRA_CFLAGS += -Wno-pointer-arith -Wno-sign-compare -Wno-unused' >> kernel/Makefile.kbuild
 
 %build
diff --git a/kernel-5.9-uvm.patch b/kernel-5.9-uvm.patch
new file mode 100644
index 0000000..4bdea19
--- /dev/null
+++ b/kernel-5.9-uvm.patch
@@ -0,0 +1,24 @@
+diff --git a/kernel/nvidia-uvm/uvm8_tools.c b/kernel/nvidia-uvm/uvm8_tools.c
+index 86dbb77..63d0b64 100644
+--- a/kernel/nvidia-uvm/uvm8_tools.c
++++ b/kernel/nvidia-uvm/uvm8_tools.c
+@@ -190,7 +190,6 @@ static uvm_tools_event_tracker_t *tools_event_tracker(struct file *filp)
+ {
+     long event_tracker = atomic_long_read((atomic_long_t *)&filp->private_data);
+ 
+-    smp_read_barrier_depends();
+     return (uvm_tools_event_tracker_t *)event_tracker;
+ }
+ 
+diff --git a/kernel/nvidia-uvm/uvm8_va_range.h b/kernel/nvidia-uvm/uvm8_va_range.h
+index 8cae357..6166cc8 100644
+--- a/kernel/nvidia-uvm/uvm8_va_range.h
++++ b/kernel/nvidia-uvm/uvm8_va_range.h
+@@ -717,7 +717,6 @@ static uvm_va_block_t *uvm_va_range_block(uvm_va_range_t *va_range, size_t index
+     // make sure that any initialization of this block by the creating thread is
+     // visible to later accesses in this thread, which requires a data
+     // dependency barrier.
+-    smp_read_barrier_depends();
+     return block;
+ }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xorg-driver-video-nvidia-legacy-390xx.git/commitdiff/88d459b81bf785f30a65ea9225c9c8041377477f



More information about the pld-cvs-commit mailing list