Netdev List
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: roland.waltersson@netinsight.net
Cc: romieu@fr.zoreil.com, netdev@vger.kernel.org,
	andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com, kai.heng.feng@canonical.com,
	rafael.j.wysocki@intel.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net] net: via-velocity: Stop the device on shutdown
Date: Mon, 23 Nov 2026 13:07:29 +0000	[thread overview]
Message-ID: <179543924928.3135.11097619488439916412@kernel.org> (raw)
In-Reply-To: <IA0PR17MB668711363A5BE04D1BC3C76B9E792@IA0PR17MB6687.namprd17.prod.outlook.com>

Thank you for your contribution! Sashiko AI review found 3 potential
issue(s) to consider.

Critical: 0 · High: 0 · Medium: 1 · Low: 2

If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).

- [Medium] The patch adds a .shutdown hook to velocity_pci_driver only.
- [Low] The commit message carries a Fixes: tag for 38f34dba806a ("PM:
  ACPI: reboot: Reinstate S5 for reboot").
- [Low] The commit author is "Roland Waltersson
  <roland.waltersson@netinsight.net>", but the only Signed-off-by…

--

net: via-velocity: Stop the device on shutdown

This commit adds a PCI .shutdown hook to the via-velocity driver. The hook
detaches and closes the interface, then disables the PCI device, so the
chip stops DMAing into its RX rings and raising interrupts after
device_shutdown(). The commit message links an occasional reboot hang on a
congatec conga-EAF board to the ACPI S5 preparation, which commit
38f34dba806a reinstated on reboot.

> and the board is never reset. Not running the S5 preparation on reboot
> avoids the hang.

[ ... ]

> Fixes: 38f34dba806a ("PM: ACPI: reboot: Reinstate S5 for reboot")

[Severity: Low]
Was the new velocity_pci_shutdown() hook tested on the conga-EAF board?
Does the hang go away with it?

The message shows that skipping the S5 preparation avoids the hang. It
does not say whether stopping the velocity chip has the same effect.

It also does not explain how a chip that is still bus mastering, or still
has INTx asserted, would hang during _PTS(5) or the GPE disable.

The cited tg3 commit 2ca1c94ce0b6 fixed a different symptom (AER on
reboot).

The Fixes: tag makes this a stable candidate. Could the changelog say
whether the fix was checked against this hang?

> Signed-off-by: Roland Waltersson <rolwal@netinsight.net>

[Severity: Low]
This isn't a bug, but the Signed-off-by address (rolwal@netinsight.net)
does not match the author address (roland.waltersson@netinsight.net).
checkpatch reports this as a From:/Signed-off-by: email address mismatch.

> diff --git a/drivers/net/ethernet/via/via-velocity.c b/drivers/net/ethernet/via/via-velocity.c
> index 6d7b6f3b46339..3daf7a8dd06eb 100644
> --- a/drivers/net/ethernet/via/via-velocity.c
> +++ b/drivers/net/ethernet/via/via-velocity.c

[ ... ]

> @@ -3241,6 +3267,7 @@ static struct pci_driver velocity_pci_driver = {
>  	.id_table	= velocity_pci_id_table,
>  	.probe		= velocity_pci_probe,
>  	.remove		= velocity_pci_remove,
> +	.shutdown	= velocity_pci_shutdown,
>  	.driver = {
>  		.pm = &velocity_pm_ops,
>  	},

[Severity: Medium]
Only velocity_pci_driver gets a .shutdown hook here. Does
velocity_platform_driver need one as well?

The platform driver binds the same VT6110 MAC through the
"via,velocity-vt6110" compatible. It uses the same velocity_probe() core:

velocity_platform_probe()
    return velocity_probe(&pdev->dev, irq, info, BUS_PLATFORM);

Its registration still has no .shutdown:

static struct platform_driver velocity_platform_driver = {
	.probe		= velocity_platform_probe,
	.remove		= velocity_platform_remove,
	.driver = {
		...
	},
};

The commit message describes the problem without naming a bus: "on
reboot, power off or kexec the chip is left running after
device_shutdown(): it keeps receiving packets into its RX rings by DMA and
raising its interrupt."

On a platform-bound velocity with the interface up, the chip would keep
DMAing into its RX rings and raising its IRQ after device_shutdown(). With
kexec, that DMA can land in memory the new kernel has reused.

Apart from pci_disable_device(), velocity_pci_shutdown() does nothing
bus-specific. Could that part go into a shared helper that a platform
.shutdown hook also calls?

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/IA0PR17MB668711363A5BE04D1BC3C76B9E792%40IA0PR17MB6687.namprd17.prod.outlook.com

      reply	other threads:[~2026-11-23 13:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 12:47 [PATCH net] net: via-velocity: Stop the device on shutdown Roland Waltersson
2026-11-23 13:07 ` netdev-bot+sashiko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179543924928.3135.11097619488439916412@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kai.heng.feng@canonical.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rafael.j.wysocki@intel.com \
    --cc=roland.waltersson@netinsight.net \
    --cc=romieu@fr.zoreil.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox