]> git.pld-linux.org Git - packages/xorg-driver-video-nvidia-legacy-390xx.git/blame - kernel-6.3-uvm.patch
- fix building with kernel 6.4, rel 4
[packages/xorg-driver-video-nvidia-legacy-390xx.git] / kernel-6.3-uvm.patch
CommitLineData
85d476e6
JP
1diff --color -ur NVIDIA-Linux-x86_64-390.157-no-compat32.orig/kernel/nvidia-uvm/uvm8.c NVIDIA-Linux-x86_64-390.157-no-compat32/kernel/nvidia-uvm/uvm8.c
2--- NVIDIA-Linux-x86_64-390.157-no-compat32.orig/kernel/nvidia-uvm/uvm8.c 2022-10-12 11:30:28.000000000 +0200
3+++ NVIDIA-Linux-x86_64-390.157-no-compat32/kernel/nvidia-uvm/uvm8.c 2023-05-27 21:31:28.027398157 +0200
4@@ -658,7 +658,7 @@
5 // Using VM_DONTCOPY would be nice, but madvise(MADV_DOFORK) can reset that
6 // so we have to handle vm_open on fork anyway. We could disable MADV_DOFORK
7 // with VM_IO, but that causes other mapping issues.
8- vma->vm_flags |= VM_MIXEDMAP | VM_DONTEXPAND;
9+ nv_vm_flags_set(vma, VM_MIXEDMAP | VM_DONTEXPAND | VM_DONTCOPY);
10
11 vma->vm_ops = &uvm_vm_ops_managed;
12
This page took 0.085101 seconds and 4 git commands to generate.