From nobody Sun Feb 8 05:53:48 2026 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (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 A878D14F9FB for ; Wed, 24 Dec 2025 16:00:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766592036; cv=none; b=vCQ3rZZtIjz91j1/19Xf3HRPTHOOrAm6T8xUr3I8paXD4j74S0eZm5vM+96Jy/7Iz2nG/lSMBJPmEa/NfI2y5C3waAzLWg6jAW9mNF1jg9W7KDv0gcOP0CdELej+ZOOAJxP1Tg00lMyMbe72+keNgLO/QvXfR2N0AgKXQ7zMnSE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766592036; c=relaxed/simple; bh=0g+oyuVClV0oaXUIXfw72Proxc6GwMxQljG8M64oWlw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FIvG+i+3mQXeDzCfwLA7ByPWEPWUEcTlQ929EAuQWFh/mkFb3phi5V6/qu9iaWvwDyCFu78mClii3d/etGVjiK6/ytb+8M26DLW5elx6DvvZmqFlIzBBc5uV0BAlmq94F7l0Vl1hIaQwFrsQXeLGeoij+EGg5sx8IrE5LBCrOIw= 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=ZhEn0Ewk; arc=none smtp.client-ip=209.85.221.43 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="ZhEn0Ewk" Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-42b3b0d76fcso3633176f8f.3 for ; Wed, 24 Dec 2025 08:00:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1766592033; x=1767196833; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=WPLV3wvL9NAE3UtsIE23YG8DGQ+PHmmnrJgd3EHtL0c=; b=ZhEn0EwkEfBU+RtWYPSU31mNEKNh9qke7PS3M1bWC+pFV/7cNNGgh08tSVrupoxmMt AVB9VGgVKePANXr9vTgvM0KuAeHqyYsGwh6CZE0BZan/lmiYQBeRY/TPw1zOx3K/ZtNR Pp7yMBC3Z8Rm+IL6zGcZtYyv1IFxecdrbT7KMGjQqCeusTqksA3yAoQXJlKGbjkSs+yw ei/2fjxFIRGx+L4XWWWALQVtF6PeggwMZoqYm7WyFQ/Yvj0c+63KRw+cS8WD/IS/4gmf 1s8mKQrgS0XDkuPEgFFtkxmCx1Djpw6oLcp+CLO3Jg/cn2ui3IWEHys+U0xZrdAe9cUo kU1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766592033; x=1767196833; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WPLV3wvL9NAE3UtsIE23YG8DGQ+PHmmnrJgd3EHtL0c=; b=P9WIRWtQ9jZfciEpnEHAwH/+IUUgyoTaHTOEKZyjdqxhznpt0C3EcoPgKayi+4DZm2 wRUKu/IXjLNWryKine4fXkouhC/U7d3TMFMLt41m43BbeNmRaz91w81FLdv6xWOWxWbn lNPkEYd1QrWrBK2jemZlNRNAme3rcDSW4rpBeEBMKKnNLo9pX7zzFaSWB3yUYRpd35VY L99ZS5OV3bmlFBUt6zVHZVJ0c3jEvB9ptmPkKJa1bYJMwH/yoR7+KE6sYQbELlxH3KHo FTxBqkkiiZIOb0zkaCX9/PHMWTDSY6jlWGJKcJTjqom8Gvzxmf88lQzcBNda/G4nHVnz i3DQ== X-Gm-Message-State: AOJu0Yxt23oiuJdwHKrcATc51XFZ4xq/YPmx3Mxpo7n6O5c7RXEyoyKx yrImBPyYuXNz9DWd5hvNGdm+zL55dLD9do78MwE8wsVOFeWRxXHYiP2Ujeq40ENN+BhSG3yVDrS OToLM X-Gm-Gg: AY/fxX5Vl5YpI/f6t2JTtWh/Nh2S+5WiEzk/FjprorrSqQPXEEOueoBNDIKLxULeI8o 0JEUx7q15DfkonJRv//3Y7VHT+cJZTs9qzGD+K4HTweat+nCL0s8iwua+YpeEsCbDxWSTXu4cOO l11H7M8WTkTM26J7F31MF/hoppctd9+zGOhVnrRjmdsvYi7phmXkgsiIuhvHZu5c42NiJdy9CzS U5WhfQSt3np7y32dIoHTX6XjfHCO4JrtO/eMvzsUpbkcn7/DmG4MOuaGFDvOXSS7TZelfRp6xa6 +MG7lRPY1yF1nQVntBRoXutEJlN3LVkmyPbnU6nVfRpwKmh/Pj+xbYusH9lhBJvWQfBez1E0X5O HvgfFTKwJkZiyWzALFl1EOUl/tW+w2hSqO0MhUQNWWFe4T8GXkVFb3MEFOMF9H85Y9GABKrporj 172V4Kr0X07WLHJ0eBfFWCUesbOumCBYovjVw= X-Google-Smtp-Source: AGHT+IEtPcOSt2db6458wPTTR3gSirXBDv7upskcjRAWheyox8jLUmzLOEWtqp404CpxLRDdSHI9EQ== X-Received: by 2002:a05:6000:2308:b0:430:ff0c:35f9 with SMTP id ffacd0b85a97d-4324e50d989mr18080262f8f.48.1766592032731; Wed, 24 Dec 2025 08:00:32 -0800 (PST) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4324ea1aee5sm35553566f8f.4.2025.12.24.08.00.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Dec 2025 08:00:32 -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 , Lucas De Marchi , Thomas Hellstrom , Rodrigo Vivi , David Airlie , Simona Vetter Subject: [PATCH] drm/xe: Replace use of system_wq with system_percpu_wq Date: Wed, 24 Dec 2025 17:00:26 +0100 Message-ID: <20251224160026.124106-1-marco.crivellari@suse.com> X-Mailer: git-send-email 2.52.0 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 after a careful review and conversion of each individ= ual case, 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. Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- drivers/gpu/drm/xe/xe_tlb_inval.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_tlb_inval.c b/drivers/gpu/drm/xe/xe_tlb_= inval.c index 918a59e686ea..b2cf6e17fbc5 100644 --- a/drivers/gpu/drm/xe/xe_tlb_inval.c +++ b/drivers/gpu/drm/xe/xe_tlb_inval.c @@ -94,7 +94,7 @@ static void xe_tlb_inval_fence_timeout(struct work_struct= *work) xe_tlb_inval_fence_signal(fence); } if (!list_empty(&tlb_inval->pending_fences)) - queue_delayed_work(system_wq, &tlb_inval->fence_tdr, + queue_delayed_work(system_percpu_wq, &tlb_inval->fence_tdr, timeout_delay); spin_unlock_irq(&tlb_inval->pending_lock); } @@ -226,7 +226,7 @@ static void xe_tlb_inval_fence_prep(struct xe_tlb_inval= _fence *fence) list_add_tail(&fence->link, &tlb_inval->pending_fences); =20 if (list_is_singular(&tlb_inval->pending_fences)) - queue_delayed_work(system_wq, &tlb_inval->fence_tdr, + queue_delayed_work(system_percpu_wq, &tlb_inval->fence_tdr, tlb_inval->ops->timeout_delay(tlb_inval)); spin_unlock_irq(&tlb_inval->pending_lock); =20 @@ -378,7 +378,7 @@ void xe_tlb_inval_done_handler(struct xe_tlb_inval *tlb= _inval, int seqno) } =20 if (!list_empty(&tlb_inval->pending_fences)) - mod_delayed_work(system_wq, + mod_delayed_work(system_percpu_wq, &tlb_inval->fence_tdr, tlb_inval->ops->timeout_delay(tlb_inval)); else --=20 2.52.0