artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d97b72c
)
drm/amdgpu: Reserve fences for VM update
author
jsg
<jsg@openbsd.org>
Thu, 9 Nov 2023 08:16:47 +0000
(08:16 +0000)
committer
jsg
<jsg@openbsd.org>
Thu, 9 Nov 2023 08:16:47 +0000
(08:16 +0000)
From Felix Kuehling
ff86d69b2e5004ec256a9301990acdaa282a777c
in linux-6.1.y/6.1.62
316baf09d355aec1179981b6dfe28eba50c5ee5b
in mainline linux
sys/dev/pci/drm/amd/amdgpu/amdgpu_dma_buf.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/amdgpu/amdgpu_dma_buf.c
b/sys/dev/pci/drm/amd/amdgpu/amdgpu_dma_buf.c
index
15e0a1a
..
0938915
100644
(file)
--- a/
sys/dev/pci/drm/amd/amdgpu/amdgpu_dma_buf.c
+++ b/
sys/dev/pci/drm/amd/amdgpu/amdgpu_dma_buf.c
@@
-410,7
+410,10
@@
amdgpu_dma_buf_move_notify(struct dma_buf_attachment *attach)
continue;
}
- r = amdgpu_vm_clear_freed(adev, vm, NULL);
+ /* Reserve fences for two SDMA page table updates */
+ r = dma_resv_reserve_fences(resv, 2);
+ if (!r)
+ r = amdgpu_vm_clear_freed(adev, vm, NULL);
if (!r)
r = amdgpu_vm_handle_moved(adev, vm);