aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/1173-drm-amdgpu-cleanup-setting-bulk_movable.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1173-drm-amdgpu-cleanup-setting-bulk_movable.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/1173-drm-amdgpu-cleanup-setting-bulk_movable.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1173-drm-amdgpu-cleanup-setting-bulk_movable.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1173-drm-amdgpu-cleanup-setting-bulk_movable.patch
new file mode 100644
index 00000000..b3f960fc
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1173-drm-amdgpu-cleanup-setting-bulk_movable.patch
@@ -0,0 +1,50 @@
+From 78e023ec27858dec414da67ab51743c64e50b881 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Mon, 28 Jan 2019 13:41:58 +0100
+Subject: [PATCH 1173/2940] drm/amdgpu: cleanup setting bulk_movable
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+We only need to set this to false now when BOs are removed from the LRU.
+
+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 | 6 ------
+ 1 file changed, 6 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+index 5c92b54bc31e..7b4d4e2cc2ca 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+@@ -332,7 +332,6 @@ static void amdgpu_vm_bo_base_init(struct amdgpu_vm_bo_base *base,
+ if (bo->tbo.resv != vm->root.base.bo->tbo.resv)
+ return;
+
+- vm->bulk_moveable = false;
+ if (bo->tbo.type == ttm_bo_type_kernel)
+ amdgpu_vm_bo_relocated(base);
+ else
+@@ -676,8 +675,6 @@ int amdgpu_vm_validate_pt_bos(struct amdgpu_device *adev, struct amdgpu_vm *vm,
+ struct amdgpu_vm_bo_base *bo_base, *tmp;
+ int r = 0;
+
+- vm->bulk_moveable &= list_empty(&vm->evicted);
+-
+ list_for_each_entry_safe(bo_base, tmp, &vm->evicted, vm_status) {
+ struct amdgpu_bo *bo = bo_base->bo;
+
+@@ -2771,9 +2768,6 @@ void amdgpu_vm_bo_rmv(struct amdgpu_device *adev,
+ struct amdgpu_vm_bo_base **base;
+
+ if (bo) {
+- if (bo->tbo.resv == vm->root.base.bo->tbo.resv)
+- vm->bulk_moveable = false;
+-
+ for (base = &bo_va->base.bo->vm_bo; *base;
+ base = &(*base)->next) {
+ if (*base != &bo_va->base)
+--
+2.17.1
+