Skip to content

Commit 60df57e

Browse files
committed
drm/xe: Mark GGTT work queue with WQ_MEM_RECLAIM
GGTT work queue is used to free memory thus we should allow this work queue to run during reclaim. Mark with GGTT 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 059c2a7 commit 60df57e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xe/xe_ggtt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt)
246246
else
247247
ggtt->pt_ops = &xelp_pt_ops;
248248

249-
ggtt->wq = alloc_workqueue("xe-ggtt-wq", 0, 0);
249+
ggtt->wq = alloc_workqueue("xe-ggtt-wq", 0, WQ_MEM_RECLAIM);
250250

251251
drm_mm_init(&ggtt->mm, xe_wopcm_size(xe),
252252
ggtt->size - xe_wopcm_size(xe));

0 commit comments

Comments
 (0)