Revert "drm/ttm: never consider pinned BOs for eviction&swap"

This reverts commit 8996b13051 which is
commit a2848d08742c8e8494675892c02c0d22acbe3cf8 upstream.

It breaks the Android kernel abi, and is not needed for any Android
devices at this time.  If it is needed in the future, it can be brought
back in an abi-safe way.

Bug: 161946584
Change-Id: I9d6e3021fdefbab998d058e1b4ab8d559f26aec3
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman
2023-08-28 16:20:21 +00:00
parent 70435a8ac9
commit 1c80a01fc2

View File

@@ -672,12 +672,6 @@ static bool ttm_bo_evict_swapout_allowable(struct ttm_buffer_object *bo,
{
bool ret = false;
if (bo->pin_count) {
*locked = false;
*busy = false;
return false;
}
if (bo->base.resv == ctx->resv) {
dma_resv_assert_held(bo->base.resv);
if (ctx->flags & TTM_OPT_FLAG_ALLOW_RES_EVICT)