Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 1/2] drm/xe: Use non-interruptible wait when moving BO to system
@ 2024-12-13 12:24 Nirmoy Das
  2024-12-13 12:24 ` [PATCH v4 2/2] drm/xe: Wait for migration job before unmapping pages Nirmoy Das
                   ` (9 more replies)
  0 siblings, 10 replies; 12+ messages in thread
From: Nirmoy Das @ 2024-12-13 12:24 UTC (permalink / raw)
  To: intel-xe
  Cc: Nirmoy Das, Thomas Hellström, Matthew Brost, Lucas De Marchi,
	stable, Matthew Auld

Ensure a non-interruptible wait is used when moving a bo to
XE_PL_SYSTEM. This prevents dma_mappings from being removed prematurely
while a GPU job is still in progress, even if the CPU receives a
signal during the operation.

Fixes: 75521e8b56e8 ("drm/xe: Perform dma_map when moving system buffer objects to TT")
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: <stable@vger.kernel.org> # v6.11+
Suggested-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@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 283cd0294570..06931df876ab 100644
--- a/drivers/gpu/drm/xe/xe_bo.c
+++ b/drivers/gpu/drm/xe/xe_bo.c
@@ -733,7 +733,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 = timeout;
-- 
2.46.0


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-12-16 15:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-13 12:24 [PATCH v4 1/2] drm/xe: Use non-interruptible wait when moving BO to system Nirmoy Das
2024-12-13 12:24 ` [PATCH v4 2/2] drm/xe: Wait for migration job before unmapping pages Nirmoy Das
2024-12-13 15:02 ` ✓ CI.Patch_applied: success for series starting with [v4,1/2] drm/xe: Use non-interruptible wait when moving BO to system Patchwork
2024-12-13 15:03 ` ✓ CI.checkpatch: " Patchwork
2024-12-13 15:04 ` ✓ CI.KUnit: " Patchwork
2024-12-13 15:22 ` ✓ CI.Build: " Patchwork
2024-12-13 15:24 ` ✓ CI.Hooks: " Patchwork
2024-12-13 15:26 ` ✓ CI.checksparse: " Patchwork
2024-12-13 15:56 ` ✓ Xe.CI.BAT: " Patchwork
2024-12-14  2:46 ` ✗ Xe.CI.Full: failure " Patchwork
2024-12-16 15:07   ` Nirmoy Das
2024-12-16  9:01 ` [PATCH v4 1/2] " Thomas Hellström

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox