Skip to contentSkip to conversation

igc: Remove delay during TX ring configuration

PATCH In review Muhammad Husaini Zulkifli 3 participants 3 messages May 17, 2023 – Jun 5, 2023

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

PATCH v2 1/1 igc: Remove delay during TX ring configuration

Remove unnecessary delay during the TX ring configuration. This will cause delay, especially during link down and link up activity.

Furthermore, old SKUs like as I225 will call the reset_adapter to reset the controller during TSN mode Gate Control List (GCL) setting. This will add more time to the configuration of the real-time use case.

It doesn't mentioned about this delay in the Software User Manual. It might have been ported from legacy code I210 in the past.

Fixes 13b5b7fd6a4a ("igc: Add support for Tx/Rx rings")

---
V1 -> V2: Update commit message.
---

---
 drivers/net/ethernet/intel/igc/igc_main.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/ethernet/intel/igc/igc_main.c +0 -1
index d1e8a5eee811b..a65ddddcda5d0 100644
@@ -711,7 +711,6 @@ static void igc_configure_tx_ring(struct igc_adapter *adapter,
 	/* disable the queue */
 	wr32(IGC_TXDCTL(reg_idx), 0);
 	wrfl();
-	mdelay(10);
 
 	wr32(IGC_TDLEN(reg_idx),
 	     ring->count * sizeof(union igc_adv_tx_desc));
Signature · 6 lines
2.17.1

_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
Acked-by on v2 1/1
#1 lore raw
Quoted 27 lines · Muhammad Husaini Zulkifli

Remove unnecessary delay during the TX ring configuration. This will cause delay, especially during link down and link up activity.

Furthermore, old SKUs like as I225 will call the reset_adapter to reset the controller during TSN mode Gate Control List (GCL) setting. This will add more time to the configuration of the real-time use case.

It doesn't mentioned about this delay in the Software User Manual. It might have been ported from legacy code I210 in the past.

Fixes 13b5b7fd6a4a ("igc: Add support for Tx/Rx rings")

---
V1 -> V2: Update commit message.
---

---
  drivers/net/ethernet/intel/igc/igc_main.c | 1 -
  1 file changed, 1 deletion(-)
drivers/net/ethernet/intel/igc/igc_main.c +0 -0
index d1e8a5eee811b..a65ddddcda5d0 100644

drivers/net/ethernet/intel/igc/igc_main.c static void igc_configure_tx_ring(struct igc_adapter *adapter, · line 716

Quoted 7 lines
drivers/net/ethernet/intel/igc/igc_main.c +0 -1
@@ -711,7 +711,6 @@ static void igc_configure_tx_ring(struct igc_adapter *adapter,
  	/* disable the queue */
  	wr32(IGC_TXDCTL(reg_idx), 0);
  	wrfl();
-	mdelay(10);
 
  	wr32(IGC_TDLEN(reg_idx),
  	     ring->count * sizeof(union igc_adv_tx_desc));

_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

Tested-by on v2 1/1
#2 lore raw
In reply to Muhammad Husaini Zulkifli
Quoted 15 lines · Muhammad Husaini Zulkifli

Remove unnecessary delay during the TX ring configuration. This will cause delay, especially during link down and link up activity.

Furthermore, old SKUs like as I225 will call the reset_adapter to reset the controller during TSN mode Gate Control List (GCL) setting. This will add more time to the configuration of the real-time use case.

It doesn't mentioned about this delay in the Software User Manual. It might have been ported from legacy code I210 in the past.

Fixes 13b5b7fd6a4a ("igc: Add support for Tx/Rx rings")
Quoted 6 lines

---
V1 -> V2: Update commit message.
---

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

_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan