FAILED: patch "[PATCH] drm/xe: Keep walking on SVM eviction failure" failed to apply to 7.3-stable tree
Subsystems (3)
Sasha Levin
maintainerThe patch below does not apply to the 7.3-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-7.3.y
git checkout FETCH_HEAD
git cherry-pick -x 36a86c23588b8f57c9d20feb4cf5a2ab27e3baba
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '[email protected]' --subject-prefix 'PATCH 7.3.y' 'HEAD^..'
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From 36a86c23588b8f57c9d20feb4cf5a2ab27e3baba Mon Sep 17 00:00:00 2001
From: Matthew Brost <[email protected]>
Date: Thu, 17 Sep 2026 13:31:58 -0700
Subject: [PATCH] drm/xe: Keep walking on SVM eviction failure
The desired behavior for SVM eviction failures, which can occur due to various uncontrollable races, is for TTM to continue walking the LRU list and look for another eviction candidate. This is expressed by returning -ENOSPC from the ->move() callback.
Adjust the SVM eviction failure path because of races in ->move() to return -ENOSPC so that TTM continues searching for another buffer to evict.
--- drivers/gpu/drm/xe/xe_bo.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/gpu/drm/xe/xe_bo.c +7 -0
@@ -1044,6 +1044,13 @@ static int xe_bo_move(struct ttm_buffer_object *ttm_bo, bool evict, }else {drm_dbg (&xe->drm,"Evict system allocator BO failed=%pe\n" ,ERR_PTR (ret)); +/* +* The semantic we want upon SVM eviction failure +* because of racing access is keep walking for +* eviction, which is -ENOSPC. +*/ +if (ret == -EBUSY ) + ret = -ENOSPC ; } goto out;
Signature · 1 line
2.53.0