From nobody Fri Jun 12 14:18:14 2026 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 95C1F386C31 for ; Thu, 14 May 2026 10:38:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778755109; cv=none; b=dNYZ4dciPVUnT4+aKZVdkIuOz0XbVZL5TgQwflmXdJqPLkghfgZqVxAQycaJlDqgHbfFt9V6923Jf/od5FNf2y1FJ9jQi431zTu/IaWu1L8/Q+K9WO2P/0IPZKuP1QOmF8VB25ue1DyB+tC6ntemhWKn18h2+ySxQ/zCwucY9Nw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778755109; c=relaxed/simple; bh=zcr8iu4aCV/Kvujot1QBSAemgiJnUvOjTSRSr+RU6qQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=L5DJ9Rl/r98mkLm+/Yv5yg0bCNvztD7WMxc0tJn+ACxQ8wmAMydQTYppK7sdwxwDD865Pqengv9dGJ/MjiHjzv8gcUGlbWHSUri+pL5rThLyAzobB5xMGOIK9wDcluUleZhO0AsuFjf9gkzYQElo1o2SxcSiDWZ4dZfHxfwDY8M= 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=bNo0ptwd; arc=none smtp.client-ip=209.85.128.44 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="bNo0ptwd" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-48d146705b4so92843555e9.3 for ; Thu, 14 May 2026 03:38:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1778755106; x=1779359906; 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=T8DzazZTLe3LM7etn2uuEKbASQrBr9SpY+ktz6nHGRc=; b=bNo0ptwdMW1h8HFZRmV4nvjnu580Ro6q4ztsJCqukQfIEOH7UrbQTxfgqqvl8yUPLu 6CgdfyKmNZE/YD5HIgzTM3cr56NbQuTK2mH9ux8z4yP/rFoaaY3E5/8N8zwsd74vaF4f clWAjKSprxBV2DGaZv5rJh7PJMT6LOk1mYXSMbT0JlmWSwmlTbKuN0Ufnkxm/8PCyxGI 6r5U1hlGYgATAHwT+A0X8LCNQTeMmeBuJREu3mFnf2b2QbcBh34PLHgcmAhGB0bRdxdb QOhInljxdNFUHn+NtE99IbpsRGbT9jPgFJ7TCOAvuiyELrAWU4gLvKQ23xEFgmGs2PAG MK1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778755106; x=1779359906; 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=T8DzazZTLe3LM7etn2uuEKbASQrBr9SpY+ktz6nHGRc=; b=kFleHfIWGOy6mBPnXi0w4n4wiOocdPUyUbL0TwJXN+1enysJCfYfyMqkgkwk5mf+NU pnJw+hpxw9WmbUFB/Q5rbfGRNGqDcG0fJr55SL8bR9A9j2etKg8onkQi2FNtEapVC0Pl bV+q3YabdM8gK6aqqheLi8kHR/3pIYakpHeW1fY7abIoDs2PNy9DoW6PL7lB6mz4lWBI tkAQcRuHcDkU3bicFUG9uEX6kCC4m7HprDRQJ3kqkKSDFLxzMOnHXdBCZZbQzID6e9gd l90+3i/wcTOQLNXJODoFFvOoxAfUyRZQ7dtHpyMyLXejnPVRVhyMPAiVL1HjPszD+k+2 KooQ== X-Gm-Message-State: AOJu0Ywgz6Bq1NHK6rUFyzR5z1rtJ+KRgCJ6rxTV3XLIT/wEPIM5mnVs 3QViMHOMO5qR4sVrD4PeLyet06v9vJNXjuSntzLw3RNFry9dIP/OvhPGkZBRmgFUIfxTvIbMihW HQP/zS4M= X-Gm-Gg: Acq92OGr9YPtGA94LrRlDAfSvwiAv8b6YEPehpII0eVQWh8S7NtKUL/fzJSgGnj28OL QrWCuOi0xp6QnSSNwrOeGiQvdUszbETETfez9ICOzOoYc87VZAYSGiXv53HI3MZN+xT5ihuwKLx 56EHDHaHYpJzAuxzRSkwkgQVn9P6WSX9hoABIMoJ6smnA74XwuT8zAfhZ848e2yNkj1deZYK5Xb nFyjHZe7dLYTRmNKYEYvvn5M/AzDB2YJcSEouzeHHsX9nWbjsFsjFTtTQyG1MpsgPbDRdvv3tvC 5lOqLJUrA87eb4fCgdy9H4Lss+6hUMgJYHPbp3tiCOGoge/l6lB8tXylE4uTnl6whgD3VAx7j73 PkqkNyJhMJUS4kMzLVjqRCVqzuaDJvu42uhEXrOi35KMFMcfke194cP00dWqVyhKXlfXdbn3UcM xreT9RTqaQ/7Vde4ksmF9ieWhdYwFg8SN6H/5NHlMFBUXHAa8= X-Received: by 2002:a05:600c:6303:b0:48a:592c:e632 with SMTP id 5b1f17b1804b1-48fc9a2b921mr113942445e9.16.1778755105775; Thu, 14 May 2026 03:38:25 -0700 (PDT) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48fd64e2132sm57788365e9.15.2026.05.14.03.38.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2026 03:38:25 -0700 (PDT) From: Marco Crivellari To: linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Alex Deucher , Christian Konig , David Airlie , Simona Vetter , Ray Wu , Harry Wentland , Leo Li , Rodrigo Siqueira Subject: [PATCH 1/2] drm/amd/display: Replace use of system_unbound_wq with system_dfl_wq Date: Thu, 14 May 2026 12:38:08 +0200 Message-ID: <20260514103815.190628-2-marco.crivellari@suse.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260514103815.190628-1-marco.crivellari@suse.com> References: <20260514103815.190628-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. Cc: Ray Wu Cc: Harry Wentland Cc: Leo Li Cc: Rodrigo Siqueira Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_ism.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_ism.c b/driver= s/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_ism.c index a64e95860e99..e83f7f71e242 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_ism.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_ism.c @@ -383,7 +383,7 @@ static enum amdgpu_dm_ism_event dm_ism_dispatch_power_s= tate( } =20 /* Schedule worker */ - mod_delayed_work(system_unbound_wq, &ism->delayed_work, + mod_delayed_work(system_dfl_wq, &ism->delayed_work, nsecs_to_jiffies(delay_ns)); =20 break; @@ -399,14 +399,14 @@ static enum amdgpu_dm_ism_event dm_ism_dispatch_power= _state( * have a negative power impact. Skip idle allow here, * and let the sso_delayed_work handle it. */ - mod_delayed_work(system_unbound_wq, + mod_delayed_work(system_dfl_wq, &ism->sso_delayed_work, nsecs_to_jiffies(sso_delay_ns)); } else { /* Enable idle optimization without SSO */ dm_ism_commit_idle_optimization_state( ism, acrtc_state->stream, false, false); - mod_delayed_work(system_unbound_wq, + mod_delayed_work(system_dfl_wq, &ism->sso_delayed_work, nsecs_to_jiffies(sso_delay_ns)); } --=20 2.54.0 From nobody Fri Jun 12 14:18:14 2026 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 767FD3876C8 for ; Thu, 14 May 2026 10:38:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778755111; cv=none; b=dzrb6ptq9ywkYSDrysPXYGIDj2iCMUqAkdICNOu8npS00S13Oe0mH3IGH4KN+k4rMI/Klz2B4OR8ZsreY2QgkvChUMsW/Ep4wAU0H+xk2hrSW7WHj7sXE6iGWpQc8MNEMppBBZcMbLJkxk3oMXi5t5xFEWdQgidV1RKpCsZQBqs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778755111; c=relaxed/simple; bh=KTGyWJnpBtFCctLQP3jytTl388cT8pUzt97Ctk4u45M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LjGC5+2u83FNK+nUB4yZitHvJIup3Xx2MvhVTTlaHTRyox02OQElHsLdhATtWPsxGKOKlpqtfOi0f8uYRBGuxCt/jcISppUGWHbOh9l7oZ2HKEbPa31k+V/LskMR3VddkM0tFAG4lkbflLC4hNG6AwBTQavxIH3cMTYwzqPbaGQ= 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=SoZNs3ja; arc=none smtp.client-ip=209.85.128.44 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="SoZNs3ja" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-48a563e4ef7so70994255e9.0 for ; Thu, 14 May 2026 03:38:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1778755107; x=1779359907; 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=nitUXTwczWASa+N4nk3OM4knbU1wDNvKAJHSRzcwWjc=; b=SoZNs3jal00dh0gO9X9glyvOo0kF38qN8XDrcJ6XHu4ZzO5KVv9q93Zfb0gG8rKWMn zbqJh+IXGiHVgVQyW/hOwcJTYVv8DU7kZk4/+jpljlWzhvJvD1yO1dLdTmPqprZiTkAT /9SoOrP/1s3HbtLpaIPNUZu38n3mVnLfsg75O2sgmVXTm6LBhFeRN0UmXj0yonLEfC5O Vimsss+0U2DTFnnfZk3pueIqZervXrcLpqnrG34mFHnRy7NRMNrdHI0KXbu10XRJ05+f twB856rWhHH7j40/C6+KHfd9Wy3+nknVTfgCw/aGsIyulRjaQEsv9TmFqLMV2ECw70yw pcdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778755107; x=1779359907; 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=nitUXTwczWASa+N4nk3OM4knbU1wDNvKAJHSRzcwWjc=; b=mh9ecBqrDm/xwsHgH34u6x8scf7Tl/qjEJBq/qHKbR91Ww1ty/8BnEEVvl53famRGL Ck5Ulr56o0/nK0zmtmRQ87JHbNMaJUwZijcn8CZKU930tIjP75qCrfEnwIGSvWd73HuY TKaWMos/mE4C84GIho+mBeLYbZfRau919nQw/OPRyZJF/w16quByuQUhaPe3K6NBm/1e Tq7zuR1zfD5kbOvFRl21/KrS04BaVELdUxO8GztRY2mCuk4PgjfLyrRQRngyur5rcYp6 Dan4s6bZ8S3fIxJKvTNDmr+AStG+nlXdKVwCQxHpPGxm+6DfY0PzUAzehVWSH80OJMnf caIA== X-Gm-Message-State: AOJu0YwUARDUjOGtHzmVtBlbctFVCe2cXBFgB5DKIDrvsmy0FfeSzrFj UUrkker76JcgR7m7uQSxh4bdr6yLEJzahQ3Fb9SXM/dEGUsWws1emR4SVPblheFhYqtUHvgjDn2 bQzeryOc= X-Gm-Gg: Acq92OE7VtNgvFku0QCQnIyieS7JuPqQaDDAosErePjFdaXUvEViV6LDBDycvDmqlwm BF6GTRWBMH4sx8W8j7YNnIfXKB76F11uFnH/sW72itVxeGSe/aqahfyozi47eIrUmjQa8qyya3W cPJNFA+zfn5GJlsIZQX7/vwIH2Jd5W30ERwIaQM2fNgtyw6htz8gvx/pi9XDfE9rIqyuxPPlf5T u7rrX9MNRDvYarqayHky+w3OPqe12GGpsVzV8cT8LYYXxQjE18ovj3cV4CFxa7JT/MmP7bwipMe 3j/b4kycnCcUCDumVeF5ZIpkn65DrV3I57dOJRGkv32bEZ9INS5DFrglixYXLrpsHnRr51VoaQN DU/fzBr+q/Vb3ZC9Uj1YTMC57yso3YbngoJLvovVKtIVszrlGL230+uiUzyP3b30G1qbP7tH1UQ pYbBXeC/SzmFz7AceuSh2KmQxLR1huSdO9yp2gyZjISnWQbSc2AItCs3xfaQ== X-Received: by 2002:a05:600c:1990:b0:48e:75fd:9f9e with SMTP id 5b1f17b1804b1-48fc9a3e58fmr99666465e9.20.1778755106750; Thu, 14 May 2026 03:38:26 -0700 (PDT) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48fd64e2132sm57788365e9.15.2026.05.14.03.38.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2026 03:38:26 -0700 (PDT) From: Marco Crivellari To: linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Alex Deucher , Christian Konig , David Airlie , Simona Vetter Subject: [PATCH 2/2] drm/amdgpu: Replace use of system_unbound_wq with system_dfl_wq Date: Thu, 14 May 2026 12:38:09 +0200 Message-ID: <20260514103815.190628-3-marco.crivellari@suse.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260514103815.190628-1-marco.crivellari@suse.com> References: <20260514103815.190628-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 --- drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c b/drivers/gpu= /drm/amd/amdgpu/amdgpu_dev_coredump.c index d386bc775d03..0811593fca7f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c @@ -586,7 +586,7 @@ void amdgpu_coredump(struct amdgpu_device *adev, bool s= kip_vram_check, */ adev->coredump =3D coredump; /* Kick off coredump formatting to a worker thread. */ - queue_work(system_unbound_wq, &adev->coredump_work); + queue_work(system_dfl_wq, &adev->coredump_work); =20 drm_info(dev, "AMDGPU device coredump file has been created\n"); drm_info(dev, "Check your /sys/class/drm/card%d/device/devcoredump/data\n= ", --=20 2.54.0