* Re: [PATCH rdma-rc] RDMA/ionic: Wait the device command timeout for admin queue commands
2026-11-18 21:57 [PATCH rdma-rc] RDMA/ionic: Wait the device command timeout for admin queue commands Nikhil P. Rao
@ 2026-11-18 22:01 ` sashiko-bot
2026-11-22 13:14 ` Leon Romanovsky
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: sashiko-bot @ 2026-11-18 22:01 UTC (permalink / raw)
To: Nikhil P. Rao; +Cc: linux-rdma
> Commit ec8ee714736e ("ionic: stretch heartbeat detection") notes that
> firmware can take more than 2 seconds to service a device or admin
> queue request, and is only expected to complete it within the ionic
> command timeout of 5 seconds. The RDMA admin queue watchdog gives up
> after 2 seconds, and a timeout resets the RDMA LIF, after which every
> verb fails with -ENODEV. Wait 5 seconds, as ionic does for its own
> admin queue.
>
> Fixes: f3bdbd42702c ("RDMA/ionic: Create device queues to support admin operations")
> Signed-off-by: Nikhil P. Rao <nikhil.rao@amd.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261118-b4-ionic-rdma-admin-timeout-v1-1-39536999a3e4@amd.com?part=1
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH rdma-rc] RDMA/ionic: Wait the device command timeout for admin queue commands
2026-11-18 21:57 [PATCH rdma-rc] RDMA/ionic: Wait the device command timeout for admin queue commands Nikhil P. Rao
2026-11-18 22:01 ` sashiko-bot
@ 2026-11-22 13:14 ` Leon Romanovsky
2026-11-23 20:12 ` Rao, Nikhil
2026-11-25 14:05 ` Abhijit Gangurde
2026-11-26 14:00 ` Leon Romanovsky
3 siblings, 1 reply; 6+ messages in thread
From: Leon Romanovsky @ 2026-11-22 13:14 UTC (permalink / raw)
To: Nikhil P. Rao
Cc: Abhijit Gangurde, Allen Hubbe, Jason Gunthorpe, Andrew Boyer,
linux-rdma, linux-kernel
On Wed, Nov 18, 2026 at 09:57:52PM +0000, Nikhil P. Rao wrote:
> Commit ec8ee714736e ("ionic: stretch heartbeat detection") notes that
> firmware can take more than 2 seconds to service a device or admin
> queue request, and is only expected to complete it within the ionic
> command timeout of 5 seconds. The RDMA admin queue watchdog gives up
> after 2 seconds, and a timeout resets the RDMA LIF, after which every
> verb fails with -ENODEV. Wait 5 seconds, as ionic does for its own
> admin queue.
Is this a real, user-visible bug, or merely a nice-to-have improvement?
Thanks
>
> Fixes: f3bdbd42702c ("RDMA/ionic: Create device queues to support admin operations")
> Signed-off-by: Nikhil P. Rao <nikhil.rao@amd.com>
> ---
> drivers/infiniband/hw/ionic/ionic_admin.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/infiniband/hw/ionic/ionic_admin.c b/drivers/infiniband/hw/ionic/ionic_admin.c
> index 0ccd869ad8e6..859893568538 100644
> --- a/drivers/infiniband/hw/ionic/ionic_admin.c
> +++ b/drivers/infiniband/hw/ionic/ionic_admin.c
> @@ -19,7 +19,7 @@
> #define IONIC_ADMIN_BUSY_RETRY_MS 1
>
> /* admin queue will be considered failed if a command takes longer */
> -#define IONIC_ADMIN_TIMEOUT (HZ * 2)
> +#define IONIC_ADMIN_TIMEOUT (HZ * 5)
> #define IONIC_ADMIN_WARN (HZ / 8)
>
> /* will poll for admin cq to tolerate and report from missed event */
>
> ---
> base-commit: e7732ec135b501e87ab060d992b3b5f2ec4396c9
> change-id: 20261118-b4-ionic-rdma-admin-timeout-3cc9f4afe247
>
> Best regards,
> --
> Nikhil P. Rao <nikhil.rao@amd.com>
>
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH rdma-rc] RDMA/ionic: Wait the device command timeout for admin queue commands
2026-11-22 13:14 ` Leon Romanovsky
@ 2026-11-23 20:12 ` Rao, Nikhil
0 siblings, 0 replies; 6+ messages in thread
From: Rao, Nikhil @ 2026-11-23 20:12 UTC (permalink / raw)
To: Leon Romanovsky, Nikhil P. Rao
Cc: Abhijit Gangurde, Allen Hubbe, Jason Gunthorpe, Andrew Boyer,
linux-rdma, linux-kernel
On 11/22/2026 5:14 AM, Leon Romanovsky wrote:
>
>
> Is this a real, user-visible bug, or merely a nice-to-have improvement?
>
It is real: we have seen RDMA admin commands take longer than 2
seconds, with the firmware not yet having written the completion when
the timeout fired. The patch does not cover commands that take longer
than 5 seconds; that needs the configurable timeout from the net-next
series, which cannot go to stable, so this is the part stable kernels
can get.
Thanks,
Nikhil
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH rdma-rc] RDMA/ionic: Wait the device command timeout for admin queue commands
2026-11-18 21:57 [PATCH rdma-rc] RDMA/ionic: Wait the device command timeout for admin queue commands Nikhil P. Rao
2026-11-18 22:01 ` sashiko-bot
2026-11-22 13:14 ` Leon Romanovsky
@ 2026-11-25 14:05 ` Abhijit Gangurde
2026-11-26 14:00 ` Leon Romanovsky
3 siblings, 0 replies; 6+ messages in thread
From: Abhijit Gangurde @ 2026-11-25 14:05 UTC (permalink / raw)
To: Nikhil P. Rao, Jason Gunthorpe, Leon Romanovsky
Cc: linux-rdma, linux-kernel, Allen Hubbe, Andrew Boyer
On 11/19/26 03:27, Nikhil P. Rao wrote:
> Commit ec8ee714736e ("ionic: stretch heartbeat detection") notes that
> firmware can take more than 2 seconds to service a device or admin
> queue request, and is only expected to complete it within the ionic
> command timeout of 5 seconds. The RDMA admin queue watchdog gives up
> after 2 seconds, and a timeout resets the RDMA LIF, after which every
> verb fails with -ENODEV. Wait 5 seconds, as ionic does for its own
> admin queue.
>
> Fixes: f3bdbd42702c ("RDMA/ionic: Create device queues to support admin operations")
> Signed-off-by: Nikhil P. Rao <nikhil.rao@amd.com>
> ---
> drivers/infiniband/hw/ionic/ionic_admin.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/infiniband/hw/ionic/ionic_admin.c b/drivers/infiniband/hw/ionic/ionic_admin.c
> index 0ccd869ad8e6..859893568538 100644
> --- a/drivers/infiniband/hw/ionic/ionic_admin.c
> +++ b/drivers/infiniband/hw/ionic/ionic_admin.c
> @@ -19,7 +19,7 @@
> #define IONIC_ADMIN_BUSY_RETRY_MS 1
>
> /* admin queue will be considered failed if a command takes longer */
> -#define IONIC_ADMIN_TIMEOUT (HZ * 2)
> +#define IONIC_ADMIN_TIMEOUT (HZ * 5)
> #define IONIC_ADMIN_WARN (HZ / 8)
>
> /* will poll for admin cq to tolerate and report from missed event */
>
> ---
> base-commit: e7732ec135b501e87ab060d992b3b5f2ec4396c9
> change-id: 20261118-b4-ionic-rdma-admin-timeout-3cc9f4afe247
>
> Best regards,
> --
> Nikhil P. Rao <nikhil.rao@amd.com>
>
Acked-by: Abhijit Gangurde <abhijit.gangurde@amd.com>
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH rdma-rc] RDMA/ionic: Wait the device command timeout for admin queue commands
2026-11-18 21:57 [PATCH rdma-rc] RDMA/ionic: Wait the device command timeout for admin queue commands Nikhil P. Rao
` (2 preceding siblings ...)
2026-11-25 14:05 ` Abhijit Gangurde
@ 2026-11-26 14:00 ` Leon Romanovsky
3 siblings, 0 replies; 6+ messages in thread
From: Leon Romanovsky @ 2026-11-26 14:00 UTC (permalink / raw)
To: Abhijit Gangurde, Allen Hubbe, Jason Gunthorpe, Andrew Boyer,
Nikhil P. Rao
Cc: linux-rdma, linux-kernel
On Wed, 18 Nov 2026 21:57:52 +0000, Nikhil P. Rao wrote:
> Commit ec8ee714736e ("ionic: stretch heartbeat detection") notes that
> firmware can take more than 2 seconds to service a device or admin
> queue request, and is only expected to complete it within the ionic
> command timeout of 5 seconds. The RDMA admin queue watchdog gives up
> after 2 seconds, and a timeout resets the RDMA LIF, after which every
> verb fails with -ENODEV. Wait 5 seconds, as ionic does for its own
> admin queue.
>
> [...]
Applied, thanks!
[1/1] RDMA/ionic: Wait the device command timeout for admin queue commands
https://git.kernel.org/rdma/rdma/c/58b15c7123d493
Best regards,
--
Leon Romanovsky <leon@kernel.org>
^ permalink raw reply [flat|nested] 6+ messages in thread