aboutsummaryrefslogtreecommitdiffstats
path: root/meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/1470-drm-amdgpu-Don-t-wait-for-fence-when-unmapping-freei.patch
blob: 04f3a881ae87a7016224219508102ce63a7d6e32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From 2209febf8bd080310f954401d24359d2f4c86bb0 Mon Sep 17 00:00:00 2001
From: Felix Kuehling <Felix.Kuehling@amd.com>
Date: Tue, 28 Jun 2016 18:26:24 -0400
Subject: [PATCH 1470/4131] drm/amdgpu: Don't wait for fence when
 unmapping/freeing buffers

When unmapping and freeing buffers, user mode doesn't need to wait
for the completion of the page table update fence.

Change-Id: Idd948d1f3d7a7000b3845d16a81dbd2f8a9e8a8c
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
index 4ed616b..b1e1598 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
@@ -874,7 +874,7 @@ int amdgpu_amdkfd_gpuvm_free_memory_of_gpu(
 				entry);
 	}
 
-	unreserve_bo_and_vms(&ctx, true);
+	unreserve_bo_and_vms(&ctx, false);
 
 	/* Free the BO*/
 	amdgpu_bo_unref(&mem->data2.bo);
@@ -1210,7 +1210,7 @@ int amdgpu_amdkfd_gpuvm_unmap_memory_from_gpu(
 	}
 
 unreserve_out:
-	unreserve_bo_and_vms(&ctx, true);
+	unreserve_bo_and_vms(&ctx, false);
 out:
 	mutex_unlock(&mem->data2.lock);
 	return ret;
-- 
2.7.4