DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] ixgbe: fix occasional timeouts when starting VF
@ 2016-04-05 10:56 Bernard Iremonger
  2016-04-05 14:55 ` [dpdk-dev] [PATCH v2] " Bernard Iremonger
  0 siblings, 1 reply; 4+ messages in thread
From: Bernard Iremonger @ 2016-04-05 10:56 UTC (permalink / raw)
  To: dev; +Cc: wenzhuo.lu, Bernard Iremonger

Increase the polling wait time from 10 milleseconds to 15.

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
---
 drivers/net/ixgbe/ixgbe_rxtx.c | 6 +++---
 drivers/net/ixgbe/ixgbe_rxtx.h | 3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c
index b018ba7..4ad947f 100644
--- a/drivers/net/ixgbe/ixgbe_rxtx.c
+++ b/drivers/net/ixgbe/ixgbe_rxtx.c
@@ -1,7 +1,7 @@
 /*-
  *   BSD LICENSE
  *
- *   Copyright(c) 2010-2015 Intel Corporation. All rights reserved.
+ *   Copyright(c) 2010-2016 Intel Corporation. All rights reserved.
  *   Copyright 2014 6WIND S.A.
  *   All rights reserved.
  *
@@ -4961,7 +4961,7 @@ ixgbevf_dev_rxtx_start(struct rte_eth_dev *dev)
 		txdctl |= IXGBE_TXDCTL_ENABLE;
 		IXGBE_WRITE_REG(hw, IXGBE_VFTXDCTL(i), txdctl);
 
-		poll_ms = 10;
+		poll_ms = RTE_IXGBE_REGISTER_POLL_WAIT_15_MS;
 		/* Wait until TX Enable ready */
 		do {
 			rte_delay_ms(1);
@@ -4979,7 +4979,7 @@ ixgbevf_dev_rxtx_start(struct rte_eth_dev *dev)
 		IXGBE_WRITE_REG(hw, IXGBE_VFRXDCTL(i), rxdctl);
 
 		/* Wait until RX Enable ready */
-		poll_ms = 10;
+		poll_ms = RTE_IXGBE_REGISTER_POLL_WAIT_15_MS;
 		do {
 			rte_delay_ms(1);
 			rxdctl = IXGBE_READ_REG(hw, IXGBE_VFRXDCTL(i));
diff --git a/drivers/net/ixgbe/ixgbe_rxtx.h b/drivers/net/ixgbe/ixgbe_rxtx.h
index f9e708f..8085cf4 100644
--- a/drivers/net/ixgbe/ixgbe_rxtx.h
+++ b/drivers/net/ixgbe/ixgbe_rxtx.h
@@ -1,7 +1,7 @@
 /*-
  *   BSD LICENSE
  *
- *   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
+ *   Copyright(c) 2010-2016 Intel Corporation. All rights reserved.
  *   All rights reserved.
  *
  *   Redistribution and use in source and binary forms, with or without
@@ -77,6 +77,7 @@
 #endif
 
 #define RTE_IXGBE_REGISTER_POLL_WAIT_10_MS  10
+#define RTE_IXGBE_REGISTER_POLL_WAIT_15_MS  15
 #define RTE_IXGBE_WAIT_100_US               100
 #define RTE_IXGBE_VMTXSW_REGISTER_COUNT     2
 
-- 
2.6.3

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dpdk-dev] [PATCH v2] ixgbe: fix occasional timeouts when starting VF
  2016-04-05 10:56 [dpdk-dev] [PATCH] ixgbe: fix occasional timeouts when starting VF Bernard Iremonger
@ 2016-04-05 14:55 ` Bernard Iremonger
  2016-04-05 15:47   ` Thomas Monjalon
  0 siblings, 1 reply; 4+ messages in thread
From: Bernard Iremonger @ 2016-04-05 14:55 UTC (permalink / raw)
  To: dev; +Cc: wenzhuo.lu, Bernard Iremonger

Increase the polling wait time from 10 milleseconds to 15.

Fixes: af75078fece3 ("first public release")

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>

---
Change in v2:
added fixes line

---
 drivers/net/ixgbe/ixgbe_rxtx.c | 6 +++---
 drivers/net/ixgbe/ixgbe_rxtx.h | 3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c
index b018ba7..4ad947f 100644
--- a/drivers/net/ixgbe/ixgbe_rxtx.c
+++ b/drivers/net/ixgbe/ixgbe_rxtx.c
@@ -1,7 +1,7 @@
 /*-
  *   BSD LICENSE
  *
- *   Copyright(c) 2010-2015 Intel Corporation. All rights reserved.
+ *   Copyright(c) 2010-2016 Intel Corporation. All rights reserved.
  *   Copyright 2014 6WIND S.A.
  *   All rights reserved.
  *
@@ -4961,7 +4961,7 @@ ixgbevf_dev_rxtx_start(struct rte_eth_dev *dev)
 		txdctl |= IXGBE_TXDCTL_ENABLE;
 		IXGBE_WRITE_REG(hw, IXGBE_VFTXDCTL(i), txdctl);
 
-		poll_ms = 10;
+		poll_ms = RTE_IXGBE_REGISTER_POLL_WAIT_15_MS;
 		/* Wait until TX Enable ready */
 		do {
 			rte_delay_ms(1);
@@ -4979,7 +4979,7 @@ ixgbevf_dev_rxtx_start(struct rte_eth_dev *dev)
 		IXGBE_WRITE_REG(hw, IXGBE_VFRXDCTL(i), rxdctl);
 
 		/* Wait until RX Enable ready */
-		poll_ms = 10;
+		poll_ms = RTE_IXGBE_REGISTER_POLL_WAIT_15_MS;
 		do {
 			rte_delay_ms(1);
 			rxdctl = IXGBE_READ_REG(hw, IXGBE_VFRXDCTL(i));
diff --git a/drivers/net/ixgbe/ixgbe_rxtx.h b/drivers/net/ixgbe/ixgbe_rxtx.h
index f9e708f..8085cf4 100644
--- a/drivers/net/ixgbe/ixgbe_rxtx.h
+++ b/drivers/net/ixgbe/ixgbe_rxtx.h
@@ -1,7 +1,7 @@
 /*-
  *   BSD LICENSE
  *
- *   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
+ *   Copyright(c) 2010-2016 Intel Corporation. All rights reserved.
  *   All rights reserved.
  *
  *   Redistribution and use in source and binary forms, with or without
@@ -77,6 +77,7 @@
 #endif
 
 #define RTE_IXGBE_REGISTER_POLL_WAIT_10_MS  10
+#define RTE_IXGBE_REGISTER_POLL_WAIT_15_MS  15
 #define RTE_IXGBE_WAIT_100_US               100
 #define RTE_IXGBE_VMTXSW_REGISTER_COUNT     2
 
-- 
2.6.3

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH v2] ixgbe: fix occasional timeouts when starting VF
  2016-04-05 14:55 ` [dpdk-dev] [PATCH v2] " Bernard Iremonger
