Skip to contentSkip to conversation

igc: Increase timeout value for Speed 100/1000/2500

PATCH Superseded Muhammad Husaini Zulkifli 4 participants 6 messages Jul 9, 2021 – Jul 17, 2021

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 igc: Increase timeout value for Speed 100/1000/2500

As the cycle time is set to maximum of 1s, the TX Hang timeout need to be increase to avoid possible TX Hangs caused by using long Qbv cycles.

---
 drivers/net/ethernet/intel/igc/igc_main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/igc/igc_main.c +3 -1
index c8abd7fb70e5..99fb5641297d 100644
@@ -5322,7 +5322,9 @@ static void igc_watchdog_task(struct work_struct *work)
 				adapter->tx_timeout_factor = 14;
 				break;
 			case SPEED_100:
-				/* maybe add some timeout factor ? */
+			case SPEED_1000:
+			case SPEED_2500:
+				adapter->tx_timeout_factor = 7;
 				break;
 			}
 
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 igc: Increase timeout value for Speed 100/1000/2500

Quoted 13 lines · Muhammad Husaini Zulkifli

As the cycle time is set to maximum of 1s, the TX Hang timeout need to be increase to avoid possible TX Hangs caused by using long Qbv cycles.

---
  drivers/net/ethernet/intel/igc/igc_main.c | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/igc/igc_main.c +0 -0
index c8abd7fb70e5..99fb5641297d 100644

drivers/net/ethernet/intel/igc/igc_main.c static void igc_watchdog_task(struct work_struct *work) · line 5330

Quoted 10 lines
drivers/net/ethernet/intel/igc/igc_main.c +3 -1
@@ -5322,7 +5322,9 @@ static void igc_watchdog_task(struct work_struct *work)
  				adapter->tx_timeout_factor = 14;
  				break;
  			case SPEED_100:
-				/* maybe add some timeout factor ? */
+			case SPEED_1000:
+			case SPEED_2500:
+				adapter->tx_timeout_factor = 7;
  				break;
  			}
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20210713/c45a2a80/attachment.html>

#2 lore raw

PATCH 1/1 igc: Increase timeout value for Speed 100/1000/2500

Thanks sasha and Vinicius!!

From: Neftin, Sasha <[email protected]>
Sent: Wednesday, July 14, 2021 12:44 AM
To: Zulkifli, Muhammad Husaini <[email protected]>; intel-wired-lan at osuosl.org; Nguyen, Anthony L <[email protected]>; Gomes, Vinicius <[email protected]>
Subject: Re: [Intel-wired-lan] [PATCH v1] igc: Increase timeout value for Speed 100/1000/2500

On 7/10/2021 02:45, Muhammad Husaini Zulkifli wrote:

As the cycle time is set to maximum of 1s, the TX Hang timeout need to

be increase to avoid possible TX Hangs caused by using long Qbv cycles.

---

 drivers/net/ethernet/intel/igc/igc_main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/igc/igc_main.c +0 -0

index c8abd7fb70e5..99fb5641297d 100644

--- a/drivers/net/ethernet/intel/igc/igc_main.c

+++ b/drivers/net/ethernet/intel/igc/igc_main.c

@@ -5322,7 +5322,9 @@ static void igc_watchdog_task(struct work_struct *work)

                               adapter->tx_timeout_factor = 14;

                               break;

                        case SPEED_100:

- /* maybe add some timeout factor ? */

+ case SPEED_1000:

+ case SPEED_2500:

+ adapter->tx_timeout_factor = 7;

                               break;

                        }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20210714/c309837c/attachment-0001.html>

#3 lore raw

PATCH 1/1 igc: Increase timeout value for Speed 100/1000/2500

In reply to Muhammad Husaini Zulkifli

Dear Muhammad,

Am 10.07.21 um 01:45 schrieb Muhammad Husaini Zulkifli:

Quoted 2 lines

As the cycle time is set to maximum of 1s, the TX Hang timeout need to be increase to avoid possible TX Hangs caused by using long Qbv cycles.

s/increase/increased/

Do you have a way how to reproduce the issue?

Quoted 10 lines
---
  drivers/net/ethernet/intel/igc/igc_main.c | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/igc/igc_main.c +0 -0
index c8abd7fb70e5..99fb5641297d 100644

drivers/net/ethernet/intel/igc/igc_main.c static void igc_watchdog_task(struct work_struct *work) · line 5327

Quoted 7 lines
drivers/net/ethernet/intel/igc/igc_main.c +3 -1
@@ -5322,7 +5322,9 @@ static void igc_watchdog_task(struct work_struct *work)
  				adapter->tx_timeout_factor = 14;
  				break;
  			case SPEED_100:
-				/* maybe add some timeout factor ? */
+			case SPEED_1000:
+			case SPEED_2500:
+				adapter->tx_timeout_factor = 7;

Please mention in the commit message, how the timeout factor of 7 was determined. Why not any other number.

drivers/net/ethernet/intel/igc/igc_main.c static void igc_watchdog_task(struct work_struct *work) · line 5329

Quoted 2 lines
drivers/net/ethernet/intel/igc/igc_main.c +0 -0
  				break;
  			}

