Skip to contentSkip to conversation

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

PATCH New Muhammad Husaini Zulkifli 2 participants 2 messages Jul 17, 2021 – Jul 20, 2021

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

PATCH v2 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 Hang.

There is no dedicated number specific in data sheet for the timeout factor. Timeout factor was determined during the debugging to solve the "Tx Hang" issues that happen in some cases mainly during ETF(Earliest TxTime First).

This can be test by using TSN Schedule Tx Tools udp_tai sample application.

---

V1 -> V2: Add reason for the timeout factor

---
 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 4959078e111e..380e21e56398 100644
@@ -5321,7 +5321,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 v2 1/1 igc: Increase timeout value for Speed 100/1000/2500

Quoted 12 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 Hang.

There is no dedicated number specific in data sheet for the timeout factor. Timeout factor was determined during the debugging to solve the "Tx Hang" issues that happen in some cases mainly during ETF(Earliest TxTime First).

This can be test by using TSN Schedule Tx Tools udp_tai sample application.

Quoted 8 lines

---

V1 -> V2: Add reason for the timeout factor

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