All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [PATCH v1] igc: Increase timeout value for Speed 100/1000/2500
@ 2021-07-09 23:45 Muhammad Husaini Zulkifli
  2021-07-13 16:44 ` Sasha Neftin
  2021-07-14  6:23 ` Paul Menzel
  0 siblings, 2 replies; 6+ messages in thread
From: Muhammad Husaini Zulkifli @ 2021-07-09 23:45 UTC (permalink / raw)
  To: intel-wired-lan

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.

Signed-off-by: Muhammad Husaini Zulkifli <muhammad.husaini.zulkifli@intel.com>
---
 drivers/net/ethernet/intel/igc/igc_main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c
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;
 			}
 
-- 
2.17.1


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

* [Intel-wired-lan] [PATCH v1] igc: Increase timeout value for Speed 100/1000/2500
  2021-07-09 23:45 [Intel-wired-lan] [PATCH v1] igc: Increase timeout value for Speed 100/1000/2500 Muhammad Husaini Zulkifli
@ 2021-07-13 16:44 ` Sasha Neftin
  2021-07-14  1:41   ` Zulkifli, Muhammad Husaini
  2021-07-14  6:23 ` Paul Menzel
  1 sibling, 1 reply; 6+ messages in thread
From: Sasha Neftin @ 2021-07-13 16:44 UTC (permalink / raw)
  To: intel-wired-lan

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.
>
> Signed-off-by: Muhammad Husaini Zulkifli <muhammad.husaini.zulkifli@intel.com>
> ---
>   drivers/net/ethernet/intel/igc/igc_main.c | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c
> 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;
>   			}
>   

Acked-by: Sasha Neftin <sasha.neftin@intel.com>

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

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

* [Intel-wired-lan] [PATCH v1] igc: Increase timeout value for Speed 100/1000/2500
  2021-07-13 16:44 ` Sasha Neftin
@ 2021-07-14  1:41   ` Zulkifli, Muhammad Husaini
  0 siblings, 0 replies; 6+ messages in thread
From: Zulkifli, Muhammad Husaini @ 2021-07-14  1:41 UTC (permalink / raw)
  To: intel-wired-lan

Thanks sasha and Vinicius!!

From: Neftin, Sasha <sasha.neftin@intel.com>
Sent: Wednesday, July 14, 2021 12:44 AM
To: Zulkifli, Muhammad Husaini <muhammad.husaini.zulkifli@intel.com>; intel-wired-lan at osuosl.org; Nguyen, Anthony L <anthony.l.nguyen@intel.com>; Gomes, Vinicius <vinicius.gomes@intel.com>
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.



Signed-off-by: Muhammad Husaini Zulkifli <muhammad.husaini.zulkifli@intel.com><mailto:muhammad.husaini.zulkifli@intel.com>

---

 drivers/net/ethernet/intel/igc/igc_main.c | 4 +++-

 1 file changed, 3 insertions(+), 1 deletion(-)



diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c

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;

                        }



Acked-by: Sasha Neftin <sasha.neftin@intel.com><mailto:sasha.neftin@intel.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20210714/c309837c/attachment-0001.html>

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

* [Intel-wired-lan] [PATCH v1] igc: Increase timeout value for Speed 100/1000/2500
  2021-07-09 23:45 [Intel-wired-lan] [PATCH v1] igc: Increase timeout value for Speed 100/1000/2500 Muhammad Husaini Zulkifli
  2021-07-13 16:44 ` Sasha Neftin
@ 2021-07-14  6:23 ` Paul Menzel
  2021-07-17 14:16   ` Zulkifli, Muhammad Husaini
  1 sibling, 1 reply; 6+ messages in thread
From: Paul Menzel @ 2021-07-14  6:23 UTC (permalink / raw)
  To: intel-wired-lan

Dear Muhammad,


Am 10.07.21 um 01:45 schrieb 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.

s/increase/increased/

Do you have a way how to reproduce the issue?

> Signed-off-by: Muhammad Husaini Zulkifli <muhammad.husaini.zulkifli@intel.com>
> ---
>   drivers/net/ethernet/intel/igc/igc_main.c | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c
> 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;

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

>   				break;
>   			}


Kind regards,

Paul

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

* [Intel-wired-lan] [PATCH v1] igc: Increase timeout value for Speed 100/1000/2500
  2021-07-14  6:23 ` Paul Menzel
@ 2021-07-17 14:16   ` Zulkifli, Muhammad Husaini
  2021-07-17 14:18     ` Paul Menzel
  0 siblings, 1 reply; 6+ messages in thread
From: Zulkifli, Muhammad Husaini @ 2021-07-17 14:16 UTC (permalink / raw)
  To: intel-wired-lan

Hi Paul,

Thanks for the comment. 
Replied inline

>-----Original Message-----
>From: Paul Menzel <pmenzel@molgen.mpg.de>
>Sent: Wednesday, July 14, 2021 2:24 PM
>To: Zulkifli, Muhammad Husaini <muhammad.husaini.zulkifli@intel.com>
>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:
>> 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?
>
>> Signed-off-by: Muhammad Husaini Zulkifli
>> <muhammad.husaini.zulkifli@intel.com>
>> ---
>>   drivers/net/ethernet/intel/igc/igc_main.c | 4 +++-
>>   1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/net/ethernet/intel/igc/igc_main.c
>> b/drivers/net/ethernet/intel/igc/igc_main.c
>> 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;
>
>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).

>
>>   				break;
>>   			}
>
>
>Kind regards,
>
>Paul

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

* [Intel-wired-lan] [PATCH v1] igc: Increase timeout value for Speed 100/1000/2500
  2021-07-17 14:16   ` Zulkifli, Muhammad Husaini
@ 2021-07-17 14:18     ` Paul Menzel
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Menzel @ 2021-07-17 14:18 UTC (permalink / raw)
  To: intel-wired-lan

Dear Muhammad,


Thank you for your response.

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

>> -----Original Message-----
>> From: Paul Menzel <pmenzel@molgen.mpg.de>
>> Sent: Wednesday, July 14, 2021 2:24 PM
>> To: Zulkifli, Muhammad Husaini <muhammad.husaini.zulkifli@intel.com>
>> 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:
>>> 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?
>>
>>> Signed-off-by: Muhammad Husaini Zulkifli <muhammad.husaini.zulkifli@intel.com>
>>> ---
>>>    drivers/net/ethernet/intel/igc/igc_main.c | 4 +++-
>>>    1 file changed, 3 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/net/ethernet/intel/igc/igc_main.c
>>> b/drivers/net/ethernet/intel/igc/igc_main.c
>>> 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;
>>
>> 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).

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

>>>    				break;
>>>    			}


Kind regards,

Paul

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

end of thread, other threads:[~2021-07-17 14:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-09 23:45 [Intel-wired-lan] [PATCH v1] igc: Increase timeout value for Speed 100/1000/2500 Muhammad Husaini Zulkifli
2021-07-13 16:44 ` Sasha Neftin
2021-07-14  1:41   ` Zulkifli, Muhammad Husaini
2021-07-14  6:23 ` Paul Menzel
2021-07-17 14:16   ` Zulkifli, Muhammad Husaini
2021-07-17 14:18     ` Paul Menzel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.