From: netdev-bot+sashiko@kernel.org
To: nikhil.rao@amd.com
Cc: brett.creeley@amd.com, andrew+netdev@lunn.ch,
davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
pabeni@redhat.com, richardcochran@gmail.com,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
eric.joyner@amd.com, abhijit.gangurde@amd.com,
allen.hubbe@amd.com
Subject: Re: [PATCH net v2 1/5] ionic: fix devcmds racing the BAR unmap on PCI reset
Date: Sat, 05 Dec 2026 23:06:06 +0000 [thread overview]
Message-ID: <179651196647.3148.12451569579359333936@kernel.org> (raw)
In-Reply-To: <20261204-b4-pr60-v2-1-9e0b5408a68e@amd.com>
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] ionic: commit message omits ionic_vf_start() fix and misstates
callers
--
> diff --git a/drivers/net/ethernet/pensando/ionic/ionic_dev.c b/drivers/net/ethernet/pensando/ionic/ionic_dev.c
> --- a/drivers/net/ethernet/pensando/ionic/ionic_dev.c
> +++ b/drivers/net/ethernet/pensando/ionic/ionic_dev.c
> @@ -811,8 +813,10 @@ void ionic_vf_start(struct ionic *ionic)
> if (!(ionic->ident.dev.capabilities & cpu_to_le64(IONIC_DEV_CAP_VF_CTRL)))
> return;
>
> + mutex_lock(&ionic->dev_cmd_lock);
> ionic_dev_cmd_go(&ionic->idev, &cmd);
> ionic_dev_cmd_wait(ionic, DEVCMD_TIMEOUT);
> + mutex_unlock(&ionic->dev_cmd_lock);
> }
>
> /* LIF commands */
[Severity: Low]
The ionic_vf_start() hunk does more than apply the new rule. Before
this patch, ionic_vf_start() issued IONIC_CMD_VF_CTRL through
ionic_dev_cmd_go() and ionic_dev_cmd_wait() without dev_cmd_lock.
That let it interleave with any other devcmd, whether or not a reset
was in progress. This is a separate fix, and the commit message does
not mention it. Could you call it out in the changelog? Is the
existing Fixes: list right for it, or does it need its own tag?
The changelog also says the identify and port setup devcmds "run only
from probe and recovery". That is not quite accurate:
ionic_port_identify() is also called from ionic_link_status_check()
on link-up.
If I read it right, that path is still safe. It takes dev_cmd_lock,
and ionic_dev_teardown() destroys ionic->wq before ionic_clear_pci()
runs. Please have the changelog give that reasoning instead of
claiming these devcmds never run outside probe and recovery.
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261204-b4-pr60-v2-0-9e0b5408a68e%40amd.com
next prev parent reply other threads:[~2026-12-05 23:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 22:04 [PATCH net v2 0/5] ionic: fix register reads racing the BAR unmap on PCI reset Nikhil P. Rao
2026-12-04 22:04 ` [PATCH net v2 1/5] ionic: fix devcmds " Nikhil P. Rao
2026-12-05 23:06 ` netdev-bot+sashiko [this message]
2026-12-04 22:04 ` [PATCH net v2 2/5] ionic: fix device info register reads " Nikhil P. Rao
2026-12-04 22:04 ` [PATCH net v2 3/5] ionic: fix PHC " Nikhil P. Rao
2026-12-04 22:04 ` [PATCH net v2 4/5] ionic: fix ethtool coalesce updates racing a reset Nikhil P. Rao
2026-12-05 23:06 ` netdev-bot+sashiko
2026-12-04 22:04 ` [PATCH net v2 5/5] ionic: fix DIM work racing the queue teardown Nikhil P. Rao
2026-12-05 23:06 ` netdev-bot+sashiko
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=179651196647.3148.12451569579359333936@kernel.org \
--to=netdev-bot+sashiko@kernel.org \
--cc=abhijit.gangurde@amd.com \
--cc=allen.hubbe@amd.com \
--cc=andrew+netdev@lunn.ch \
--cc=brett.creeley@amd.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=eric.joyner@amd.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nikhil.rao@amd.com \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.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