]> www.infradead.org Git - linux.git/commitdiff
drm/xe: Mark GGTT work queue with WQ_MEM_RECLAIM
authorMatthew Brost <matthew.brost@intel.com>
Mon, 21 Oct 2024 17:57:03 +0000 (10:57 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 23 Oct 2024 18:08:06 +0000 (11:08 -0700)
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 <matthew.brost@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Reviewed-by: Badal Nilawar <badal.nilawar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241021175705.1584521-3-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_ggtt.c

index 1b31782269871cd929b4f98b1b4310a7a40acfe3..0124ad120c047081eea926d80d9c0c692fe72aef 100644 (file)
@@ -246,7 +246,7 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt)
        else
                ggtt->pt_ops = &xelp_pt_ops;
 
-       ggtt->wq = alloc_workqueue("xe-ggtt-wq", 0, 0);
+       ggtt->wq = alloc_workqueue("xe-ggtt-wq", 0, WQ_MEM_RECLAIM);
 
        drm_mm_init(&ggtt->mm, xe_wopcm_size(xe),
                    ggtt->size - xe_wopcm_size(xe));