From: Michel Dänzer Date: Wed, 29 Aug 2018 09:59:38 +0000 (+0200) Subject: Revert "drm/amdgpu: move PD/PT bos on LRU again" X-Git-Tag: v4.20-rc1~21^2~27^2~165 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d78c1fa0c9f815fe951fd57001acca3d35262a17;p=tomoyo%2Ftomoyo-test1.git Revert "drm/amdgpu: move PD/PT bos on LRU again" This reverts commit 31625ccae4464b61ec8cdb9740df848bbc857a5b. It triggered various badness on my development machine when running the piglit gpu profile with radeonsi on Bonaire, looks like memory corruption due to insufficiently protected list manipulations. Signed-off-by: Michel Dänzer Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 23c78af850c6..521ddb358ec1 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -1127,7 +1127,7 @@ restart: struct amdgpu_vm_bo_base, vm_status); bo_base->moved = false; - list_move(&bo_base->vm_status, &vm->idle); + list_del_init(&bo_base->vm_status); bo = bo_base->bo->parent; if (!bo)