Skip to content

Commit ed31ba0

Browse files
mbrost05Thomas Hellström
authored andcommitted
drm/xe: Mark preempt fence workqueue as reclaim
Preempt fences are in the path of reclaim, and we signal these fences in the preempt workqueue. With that, we need to mark the preempt fence workqueue with reclaim so that this workqueue can make forward progress during reclaim. Fixes: dd08ebf ("drm/xe: Introduce a new DRM driver for Intel GPUs") Signed-off-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241113171751.1677784-1-matthew.brost@intel.com (cherry picked from commit 15cf53e) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
1 parent 37a1cf2 commit ed31ba0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/xe/xe_device.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,8 @@ struct xe_device *xe_device_create(struct pci_dev *pdev,
360360
INIT_LIST_HEAD(&xe->pinned.external_vram);
361361
INIT_LIST_HEAD(&xe->pinned.evicted);
362362

363-
xe->preempt_fence_wq = alloc_ordered_workqueue("xe-preempt-fence-wq", 0);
363+
xe->preempt_fence_wq = alloc_ordered_workqueue("xe-preempt-fence-wq",
364+
WQ_MEM_RECLAIM);
364365
xe->ordered_wq = alloc_ordered_workqueue("xe-ordered-wq", 0);
365366
xe->unordered_wq = alloc_workqueue("xe-unordered-wq", 0, 0);
366367
xe->destroy_wq = alloc_workqueue("xe-destroy-wq", 0, 0);

0 commit comments

Comments
 (0)