- move uvm bits to separate patch
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 21 Oct 2020 07:09:59 +0000 (09:09 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 21 Oct 2020 07:09:59 +0000 (09:09 +0200)
kernel-5.9-uvm.patch [new file with mode: 0644]
xorg-driver-video-nvidia-legacy-390xx.spec

diff --git a/kernel-5.9-uvm.patch b/kernel-5.9-uvm.patch
new file mode 100644 (file)
index 0000000..4bdea19
--- /dev/null
@@ -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;
+ }
index ddcecdeeb8eaa3c0948df26fca8e547e81c726c2..466a6f10e6e4699d8ad99c35acb50ad4b0353c56 100644 (file)
@@ -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
This page took 0.126998 seconds and 4 git commands to generate.