mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 23:08:42 +07:00
drm/ttm: return -EBUSY if waiting for busy BO fails
Returning -EAGAIN prevents ttm_bo_mem_space from trying alternate
placements and can lead to live-locks in amdgpu_cs, retrying
indefinitely and never succeeding.
Fixes: d367bd2a5e
("drm/ttm: fix busy memory to fail other user v10")
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
687ac4a702
commit
f631959653
@ -827,7 +827,7 @@ static int ttm_mem_evict_wait_busy(struct ttm_buffer_object *busy_bo,
|
|||||||
if (!r)
|
if (!r)
|
||||||
reservation_object_unlock(busy_bo->resv);
|
reservation_object_unlock(busy_bo->resv);
|
||||||
|
|
||||||
return r == -EDEADLK ? -EAGAIN : r;
|
return r == -EDEADLK ? -EBUSY : r;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ttm_mem_evict_first(struct ttm_bo_device *bdev,
|
static int ttm_mem_evict_first(struct ttm_bo_device *bdev,
|
||||||
|
Loading…
Reference in New Issue
Block a user