Kind regards,

Paul

#4 lore raw

PATCH 1/1 igc: Increase timeout value for Speed 100/1000/2500

Hi Paul,

Thanks for the comment.
Replied inline

Quoted 32 lines

-----Original Message-----
From: Paul Menzel <[email protected]>
Sent: Wednesday, July 14, 2021 2:24 PM
To: Zulkifli, Muhammad Husaini <[email protected]>
Cc: intel-wired-lan at osuosl.org
Subject: Re: [Intel-wired-lan] [PATCH v1] igc: Increase timeout value for Speed 100/1000/2500

Dear Muhammad,

Am 10.07.21 um 01:45 schrieb Muhammad Husaini Zulkifli:

Quoted 2 lines

As the cycle time is set to maximum of 1s, the TX Hang timeout need to be increase to avoid possible TX Hangs caused by using long Qbv cycles.

s/increase/increased/

Do you have a way how to reproduce the issue?

drivers/net/ethernet/intel/igc/igc_main.c static void igc_watchdog_task(struct work_struct

Quoted 12 lines

Signed-off-by: Muhammad Husaini Zulkifli
<[email protected]>

---
  drivers/net/ethernet/intel/igc/igc_main.c | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/igc/igc_main.c +0 -0
index c8abd7fb70e5..99fb5641297d 100644
@@ -5322,7 +5322,9 @@ static void igc_watchdog_task(struct work_struct

*work)

Quoted 10 lines

drivers/net/ethernet/intel/igc/igc_main.c static void igc_watchdog_task(struct work_struct *work) · line 5327

Quoted 7 lines
drivers/net/ethernet/intel/igc/igc_main.c +3 -1
  				adapter->tx_timeout_factor = 14;
  				break;
  			case SPEED_100:
-				/* maybe add some timeout factor ? */
+			case SPEED_1000:
+			case SPEED_2500:
+				adapter->tx_timeout_factor = 7;

Please mention in the commit message, how the timeout factor of 7 was determined. Why not any other number.

There is no dedicated number specific in data sheet for this timeout factor. This time out factor was determined during the debugging to solve the "tx hang" issues that we were seeing in some cases especially during Scheduled packet Transmission(etf).

Quoted 8 lines

drivers/net/ethernet/intel/igc/igc_main.c static void igc_watchdog_task(struct work_struct · line 5329

Quoted 3 lines
drivers/net/ethernet/intel/igc/igc_main.c +0 -0
  				break;
  			}

Kind regards,

Paul

#5 lore raw

PATCH 1/1 igc: Increase timeout value for Speed 100/1000/2500

Dear Muhammad,

Thank you for your response.

Am 17.07.21 um 16:16 schrieb Zulkifli, Muhammad Husaini:

Quoted 38 lines
Quoted 27 lines

-----Original Message-----
From: Paul Menzel <[email protected]>
Sent: Wednesday, July 14, 2021 2:24 PM
To: Zulkifli, Muhammad Husaini <[email protected]>
Cc: intel-wired-lan at osuosl.org
Subject: Re: [Intel-wired-lan] [PATCH v1] igc: Increase timeout value for Speed 100/1000/2500

Am 10.07.21 um 01:45 schrieb Muhammad Husaini Zulkifli:

Quoted 2 lines

As the cycle time is set to maximum of 1s, the TX Hang timeout need to be increase to avoid possible TX Hangs caused by using long Qbv cycles.

s/increase/increased/

Do you have a way how to reproduce the issue?

drivers/net/ethernet/intel/igc/igc_main.c static void igc_watchdog_task(struct work_struct

Quoted 11 lines
---
   drivers/net/ethernet/intel/igc/igc_main.c | 4 +++-
   1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/igc/igc_main.c +0 -0
index c8abd7fb70e5..99fb5641297d 100644
@@ -5322,7 +5322,9 @@ static void igc_watchdog_task(struct work_struct

*work)

Quoted 10 lines

drivers/net/ethernet/intel/igc/igc_main.c static void igc_watchdog_task(struct work_struct *work) · line 5327

Quoted 7 lines
drivers/net/ethernet/intel/igc/igc_main.c +3 -1
   				adapter->tx_timeout_factor = 14;
   				break;
   			case SPEED_100:
-				/* maybe add some timeout factor ? */
+			case SPEED_1000:
+			case SPEED_2500:
+				adapter->tx_timeout_factor = 7;

Please mention in the commit message, how the timeout factor of 7 was determined. Why not any other number.

Quoted 3 lines

There is no dedicated number specific in data sheet for this timeout factor. This time out factor was determined during the debugging to solve the "tx hang" issues that we were seeing in some cases especially during Scheduled packet Transmission(etf).

Thank you for the clarification. Please mention that in the commit message of v2.

Quoted 2 lines
Quoted 2 lines

drivers/net/ethernet/intel/igc/igc_main.c static void igc_watchdog_task(struct work_struct · line 5329

Quoted 2 lines
drivers/net/ethernet/intel/igc/igc_main.c +0 -0
   				break;
   			}

Kind regards,

Paul