Re: [PATCH net-next v3 3/3] ionic: add devlink param for command timeout

From: Rao, Nikhil

Date: Mon Nov 23 2026 - 18:15:29 EST




On 11/22/2026 4:59 PM, netdev-bot+sashiko@xxxxxxxxxx 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