Skip to contentSkip to conversation

net/ixgbe: increase vf reset timeout

PATCH Applied Kevin Traynor 3 participants 4 messages Jan 30, 2024 – Feb 29, 2024 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ixgbe: increase vf reset timeout

When vf issues a reset to pf there is a 50 msec wait plus an additional max of 1 msec for the pf to indicate the reset is complete before timeout.

In some cases, it is seen that the reset is timing out, in which case the reset does not complete and an error is returned.

In order to account for this, continue to wait an initial 50 msecs, but then allow a max of an additional 50 msecs for the command to complete.

Fixes af75078fece3 ("first public release")
---
 drivers/net/ixgbe/base/ixgbe_type.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ixgbe/base/ixgbe_type.h +1 -1
index 1094df5891..35212a561b 100644
@@ -1801,5 +1801,5 @@ enum {
 #define IXGBE_VFRE_ENABLE_ALL	0xFFFFFFFF
 
-#define IXGBE_VF_INIT_TIMEOUT	200 /* Number of retries to clear RSTI */
+#define IXGBE_VF_INIT_TIMEOUT	10000 /* Number of retries to clear RSTI */
 
 /* RDHMPN and TDHMPN bitmasks */
Signature · 1 line
2.43.0
#1 lore raw

Hi Bruce,

I see you are the lucky delegate for this patch :-)

https://patchwork.dpdk.org/project/dpdk/patch/[email protected]/

Just wondering if any comment and if it's planned for 23.03 or later release ?

thanks,
Kevin.

Quoted 29 lines · Kevin Traynor

When vf issues a reset to pf there is a 50 msec wait plus an additional max of 1 msec for the pf to indicate the reset is complete before timeout.

In some cases, it is seen that the reset is timing out, in which case the reset does not complete and an error is returned.

In order to account for this, continue to wait an initial 50 msecs, but then allow a max of an additional 50 msecs for the command to complete.

Fixes af75078fece3 ("first public release")
---
 drivers/net/ixgbe/base/ixgbe_type.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ixgbe/base/ixgbe_type.h +1 -1
index 1094df5891..35212a561b 100644
@@ -1801,5 +1801,5 @@ enum {
 #define IXGBE_VFRE_ENABLE_ALL	0xFFFFFFFF
 
-#define IXGBE_VF_INIT_TIMEOUT	200 /* Number of retries to clear RSTI */
+#define IXGBE_VF_INIT_TIMEOUT	10000 /* Number of retries to clear RSTI */
 
 /* RDHMPN and TDHMPN bitmasks */
Acked-by on v1 1/1
#2 lore raw
In reply to Kevin Traynor
Quoted 23 lines · Kevin Traynor

When vf issues a reset to pf there is a 50 msec wait plus an additional max of 1 msec for the pf to indicate the reset is complete before timeout.

In some cases, it is seen that the reset is timing out, in which case the reset does not complete and an error is returned.

In order to account for this, continue to wait an initial 50 msecs, but then allow a max of an additional 50 msecs for the command to complete.

Fixes af75078fece3 ("first public release")
---
  drivers/net/ixgbe/base/ixgbe_type.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ixgbe/base/ixgbe_type.h +0 -0
index 1094df5891..35212a561b 100644

drivers/net/ixgbe/base/ixgbe_type.h enum { · line 1805

Quoted 6 lines
drivers/net/ixgbe/base/ixgbe_type.h +1 -1
@@ -1801,5 +1801,5 @@ enum {
  #define IXGBE_VFRE_ENABLE_ALL	0xFFFFFFFF
 
-#define IXGBE_VF_INIT_TIMEOUT	200 /* Number of retries to clear RSTI */
+#define IXGBE_VF_INIT_TIMEOUT	10000 /* Number of retries to clear RSTI */
 
  /* RDHMPN and TDHMPN bitmasks */
Signature · 2 lines
Regards,
Vladimir
#3 lore raw
Quoted 5 lines · Vladimir
Quoted 4 lines · Kevin Traynor

When vf issues a reset to pf there is a 50 msec wait plus an additional max of 1 msec for the pf to indicate the reset is complete before timeout.

Quoted 8 lines
Quoted 8 lines

In some cases, it is seen that the reset is timing out, in which case the reset does not complete and an error is returned.

In order to account for this, continue to wait an initial 50 msecs, but then allow a max of an additional 50 msecs for the command to complete.

Fixes af75078fece3 ("first public release")
Quoted 6 lines
Quoted 6 lines
---
  drivers/net/ixgbe/base/ixgbe_type.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 12 lines

drivers/net/ixgbe/base/ixgbe_type.h enum { · line 1803

Quoted 9 lines
drivers/net/ixgbe/base/ixgbe_type.h +1 -1
index 1094df5891..35212a561b 100644
@@ -1801,5 +1801,5 @@ enum {
  #define IXGBE_VFRE_ENABLE_ALL	0xFFFFFFFF
-#define IXGBE_VF_INIT_TIMEOUT	200 /* Number of retries to clear RSTI */
+#define IXGBE_VF_INIT_TIMEOUT	10000 /* Number of retries to clear RSTI */
  /* RDHMPN and TDHMPN bitmasks */

This changes the code in the "base" directory, which is not ideal, but I see no other way to fix the issue reported.

Applied to dpdk-next-net-intel.

Thanks,
/Bruce