[Intel-xe] [PATCH 1/3] drm/xe: Disable interruptable wait on xe_bo_move()

José Roberto de Souza jose.souza at intel.com
Fri May 26 19:06:07 UTC 2023


All the Xe users of dma_resv_wait_timeout() also disable the
interruptable wait.
And doing so this avoids DRM_IOCTL_XE_EXEC fails when under memory
pressure.

Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/239
Cc: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
Signed-off-by: José Roberto de Souza <jose.souza at intel.com>
---
 drivers/gpu/drm/xe/xe_bo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
index 0db9c05097d07..6ed7e08269e82 100644
--- a/drivers/gpu/drm/xe/xe_bo.c
+++ b/drivers/gpu/drm/xe/xe_bo.c
@@ -609,7 +609,7 @@ static int xe_bo_move(struct ttm_buffer_object *ttm_bo, bool evict,
 	    new_mem->mem_type == XE_PL_SYSTEM) {
 		long timeout = dma_resv_wait_timeout(ttm_bo->base.resv,
 						     DMA_RESV_USAGE_BOOKKEEP,
-						     true,
+						     false,
 						     MAX_SCHEDULE_TIMEOUT);
 		if (timeout <= 0) {
 			ret = -ETIME;
-- 
2.40.1



More information about the Intel-xe mailing list