aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3672-drm-amdgpu-use-moving-fence-instead-of-exclusive-for.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3672-drm-amdgpu-use-moving-fence-instead-of-exclusive-for.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3672-drm-amdgpu-use-moving-fence-instead-of-exclusive-for.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3672-drm-amdgpu-use-moving-fence-instead-of-exclusive-for.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3672-drm-amdgpu-use-moving-fence-instead-of-exclusive-for.patch
new file mode 100644
index 00000000..b2fdff33
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3672-drm-amdgpu-use-moving-fence-instead-of-exclusive-for.patch
@@ -0,0 +1,35 @@
+From 1c9819c5046f7a096c2d3161980c1a1b190c2278 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Fri, 16 Aug 2019 16:06:51 +0200
+Subject: [PATCH 3672/4256] drm/amdgpu: use moving fence instead of exclusive
+ for VM updates
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Make VM updates depend on the moving fence instead of the exclusive one.
+
+Makes it less likely to actually have a dependency.
+
+Signed-off-by: Christian König <christian.koenig@amd.com>
+Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+index c55e7aba2f99..dd5b5875f874 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+@@ -1667,7 +1667,7 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev,
+ ttm = container_of(bo->tbo.ttm, struct ttm_dma_tt, ttm);
+ pages_addr = ttm->dma_address;
+ }
+- exclusive = reservation_object_get_excl(bo->tbo.resv);
++ exclusive = bo->tbo.moving;
+ }
+
+ if (bo) {
+--
+2.17.1
+