From nobody Sun Feb 8 03:57:25 2026 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F27A2D94AF for ; Mon, 2 Feb 2026 10:38:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770028690; cv=none; b=uKc7E4uHIcVOtQMreYoWwTz/uYFHokeaAcUB14N/3KhPNWrTrpcQBIqWx53A9Lw8Gy6vumrrC4A+SdiRVljEUxA6BH+Xaon4MsCRNF9E1Z2f4G6bxSsMY0rr0WIbti3LRie8opCLOZqYLgFmd3tWGwMfxBxpxxfynfyIziI/Yok= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770028690; c=relaxed/simple; bh=etbxei7u37FbLRJsPhqIvladrWlPCdwXOtjITibFFsI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Jcj2qBQJmuhzVm1q+VqdiWN2S1bOPNipP0UEhKGeV/lNNh1k2SHdNtmmwa+A7gKdcRX6qPS6MYe1GnrCHCA1FjurJjQImbu9aeefYhZdBP74+QH0G+HRruf5eiIM6ns5tyfEiUQI009q+D3+KLBdpqDzl0+on88C1ZswjaM8rvY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=FExsrT0p; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="FExsrT0p" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-47edd6111b4so45380825e9.1 for ; Mon, 02 Feb 2026 02:38:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1770028687; x=1770633487; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Hq4ly7B9JVWbvt72cIbU5rFsb4y323EjInZyEw1Av+0=; b=FExsrT0p0nAT85BmY58q6YWN2m4fX0zCLPpy3Gy4OT0rmXE8+fX6JnlYodwxTMU/6/ viSha823TPGvtfrWPRMfF1zuvZqfvI+NqAyAqfVS+u0owFKEytus4DzoUsOmAauBLyME z+piFkMYoynPX4jkzappSA3ZVHcI7wqZ5lpFRl2TSwgnrs7B26H7utzumfsBEgW6YZm+ 0n51lukPvzxKJd0rRZ8H4WfPUIr2TbBt5LFYu2O/UUDByT/Zqk6syq6daA+u/hmEJI/z DIb0ZcunipTWi0c7uD0IiX2XSADOho9fhwt++jiWb0gsBOZ1mhw+5jHupZN5FS8KHxDm TbHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770028687; x=1770633487; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Hq4ly7B9JVWbvt72cIbU5rFsb4y323EjInZyEw1Av+0=; b=Jt6JaT9w9+oqtpyLImrJFatYUOjuTadXFLeabInh8KWQr9mbqt/T/acZxXeismObtZ /HQSb620NfLQx3PCmZZe/dF+rXuJBawobYDXEXLWpfFxnjz2Ryz30T7PKk8ETm07a4AB chaqB4JWMoVTa66a0ZOO+EnQKw4tOFtH7IVkIZRCxfjII02pTPNXFcKTcAJjVCxmVDg7 5rp5QvxRG1jO+o/vd7S3ITU9dOMV64NBYrSLqEhiAvGuwqMpbuuipVUghPTINudZuqZz PbW34rLkvWjE8+OgDbmmPipfL37mFKDaojgPNnN0jI7ZQVNLT93QOnuDcHXWvJ3Lj/tG XHfA== X-Gm-Message-State: AOJu0YzNluXbGh1otiVBSpehko7Vatr2HqKHQBbkFJ/PHfZ6LLs8dhcu kP1SG4Nasy3TtXN3V956nBh5hkf3FVtUqk4BEDWcAmUjnZTIHfTzWTkwS2i/Qe96GPmbgN4d8IK hB1TF X-Gm-Gg: AZuq6aLW92FoTrGOYEbeRfKHjkT9LDhMZn5rRIfI/z/Stw7tk8nH1sgZcsjfCRmGPJs mDAQFY5FQHCtrY4/dSCxfM/QpOZn/+tk/XlJLuMGd08jkz/C8S4xcBj/orSArAuJ8T6WgBmwTly uRWZYrRkV6iegyCKV1uv2caQCV8R1bDEfgLV3Btx4/D079xIa1ngrBGbOM9vw8F4zaBdd+nEl4e HjZUPkrBH01GVzt742tAofbV1Qt7E9tl7TsxtKfEgnzgDIQKy9e8tW6i1R6BcmlJmfr/onfXucC 7i3edtOdx3k/DGnw2rPLGHqc7YryM4s2+wULJGG6/ywTaOMJP8zaBBdK6ke7Txl8js6SFCQybhd vLUbg+IHhgtUmPoSsa3a8g4DnQ6Ejf0AQ7+Y1XBEJ/mSz3KGD9bRV9u+XvY7jidZvUy3AaJKmG7 ZEmdr5KHgOKpkORg== X-Received: by 2002:a05:600c:628b:b0:477:9ce2:a0d8 with SMTP id 5b1f17b1804b1-482db013172mr151015275e9.0.1770028686690; Mon, 02 Feb 2026 02:38:06 -0800 (PST) Received: from linux ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-435e1354d43sm47020132f8f.43.2026.02.02.02.38.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Feb 2026 02:38:06 -0800 (PST) From: Marco Crivellari To: linux-kernel@vger.kernel.org, intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Thomas Hellstrom , Rodrigo Vivi , David Airlie , Simona Vetter Subject: [PATCH v4 1/2] drm/xe: replace use of system_unbound_wq with system_dfl_wq Date: Mon, 2 Feb 2026 11:37:55 +0100 Message-ID: <20260202103756.62138-2-marco.crivellari@suse.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260202103756.62138-1-marco.crivellari@suse.com> References: <20260202103756.62138-1-marco.crivellari@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This patch continues the effort to refactor workqueue APIs, which has begun with the changes introducing new workqueues and a new alloc_workqueue flag: commit 128ea9f6ccfb ("workqueue: Add system_percpu_wq and system_dfl_wq") commit 930c2ea566af ("workqueue: Add new WQ_PERCPU flag") The point of the refactoring is to eventually alter the default behavior of workqueues to become unbound by default so that their workload placement is optimized by the scheduler. Before that to happen, workqueue users must be converted to the better named new workqueues with no intended behaviour changes: system_wq -> system_percpu_wq system_unbound_wq -> system_dfl_wq This way the old obsolete workqueues (system_wq, system_unbound_wq) can be removed in the future. Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/xe/xe_devcoredump.c | 2 +- drivers/gpu/drm/xe/xe_execlist.c | 2 +- drivers/gpu/drm/xe/xe_guc_ct.c | 4 ++-- drivers/gpu/drm/xe/xe_oa.c | 2 +- drivers/gpu/drm/xe/xe_vm.c | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_devcoredump.c b/drivers/gpu/drm/xe/xe_de= vcoredump.c index cf41bb6d2172..558a1a9841a0 100644 --- a/drivers/gpu/drm/xe/xe_devcoredump.c +++ b/drivers/gpu/drm/xe/xe_devcoredump.c @@ -356,7 +356,7 @@ static void devcoredump_snapshot(struct xe_devcoredump = *coredump, =20 xe_engine_snapshot_capture_for_queue(q); =20 - queue_work(system_unbound_wq, &ss->work); + queue_work(system_dfl_wq, &ss->work); =20 dma_fence_end_signalling(cookie); } diff --git a/drivers/gpu/drm/xe/xe_execlist.c b/drivers/gpu/drm/xe/xe_execl= ist.c index 005a5b2c36fe..dc25caf47813 100644 --- a/drivers/gpu/drm/xe/xe_execlist.c +++ b/drivers/gpu/drm/xe/xe_execlist.c @@ -421,7 +421,7 @@ static void execlist_exec_queue_kill(struct xe_exec_que= ue *q) static void execlist_exec_queue_destroy(struct xe_exec_queue *q) { INIT_WORK(&q->execlist->destroy_async, execlist_exec_queue_destroy_async); - queue_work(system_unbound_wq, &q->execlist->destroy_async); + queue_work(system_dfl_wq, &q->execlist->destroy_async); } =20 static int execlist_exec_queue_set_priority(struct xe_exec_queue *q, diff --git a/drivers/gpu/drm/xe/xe_guc_ct.c b/drivers/gpu/drm/xe/xe_guc_ct.c index dfbf76037b04..a0498f36bd74 100644 --- a/drivers/gpu/drm/xe/xe_guc_ct.c +++ b/drivers/gpu/drm/xe/xe_guc_ct.c @@ -643,7 +643,7 @@ static int __xe_guc_ct_start(struct xe_guc_ct *ct, bool= needs_register) spin_lock_irq(&ct->dead.lock); if (ct->dead.reason) { ct->dead.reason |=3D (1 << CT_DEAD_STATE_REARM); - queue_work(system_unbound_wq, &ct->dead.worker); + queue_work(system_dfl_wq, &ct->dead.worker); } spin_unlock_irq(&ct->dead.lock); #endif @@ -2165,7 +2165,7 @@ static void ct_dead_capture(struct xe_guc_ct *ct, str= uct guc_ctb *ctb, u32 reaso =20 spin_unlock_irqrestore(&ct->dead.lock, flags); =20 - queue_work(system_unbound_wq, &(ct)->dead.worker); + queue_work(system_dfl_wq, &(ct)->dead.worker); } =20 static void ct_dead_print(struct xe_dead_ct *dead) diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c index abf87fe0b345..8b37e49f639f 100644 --- a/drivers/gpu/drm/xe/xe_oa.c +++ b/drivers/gpu/drm/xe/xe_oa.c @@ -969,7 +969,7 @@ static void xe_oa_config_cb(struct dma_fence *fence, st= ruct dma_fence_cb *cb) struct xe_oa_fence *ofence =3D container_of(cb, typeof(*ofence), cb); =20 INIT_DELAYED_WORK(&ofence->work, xe_oa_fence_work_fn); - queue_delayed_work(system_unbound_wq, &ofence->work, + queue_delayed_work(system_dfl_wq, &ofence->work, usecs_to_jiffies(NOA_PROGRAM_ADDITIONAL_DELAY_US)); dma_fence_put(fence); } diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c index 293b92ed2fdd..e6cfa5dc7f62 100644 --- a/drivers/gpu/drm/xe/xe_vm.c +++ b/drivers/gpu/drm/xe/xe_vm.c @@ -1112,7 +1112,7 @@ static void vma_destroy_cb(struct dma_fence *fence, struct xe_vma *vma =3D container_of(cb, struct xe_vma, destroy_cb); =20 INIT_WORK(&vma->destroy_work, vma_destroy_work_func); - queue_work(system_unbound_wq, &vma->destroy_work); + queue_work(system_dfl_wq, &vma->destroy_work); } =20 static void xe_vma_destroy(struct xe_vma *vma, struct dma_fence *fence) @@ -1894,7 +1894,7 @@ static void xe_vm_free(struct drm_gpuvm *gpuvm) struct xe_vm *vm =3D container_of(gpuvm, struct xe_vm, gpuvm); =20 /* To destroy the VM we need to be able to sleep */ - queue_work(system_unbound_wq, &vm->destroy_work); + queue_work(system_dfl_wq, &vm->destroy_work); } =20 struct xe_vm *xe_vm_lookup(struct xe_file *xef, u32 id) --=20 2.52.0 From nobody Sun Feb 8 03:57:25 2026 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE7F23596FF for ; Mon, 2 Feb 2026 10:38:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770028691; cv=none; b=NduwtJAYXUEMGh4oSZF1/preMbvvzsr1qIErI2e7VWPI3r9FUGhbElRTlsqa3Rqlk6pkvWj6EFr2wX3Zz0G9vgyJDNlw5vfG891MPkxWXj6Hv1z4qBh3B8GNugoXP5fayHOFBHBX7GOOpX5TW4nqzArN7GBEL6MBYIjXQ4dVHxs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770028691; c=relaxed/simple; bh=W9Z7ZKxv7XFCr5JlGFwi9QuYPjU2gm2nkxne4j9yd88=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pC6ss/zP1F0POJme87gareKt+JCzrwueBe3R95dtGDldl4tTAoiRliA5rMei4D8DPrhm5uRzsZtg96E8BLo1gzbUSzS0K/MNO6kvO5GD+pl6uJmV/E0CryUqkPPih4lJiPsTdHFJUc8sZ8L8MNCpWrVSGmmya3Dcmxa59PrAgAg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=acMmpigl; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="acMmpigl" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-48039fdc8aeso25249545e9.3 for ; Mon, 02 Feb 2026 02:38:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1770028688; x=1770633488; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=z1Zr9CZPjcDp+rU0IFgfIbOKfXeqeyWHk38cKV69c90=; b=acMmpigl594aQoyaOz4abD41CpEiWuH5jaaT2SuHNjLc9WUJGhope+gq4ordk9n5uJ Lju5qW9VHKlBKrtr/hVmzF6J8d3jKv/T3IYK/hGClcvktu7qdCLO1kbJdmY3m15zPUlz OiuU1uFyJN4jpV+CQtxf9Y+7Dh0bTDOws/Nulegn7nK2ZW7aRaBVMdFQBNN5B/+611iM CTrzFu+e20BlXExbkWfN/6m//CixkPs+C0xQL6j5uNLfkXbBLqL7fpig+fM0jDgnreP5 q4xmkYs2OVRY8gdFK9XX7AXI5R62oNwKwtA9n7TqN5McJ1MD+lYodtocGFHNAG4okGau kpQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770028688; x=1770633488; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=z1Zr9CZPjcDp+rU0IFgfIbOKfXeqeyWHk38cKV69c90=; b=o1UhYRb+x1TUdny7xWpIFN9k54/sWym8N5vdaGlqWWDng0i8VMr54WLTsO7e+vSqpF biZyNjkb/so3alZhhnOPvQJMk4XqH7/3fTJILjrehkX8dhDXlwKHCzcW27BNSTlRdDt3 rL36/+w/Ejy0Z1bP9Pri9HHQXISgf+zvqVJnN/lLaSsb2QNbuCvHPNVl0CzvS6ONjrkz pATpWmRLB9azYfEAWxQy3XMatUxfSHZttztVOm3WvZ0M9q8ZVvdaRnkOIlYK7Q5qUV7K Y9Y4Db3Mw0twP0PTBxBe3bGLyW4sD6oNb1/XZMg1XoVSkZM8swdBUQNmsVQVsa7r7mXr MeXg== X-Gm-Message-State: AOJu0YyvoWtqkvFoa+yUFns4O1y2NW106TbtgYvtTbBfyez78S2SZ3Vj QIIR4O4PIV2mvBBjejxMEdxExkbOXEITCgo2U0f35AcTbgpxY5NKm8CMtaAG3xN5UL1XWWxWHpH cazfg X-Gm-Gg: AZuq6aJMj4FUHvmzKPx39evusgBLLbndfqOrTxK6p4ZrJa3W02drQHcIekyCNyc/Gvt o7Xr/mzc8DkWze309xH7xi4ygWQ3yYyhlkxFDITifjRchYLLBqCIRzeqhfmVwoqX2nvnH8JtxIT MikfNqdv3q8qD4FxEIlDgO/Qj8x2eUKdTXQNkAeYaB4SM86Vtz/u1ZTki85/T1TRQdHAu9yBEAP nfv00dK8OuLqzYcFmLw74HWkwW1CzDYpnYIhVknfCXYm+IwJebW2xZ414yLE94hjCzG3uVzay/6 3rl6KnC+uAuWV4mYlqRbVxN2ez+wIUdoe3Jm2GZM+pkFD/fFq5lhCrICgm/Vr07KbMHGkaSFA8B zXzBprqgooVjTuC1ZJwieMn8ctpUVskPpv1IsuEY2YxbpyuO+pnuFS/2mfANwL0KuFq3eMHdbut inGhfM+lktRZz3gA== X-Received: by 2002:a05:600c:3148:b0:480:1e9e:f9b with SMTP id 5b1f17b1804b1-482db45d7eemr147372575e9.16.1770028688023; Mon, 02 Feb 2026 02:38:08 -0800 (PST) Received: from linux ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-435e1354d43sm47020132f8f.43.2026.02.02.02.38.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Feb 2026 02:38:07 -0800 (PST) From: Marco Crivellari To: linux-kernel@vger.kernel.org, intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Thomas Hellstrom , Rodrigo Vivi , David Airlie , Simona Vetter Subject: [PATCH v4 2/2] drm/xe: add WQ_PERCPU to alloc_workqueue users Date: Mon, 2 Feb 2026 11:37:56 +0100 Message-ID: <20260202103756.62138-3-marco.crivellari@suse.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260202103756.62138-1-marco.crivellari@suse.com> References: <20260202103756.62138-1-marco.crivellari@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This continues the effort to refactor workqueue APIs, which began with the introduction of new workqueues and a new alloc_workqueue flag in: commit 128ea9f6ccfb ("workqueue: Add system_percpu_wq and system_dfl_wq") commit 930c2ea566af ("workqueue: Add new WQ_PERCPU flag") The refactoring is going to alter the default behavior of alloc_workqueue() to be unbound by default. With the introduction of the WQ_PERCPU flag (equivalent to !WQ_UNBOUND), any alloc_workqueue() caller that doesn=E2=80=99t explicitly specify WQ_UNB= OUND must now use WQ_PERCPU. For more details see the Link tag below. In order to keep alloc_workqueue() behavior identical, explicitly request WQ_PERCPU. Link: https://lore.kernel.org/all/20250221112 Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/xe/xe_device.c | 4 ++-- drivers/gpu/drm/xe/xe_ggtt.c | 2 +- drivers/gpu/drm/xe/xe_hw_engine_group.c | 3 ++- drivers/gpu/drm/xe/xe_sriov.c | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c index 9cf82bde36c4..9e5fb0d4b8e7 100644 --- a/drivers/gpu/drm/xe/xe_device.c +++ b/drivers/gpu/drm/xe/xe_device.c @@ -508,8 +508,8 @@ struct xe_device *xe_device_create(struct pci_dev *pdev, xe->preempt_fence_wq =3D alloc_ordered_workqueue("xe-preempt-fence-wq", WQ_MEM_RECLAIM); xe->ordered_wq =3D alloc_ordered_workqueue("xe-ordered-wq", 0); - xe->unordered_wq =3D alloc_workqueue("xe-unordered-wq", 0, 0); - xe->destroy_wq =3D alloc_workqueue("xe-destroy-wq", 0, 0); + xe->unordered_wq =3D alloc_workqueue("xe-unordered-wq", WQ_PERCPU, 0); + xe->destroy_wq =3D alloc_workqueue("xe-destroy-wq", WQ_PERCPU, 0); if (!xe->ordered_wq || !xe->unordered_wq || !xe->preempt_fence_wq || !xe->destroy_wq) { /* diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c index 60665ad1415b..8b9d7c0bbe90 100644 --- a/drivers/gpu/drm/xe/xe_ggtt.c +++ b/drivers/gpu/drm/xe/xe_ggtt.c @@ -367,7 +367,7 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt) else ggtt->pt_ops =3D &xelp_pt_ops; =20 - ggtt->wq =3D alloc_workqueue("xe-ggtt-wq", WQ_MEM_RECLAIM, 0); + ggtt->wq =3D alloc_workqueue("xe-ggtt-wq", WQ_MEM_RECLAIM | WQ_PERCPU, 0); if (!ggtt->wq) return -ENOMEM; =20 diff --git a/drivers/gpu/drm/xe/xe_hw_engine_group.c b/drivers/gpu/drm/xe/x= e_hw_engine_group.c index 2ef33dfbe3a2..4c2b113364d3 100644 --- a/drivers/gpu/drm/xe/xe_hw_engine_group.c +++ b/drivers/gpu/drm/xe/xe_hw_engine_group.c @@ -51,7 +51,8 @@ hw_engine_group_alloc(struct xe_device *xe) if (!group) return ERR_PTR(-ENOMEM); =20 - group->resume_wq =3D alloc_workqueue("xe-resume-lr-jobs-wq", 0, 0); + group->resume_wq =3D alloc_workqueue("xe-resume-lr-jobs-wq", WQ_PERCPU, + 0); if (!group->resume_wq) return ERR_PTR(-ENOMEM); =20 diff --git a/drivers/gpu/drm/xe/xe_sriov.c b/drivers/gpu/drm/xe/xe_sriov.c index ea411944609b..f3835867fce5 100644 --- a/drivers/gpu/drm/xe/xe_sriov.c +++ b/drivers/gpu/drm/xe/xe_sriov.c @@ -120,7 +120,7 @@ int xe_sriov_init(struct xe_device *xe) xe_sriov_vf_init_early(xe); =20 xe_assert(xe, !xe->sriov.wq); - xe->sriov.wq =3D alloc_workqueue("xe-sriov-wq", 0, 0); + xe->sriov.wq =3D alloc_workqueue("xe-sriov-wq", WQ_PERCPU, 0); if (!xe->sriov.wq) return -ENOMEM; =20 --=20 2.52.0