Skip to content

Commit e2d84e5

Browse files
committed
drm/xe: Mark GT work queue with WQ_MEM_RECLAIM
GT ordered work queue can be used to free memory via resets and fence signaling thus we should allow this work queue to run during reclaim. Mark with GT ordered work queue with WQ_MEM_RECLAIM appropriately. Signed-off-by: Matthew Brost <[email protected]> Reviewed-by: Himal Prasad Ghimiray <[email protected]> Reviewed-by: Badal Nilawar <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 179e017 commit e2d84e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/xe/xe_gt.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ struct xe_gt *xe_gt_alloc(struct xe_tile *tile)
7777
return ERR_PTR(-ENOMEM);
7878

7979
gt->tile = tile;
80-
gt->ordered_wq = alloc_ordered_workqueue("gt-ordered-wq", 0);
80+
gt->ordered_wq = alloc_ordered_workqueue("gt-ordered-wq",
81+
WQ_MEM_RECLAIM);
8182

8283
err = drmm_add_action_or_reset(&gt_to_xe(gt)->drm, gt_fini, gt);
8384
if (err)

0 commit comments

Comments
 (0)