]> www.infradead.org Git - linux.git/commitdiff
drm/xe: Mark G2H work queue with WQ_MEM_RECLAIM
authorMatthew Brost <matthew.brost@intel.com>
Mon, 21 Oct 2024 17:57:04 +0000 (10:57 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 23 Oct 2024 18:08:07 +0000 (11:08 -0700)
G2H work queue can be used to free memory thus we should allow this work
queue to run during reclaim. Mark with G2H 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-4-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_guc_ct.c

index c260d884099073d88a454c22e83a7101713263d8..1b5d8fb1033ad711e4738e089cae230a5655257c 100644 (file)
@@ -213,7 +213,7 @@ int xe_guc_ct_init(struct xe_guc_ct *ct)
 
        xe_gt_assert(gt, !(guc_ct_size() % PAGE_SIZE));
 
-       ct->g2h_wq = alloc_ordered_workqueue("xe-g2h-wq", 0);
+       ct->g2h_wq = alloc_ordered_workqueue("xe-g2h-wq", WQ_MEM_RECLAIM);
        if (!ct->g2h_wq)
                return -ENOMEM;