]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
accel/amdxdna: Fix notifier_wq flushing warning
authorLizhi Hou <lizhi.hou@amd.com>
Tue, 13 Jan 2026 17:36:24 +0000 (09:36 -0800)
committerLizhi Hou <lizhi.hou@amd.com>
Wed, 14 Jan 2026 17:07:33 +0000 (09:07 -0800)
Create notifier_wq with WQ_MEM_RECLAIM flag to fix the possible warning.

  workqueue: WQ_MEM_RECLAIM amdxdna_js:drm_sched_free_job_work [gpu_sched] is flushing !WQ_MEM_RECLAIM notifier_wq:0x0

Fixes: e486147c912f ("accel/amdxdna: Add BO import and export")
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Reviewed-by: Maciej Falkowski <maciej.falkowski@linux.intel.com>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260113173624.256053-1-lizhi.hou@amd.com
drivers/accel/amdxdna/amdxdna_pci_drv.c

index 7d59764d7869db5fed7172f4fef32459928342d2..45f5c12fc67fbf96667e5fbf37321c631c56dd5a 100644 (file)
@@ -275,7 +275,7 @@ static int amdxdna_probe(struct pci_dev *pdev, const struct pci_device_id *id)
                fs_reclaim_release(GFP_KERNEL);
        }
 
-       xdna->notifier_wq = alloc_ordered_workqueue("notifier_wq", 0);
+       xdna->notifier_wq = alloc_ordered_workqueue("notifier_wq", WQ_MEM_RECLAIM);
        if (!xdna->notifier_wq)
                return -ENOMEM;