diff mbox

igb: Remove incorrect ""unexpected SYS WRAP" log message

Message ID 20170623122630.27074-1-vinschen@redhat.com
State Accepted
Delegated to: Jeff Kirsher
Headers show

Commit Message

Corinna Vinschen June 23, 2017, 12:26 p.m. UTC
TSAUXC.DisableSystime is never set, so SYSTIM runs into a SYS WRAP
every 1100 secs on 80580/i350/i354 (40 bit SYSTIM) and every 35000
secs on 80576 (45 bit SYSTIM).

This wrap event sets the TSICR.SysWrap bit unconditionally.

However, checking TSIM at interrupt time shows that this event does not
actually cause the interrupt.  Rather, it's just bycatch while the
actual interrupt is caused by, for instance, TSICR.TXTS.

The conclusion is that the SYS WRAP is actually expected, so the
"unexpected SYS WRAP" message is entirely bogus and just helps to
confuse users.  Drop it.

Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
---
 drivers/net/ethernet/intel/igb/igb_main.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Jacob Keller June 23, 2017, 12:44 p.m. UTC | #1
> -----Original Message-----
> From: Corinna Vinschen [mailto:vinschen@redhat.com]
> Sent: Friday, June 23, 2017 5:27 AM
> To: intel-wired-lan@lists.osuosl.org
> Cc: sassmann@kpanic.de; Keller, Jacob E <jacob.e.keller@intel.com>;
> jbainbri@redhat.com
> Subject: [PATCH] igb: Remove incorrect ""unexpected SYS WRAP" log message
> 
> TSAUXC.DisableSystime is never set, so SYSTIM runs into a SYS WRAP
> every 1100 secs on 80580/i350/i354 (40 bit SYSTIM) and every 35000
> secs on 80576 (45 bit SYSTIM).
> 
> This wrap event sets the TSICR.SysWrap bit unconditionally.
> 
> However, checking TSIM at interrupt time shows that this event does not
> actually cause the interrupt.  Rather, it's just bycatch while the
> actual interrupt is caused by, for instance, TSICR.TXTS.
> 
> The conclusion is that the SYS WRAP is actually expected, so the
> "unexpected SYS WRAP" message is entirely bogus and just helps to
> confuse users.  Drop it.
> 
> Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
> ---

This reasoning seems sound to me.

Acked-by: Jacob Keller <jacob.e.keller@intel.com>

>  drivers/net/ethernet/intel/igb/igb_main.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/net/ethernet/intel/igb/igb_main.c
> b/drivers/net/ethernet/intel/igb/igb_main.c
> index 3558ad8..394e77e 100644
> --- a/drivers/net/ethernet/intel/igb/igb_main.c
> +++ b/drivers/net/ethernet/intel/igb/igb_main.c
> @@ -5746,8 +5746,6 @@ static void igb_tsync_interrupt(struct igb_adapter
> *adapter)
>  		event.type = PTP_CLOCK_PPS;
>  		if (adapter->ptp_caps.pps)
>  			ptp_clock_event(adapter->ptp_clock, &event);
> -		else
> -			dev_err(&adapter->pdev->dev, "unexpected SYS
> WRAP");
>  		ack |= TSINTR_SYS_WRAP;
>  	}
> 
> --
> 2.9.4
Brown, Aaron F June 28, 2017, 1:13 a.m. UTC | #2
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces@osuosl.org] On Behalf
> Of Corinna Vinschen
> Sent: Friday, June 23, 2017 5:27 AM
> To: intel-wired-lan@lists.osuosl.org
> Cc: sassmann@kpanic.de; jbainbri@redhat.com
> Subject: [Intel-wired-lan] [PATCH] igb: Remove incorrect ""unexpected SYS
> WRAP" log message
> 
> TSAUXC.DisableSystime is never set, so SYSTIM runs into a SYS WRAP
> every 1100 secs on 80580/i350/i354 (40 bit SYSTIM) and every 35000
> secs on 80576 (45 bit SYSTIM).
> 
> This wrap event sets the TSICR.SysWrap bit unconditionally.
> 
> However, checking TSIM at interrupt time shows that this event does not
> actually cause the interrupt.  Rather, it's just bycatch while the
> actual interrupt is caused by, for instance, TSICR.TXTS.
> 
> The conclusion is that the SYS WRAP is actually expected, so the
> "unexpected SYS WRAP" message is entirely bogus and just helps to
> confuse users.  Drop it.
> 
> Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
> ---
>  drivers/net/ethernet/intel/igb/igb_main.c | 2 --
>  1 file changed, 2 deletions(-)

Tested-by: Aaron Brown <aaron.f.brown@intel.com>
diff mbox

Patch

diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index 3558ad8..394e77e 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -5746,8 +5746,6 @@  static void igb_tsync_interrupt(struct igb_adapter *adapter)
 		event.type = PTP_CLOCK_PPS;
 		if (adapter->ptp_caps.pps)
 			ptp_clock_event(adapter->ptp_clock, &event);
-		else
-			dev_err(&adapter->pdev->dev, "unexpected SYS WRAP");
 		ack |= TSINTR_SYS_WRAP;
 	}