Article View: linux.kernel.netdev
Article #2719Re: [PATCH net-next v4 3/6] net: ti: icssg-prueth: Move long delayed work on system_dfl_long_wq
From: netdev-bot+sashiko
Date: Tue, 13 Oct 2026 09:57
Date: Tue, 13 Oct 2026 09:57
89 lines
8928 bytes
8928 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The stats_work conversion is only half done because the SR1
driver variant was missed.
- [Low] The commit message is boilerplate copied from the delayed-work
conversions and does not describe this diff.
--
net: ti: icssg-prueth: Move long delayed work on system_dfl_long_wq
This patch changes the first queueing of emac->stats_work in
emac_ndo_open() from the per-CPU system_long_wq to the unbound
system_dfl_long_wq. The goal is to let the scheduler place the work.
> Currently the code enqueue work items using {queue|mod}_delayed_work(),
> using system_long_wq. This workqueue should be used when long works are
> expected and it is a per-cpu workqueue.
>
> The function(s) end up calling __queue_delayed_work(), which set a global
> timer that could fire anywhere, enqueuing the work where the timer fired.
[Severity: Low]
Does this description match the diff?
The only line changed is in emac_ndo_open() in icssg_prueth.c, and it
uses queue_work(), not {queue|mod}_delayed_work():
queue_work(system_dfl_long_wq, &emac->stats_work.work);
queue_work() is queue_work_on(WORK_CPU_UNBOUND, wq, work). It queues the
embedded work_struct right away. It arms no timer and does not go through
__queue_delayed_work().
The delayed re-arm that the message describes lives in
icssg_stats_work_handler() in icssg_stats.c. The companion patch
"net: ti: icssg-stats: Move long delayed work on system_dfl_long_wq"
converts that one.
Could the message describe the immediate first kick of stats_work instead,
and mention the companion patch?
> diff --git a/drivers/net/ethernet/ti/icssg/icssg_prueth.c b/drivers/net/ethernet/ti/icssg/icssg_prueth.c
> index 591be5c8056b4..0fba22c1046e9 100644
> --- a/drivers/net/ethernet/ti/icssg/icssg_prueth.c
> +++ b/drivers/net/ethernet/ti/icssg/icssg_prueth.c
> @@ -1100,7 +1100,7 @@ static int emac_ndo_open(struct net_device *ndev)
>
> prueth->emacs_initialized++;
>
> - queue_work(system_long_wq, &emac->stats_work.work);
> + queue_work(system_dfl_long_wq, &emac->stats_work.work);
[Severity: Low]
Should the SR1 variant of this driver get the same change?
emac_ndo_open() in drivers/net/ethernet/ti/icssg/icssg_prueth_sr1.c still
does this:
queue_work(system_long_wq, &emac->stats_work.work);
Both drivers set up stats_work with the same shared handler:
INIT_DELAYED_WORK(&emac->stats_work, icssg_stats_work_handler);
After the companion icssg-stats patch, icssg_stats_work_handler() re-arms
itself on the unbound workqueue:
queue_delayed_work(system_dfl_long_wq, &emac->stats_work,
msecs_to_jiffies((STATS_TIME_LIMIT_1G_MS * 1000) / emac->speed));
So on SR1 hardware, the first run after ndo_open goes to the per-CPU
system_long_wq. Every later run goes to system_dfl_long_wq.
The commit message reasoning ("the workqueue work doesn't rely on per-cpu
variables") applies to the SR1 call site too. Nothing else in the series
seems to convert it.
>
> return 0;
>
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261012095452.135828-1-marco.crivellari%40suse.com
Technical Details
Message-ID:
<179188543334.434549.2591392619037446016@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345523-linux-kernel-netdev=dewy.ruReferences:
<20261012095452.135828-4-marco.crivellari@suse.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345523-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v4 3/6] net: ti: icssg-prueth: Move long delayed work on system_dfl_long_wq Date: Tue, 13 Oct 2026 09:57:13 +0000 Organization: Usenet Network Message-ID: <179188543334.434549.2591392619037446016@kernel.org> References: <20261012095452.135828-4-marco.crivellari@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2023637"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:RoCWKe0UoVQbVtXiAXV1PFVaEBs= sha256:OS+UVjC5Phh1tdi5AUrHsX/unFCit1WgbU8lWZkLcss= sha1:C2dErvw9NDjS4ehyAX4hsQ2wklw= sha256:45/OKOMCJY7EDuqwHkhlLmoFHiaPNGWEBQAgRKF31wM= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 7C52310FDF6; Tue, 13 Oct 2026 13:24:07 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.34 X-Spam-Status: No, score=-1.34 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a5cTZTdgVjO8; Tue, 13 Oct 2026 13:24:04 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-345523-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 3E73910FDCA; Tue, 13 Oct 2026 13:23:56 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 015A9399A6; Tue, 13 Oct 2026 09:57:54 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 30ECB3F929A; Tue, 13 Oct 2026 09:57:16 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SUkGAmqp" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D18F33E6DE7; Tue, 13 Oct 2026 09:57:14 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791885436; cv=none; b=oNinB4LXC0IuuRFSZoo2QokV9l/Y80rljjPHYC2owiuvX6e2qDyKtuJ2VPy4iBJFhQv4gvaSRKIxqw90IOHKDMQkTaBZXLG2jkaOKghPoLfmWhkZGaCybIBsNozNGy6vEQ6A+UM54nVcxov+xs10XYp42fwfmhVRrdIi0GIQqMo= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791885436; c=relaxed/simple; bh=6TYElkl1vMwUo8ragwlZEazBoe8TG/eKKLf7zn241E8=; h=Subject:From:To:Cc:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=oelB5N4FVixD3XAR0gcPLFaoBbtHrTLzuVCFSEzE1aSs9hqgRGPFQHO4dfXhw0yotdl/G0p5bM9roQysTP+38LfCVdX5tzHU3ALESr/j/97hMkakmoJf3UjJnqbyIChBOXqQE0vk46qZ07TYmrfQY+G4tayLGkdT8Gnx6NLovAo= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SUkGAmqp; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C00971F000FF; Tue, 13 Oct 2026 09:57:13 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791885434; bh=T7aNwfsLUa94zkJPIVd3zM4XapiCDmPKjk2jNb3L81I=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=SUkGAmqp3aoA8ktn4n8Gsbp9VbnU1Fh8xO9f58NT3iKDAVnY8R/kV7KMU0j/opvcL q7lC5Zn45JjGiOaTOdl4deAzc1fX3EuPws9qc6/ZRK3iyLvmBCYzScddaNnpTA7jPs kohMfpp57vQ5xafz57XGHosdIWc4o5f06naKxWfvg70V431UfnRTFk2GAuUdhMnU0X PhXJKMe049iY+yXDIDPBymcwdxddiPzXgdk+vR4xzAAjNrltaTXXYgLsu6Tsqxss+l JAybER+rseRcQZRlH9hha8cssVmI6OfGmWEK1tClK7f7vMCQ0yFHgYZ+ObzNxpYnDK +hzQkWyZagSug== X-Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, tj@kernel.org, jiangshanlai@gmail.com, frederic@kernel.org, bigeasy@linutronix.de, mhocko@suse.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, enelsonmoore@gmail.com, linux-usb@vger.kernel.org X-In-Reply-To: <20261012095452.135828-4-marco.crivellari@suse.com> X-sashiko-severity: Low X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>