]> git.baikalelectronics.ru Git - 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)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Jan 2016 16:46:45 +0000 (11:46 -0500)
commit13417c6d7e5887e567929bd1c8eddbe4f0172105
treee7810bfce856908ee788d2f9678e3923231e7a40
parent3a14baf6928415b8aee55d0b7dc92f22cf21050c
drm/amdgpu: only move pt bos in LRU list on success

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c