Skip to contentSkip to conversation

igc: Remove delay during TX ring configuration

PATCH Superseded Muhammad Husaini Zulkifli 3 participants 6 messages May 16, 2023

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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

Remove unnecessary delay during the TX ring configuration. 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")
---
 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 ca0e6d4141a05..b1d0b3a8bdc41 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 v1 1/1
#1 lore raw
Quoted 15 lines · Muhammad Husaini Zulkifli

Remove unnecessary delay during the TX ring configuration. 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")
---
  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 ca0e6d4141a05..b1d0b3a8bdc41 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

maintainer
#2 lore raw
In reply to Muhammad Husaini Zulkifli
Quoted 3 lines · Muhammad Husaini Zulkifli

Remove unnecessary delay during the TX ring configuration. It doesn't mentioned about this delay in the Software User Manual. It might have been ported from legacy code I210 in the past.

Can you please provide more info. What's the problem you're fixing? How is this fixing it? If there's a splat, that would be helpful.

Quoted 11 lines
Fixes 13b5b7fd6a4a ("igc: Add support for Tx/Rx rings")
---
  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 ca0e6d4141a05..b1d0b3a8bdc41 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

#3 lore raw

Hi Tony,

Quoted 7 lines · Muhammad Husaini Zulkifli
Quoted 3 lines

Remove unnecessary delay during the TX ring configuration. It doesn't mentioned about this delay in the Software User Manual. It might have been ported from legacy code I210 in the past.

Can you please provide more info. What's the problem you're fixing? How is this fixing it? If there's a splat, that would be helpful.

There is no splat for this. This will cause more delay ex. link up activity especially during reset adapter task. I do not see any need for this as it does not mentioned in software manual. Plus, during TSN mode GCL scheduling configuration, we want to remove the delay of this 10ms for real time activity as well. I got pinged Sasha previously and we agreed to remove this delay.

Quoted 15 lines

drivers/net/ethernet/intel/igc/igc_main.c static void igc_configure_tx_ring(struct igc_adapter

Quoted 14 lines
Fixes 13b5b7fd6a4a ("igc: Add support for Tx/Rx rings")
Signed-off-by Muhammad Husaini Zulkifli

<[email protected]>

---
  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 ca0e6d4141a05..b1d0b3a8bdc41 100644
@@ -711,7 +711,6 @@ static void igc_configure_tx_ring(struct igc_adapter

*adapter,

Quoted 7 lines

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
  	/* 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

maintainer
#4 lore raw
Quoted 7 lines · Muhammad Husaini

Hi Tony,

Quoted 5 lines · Muhammad Husaini Zulkifli
Quoted 3 lines

Remove unnecessary delay during the TX ring configuration. It doesn't mentioned about this delay in the Software User Manual. It might have been ported from legacy code I210 in the past.

Quoted 8 lines
Quoted 2 lines

Can you please provide more info. What's the problem you're fixing? How is this fixing it? If there's a splat, that would be helpful.

There is no splat for this. This will cause more delay ex. link up activity especially during reset adapter task. I do not see any need for this as it does not mentioned in software manual. Plus, during TSN mode GCL scheduling configuration, we want to remove the delay of this 10ms for real time activity as well. I got pinged Sasha previously and we agreed to remove this delay.

Can you please update the commit message with applicable information that you mentioned here. This commit message doesn't give enough information about the problem or the solution. Description tips[1].

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Fixes 13b5b7fd6a4a ("igc: Add support for Tx/Rx rings")
Signed-off-by Muhammad Husaini Zulkifli

<[email protected]>

[1] https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes
_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

#5 lore raw
Quoted 16 lines · Muhammad Husaini
Quoted 7 lines

Hi Tony,

Quoted 5 lines · Muhammad Husaini Zulkifli
Quoted 3 lines

Remove unnecessary delay during the TX ring configuration. It doesn't mentioned about this delay in the Software User Manual. It might have been ported from legacy code I210 in the past.

Quoted 7 lines
Quoted 2 lines

Can you please provide more info. What's the problem you're fixing? How is this fixing it? If there's a splat, that would be helpful.

There is no splat for this. This will cause more delay ex. link up activity especially during reset adapter task. I do not see any need for this as it does not mentioned in software manual. Plus, during TSN mode GCL scheduling configuration, we want to remove the delay of this

Quoted 6 lines

10ms for real time activity as well.

Quoted 1 line

I got pinged Sasha previously and we agreed to remove this delay.

Can you please update the commit message with applicable information that you mentioned here. This commit message doesn't give enough information about the problem or the solution. Description tips[1].

Sure. Will push again.

Quoted 9 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Fixes 13b5b7fd6a4a ("igc: Add support for Tx/Rx rings")
Signed-off-by Muhammad Husaini Zulkifli

<[email protected]>

[1]
https://www.kernel.org/doc/html/latest/process/submitting-
patches.html#describe-your-changes

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