Skip to contentSkip to conversation

RDMA/ionic: Wait the device command timeout for admin queue commands

PATCH In review Nikhil P. Rao 4 participants 4 messages Nov 18 – Nov 23

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RDMA/ionic: Wait the device command timeout for admin queue commands

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")
---
 drivers/infiniband/hw/ionic/ionic_admin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/ionic/ionic_admin.c +1 -1
index 0ccd869ad8e6..859893568538 100644
@@ -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,

Signature · 1 line
Nikhil P. Rao <[email protected]>
#1 lore raw
Sashiko has reviewed this patch and found no issues.
Quoted 10 lines

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")

Sashiko has reviewed this patch and found no issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
#2 lore raw
In reply to Nikhil P. Rao
Quoted 7 lines · Nikhil P. Rao

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

Quoted 29 lines
Fixes f3bdbd42702c ("RDMA/ionic: Create device queues to support admin operations")
---
 drivers/infiniband/hw/ionic/ionic_admin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/ionic/ionic_admin.c +1 -2
index 0ccd869ad8e6..859893568538 100644
@@ -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,

Signature · 1 line
Nikhil P. Rao <[email protected]>
#3 lore raw
Quoted 4 lines · Leon Romanovsky

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