@ 2016-04-05 15:47   ` Thomas Monjalon
  2016-04-06 10:37     ` Iremonger, Bernard
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Monjalon @ 2016-04-05 15:47 UTC (permalink / raw)
  To: Bernard Iremonger; +Cc: dev, wenzhuo.lu

2016-04-05 15:55, Bernard Iremonger:
> -		poll_ms = 10;
> +		poll_ms = RTE_IXGBE_REGISTER_POLL_WAIT_15_MS;
[...]
>  #define RTE_IXGBE_REGISTER_POLL_WAIT_10_MS  10
> +#define RTE_IXGBE_REGISTER_POLL_WAIT_15_MS  15
>  #define RTE_IXGBE_WAIT_100_US               100

I don't understand why these constants are needed.
There is no semantic, just an arbitrary number.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH v2] ixgbe: fix occasional timeouts when starting VF
  2016-04-05 15:47   ` Thomas Monjalon
@ 2016-04-06 10:37     ` Iremonger, Bernard
  0 siblings, 0 replies; 4+ messages in thread
From: Iremonger, Bernard @ 2016-04-06 10:37 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev, Lu, Wenzhuo

Hi Thomas,

> -----Original Message-----
> From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com]
> Sent: Tuesday, April 5, 2016 4:48 PM
> To: Iremonger, Bernard <bernard.iremonger@intel.com>
> Cc: dev@dpdk.org; Lu, Wenzhuo <wenzhuo.lu@intel.com>
> Subject: Re: [dpdk-dev] [PATCH v2] ixgbe: fix occasional timeouts when
> starting VF
> 
> 2016-04-05 15:55, Bernard Iremonger:
> > -		poll_ms = 10;
> > +		poll_ms = RTE_IXGBE_REGISTER_POLL_WAIT_15_MS;
> [...]
> >  #define RTE_IXGBE_REGISTER_POLL_WAIT_10_MS  10
> > +#define RTE_IXGBE_REGISTER_POLL_WAIT_15_MS  15
> >  #define RTE_IXGBE_WAIT_100_US               100
> 
> I don't understand why these constants are needed.
> There is no semantic, just an arbitrary number.

I am seeing intermittent failures in the following test at line 4969 in ixgbe_rxtx.c:

while (--poll_ms && !(txdctl & IXGBE_TXDCTL_ENABLE))

Increasing the value of poll_ms does not address the root cause of this failure.
This needs more investigation.

Self NAK.


  

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-06 10:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-05 10:56 [dpdk-dev] [PATCH] ixgbe: fix occasional timeouts when starting VF Bernard Iremonger
2016-04-05 14:55 ` [dpdk-dev] [PATCH v2] " Bernard Iremonger
2016-04-05 15:47   ` Thomas Monjalon
2016-04-06 10:37     ` Iremonger, Bernard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).