From: "Rao, Nikhil" <nikhirao@amd.com>
To: netdev-bot+sashiko@kernel.org, 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, abhijit.gangurde@amd.com, allen.hubbe@amd.com,
jgg@ziepe.ca, leon@kernel.org, jiri@resnulli.us,
horms@kernel.org, corbet@lwn.net, skhan@linuxfoundation.org,
rdunlap@infradead.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org,
linux-doc@vger.kernel.org, eric.joyner@amd.com,
ArunKumar.Prakash@amd.com
Subject: Re: [PATCH net-next v3 3/3] ionic: add devlink param for command timeout
Date: Mon, 23 Nov 2026 15:14:45 -0800 [thread overview]
Message-ID: <1120d8eb-023d-4fa1-823e-0f8d05b4d869@amd.com> (raw)
In-Reply-To: <179539559673.3135.12079878343644861835@kernel.org>
On 11/22/2026 4:59 PM, netdev-bot+sashiko@kernel.org wrote:
[...]
> Doesn't that leave the user unable to see or raise cmd_timeout until the
> next FW-up or PCI reset? That would happen on exactly the slow-firmware
> device this parameter is meant for. The -EOPNOTSUPP also hides the fact
> that the query itself failed.
Yes, a GETATTR failing at probe on firmware that supports it is rare
enough that I would rather not add a separate state for it.
> On the fw_up path, after an earlier query succeeded, the same failure
> leaves a stale positive value instead.
It is the value last read or set, which differs from the stored one only
if something other than this parameter changed it, such as a firmware
update across the reset versus probe where nothing has been read yet
> If the slow firmware still commits the NVM write, would
> ionic_dl_cmd_timeout_get() keep reporting the old cached value while the
> device holds the new one? The new value would then take effect without
> notice at the next probe or reset, when ionic_update_cmd_timeout() reads
> it again.
Yes, get reports the last value read or set rather than querying the
firmware,
as any user can call it and a query would hold the device command mailbox.
> Could a reset during that msleep() cause a NULL+offset MMIO write, or an
> access to unmapped I/O memory?
>
> The missing serialisation between reset teardown and dev_cmd users
> predates this patch.
Yes, this predates the patch and affects every dev_cmd user.
It will be fixed separately for net.
Thanks,
Nikhil
prev parent reply other threads:[~2026-11-23 23:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 0:32 [PATCH net-next v3 0/3] ionic: make the device command timeout configurable Nikhil P. Rao
2026-11-19 0:32 ` [PATCH net-next v3 1/3] ionic: make the command timeout per device Nikhil P. Rao
2026-11-19 0:32 ` [PATCH net-next v3 2/3] RDMA/ionic: Use the ionic command timeout for the admin queue Nikhil P. Rao
2026-11-23 0:59 ` netdev-bot+sashiko
2026-11-23 22:52 ` Rao, Nikhil
2026-11-19 0:32 ` [PATCH net-next v3 3/3] ionic: add devlink param for command timeout Nikhil P. Rao
2026-11-23 0:59 ` netdev-bot+sashiko
2026-11-23 23:14 ` Rao, Nikhil [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=1120d8eb-023d-4fa1-823e-0f8d05b4d869@amd.com \
--to=nikhirao@amd.com \
--cc=ArunKumar.Prakash@amd.com \
--cc=abhijit.gangurde@amd.com \
--cc=allen.hubbe@amd.com \
--cc=andrew+netdev@lunn.ch \
--cc=brett.creeley@amd.com \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=eric.joyner@amd.com \
--cc=horms@kernel.org \
--cc=jgg@ziepe.ca \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=leon@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nikhil.rao@amd.com \
--cc=pabeni@redhat.com \
--cc=rdunlap@infradead.org \
--cc=skhan@linuxfoundation.org \
/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