diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1626-drm-amdgpu-revert-cleanup-setting-bulk_movable.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/1626-drm-amdgpu-revert-cleanup-setting-bulk_movable.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1626-drm-amdgpu-revert-cleanup-setting-bulk_movable.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1626-drm-amdgpu-revert-cleanup-setting-bulk_movable.patch new file mode 100644 index 00000000..a3bfbf8f --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1626-drm-amdgpu-revert-cleanup-setting-bulk_movable.patch @@ -0,0 +1,36 @@ +From 3656cbfe9074a6e9970b459f53963707ab73d09a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com> +Date: Wed, 13 Mar 2019 09:36:52 +0100 +Subject: [PATCH 1626/2940] drm/amdgpu: revert "cleanup setting bulk_movable" +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This reverts commit 4ef27005fefd4be102010b7d8552fec1ee13435a. + +It can trigger a reference counter bug in TTM. Need to investigate further, but +for now revert the offending change. + +Signed-off-by: Christian König <christian.koenig@amd.com> +Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> +Tested-by: Michel Dänzer <michel.daenzer@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +index 14c6a0af7ada..4eb6cc4b269b 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +@@ -671,6 +671,8 @@ 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; + +-- +2.17.1 + |