]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
drm/amdgpu: only move pt bos in LRU list on success
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 27 Jan 2016 16:04:19 +0000 (11:04 -0500)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:25:53 +0000 (10:25 +0100)
commit3f8eae05e191e13762b704a247da2718971efeda
treefa8bcde429dd89cbc851e7b1250b566c32f56d1f
parent0ad6eb0dfd132b36d58e902ae691d6af2b5ea2f6
drm/amdgpu: only move pt bos in LRU list on success

BugLink: http://bugs.launchpad.net/bugs/1546572
This fixes a race condition in the error case: since the pt bos have not
necessarily been reserved in case of an error, we could move a pt bo that
is currently in the middle of being evicted/moved by another process,
which then resulted in a BUG_ON in ttm_bo_add_to_lru.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 28b8d66e0c1cc6c02b8159ae44aec359e12feefa)
Signed-off-by: Alberto Milone <alberto.milone@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c