netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Lower wake up time when phy enter lower mode
@ 2012-11-07  2:52 Frank Li
  2012-11-07 19:06 ` Ben Hutchings
  0 siblings, 1 reply; 4+ messages in thread
From: Frank Li @ 2012-11-07  2:52 UTC (permalink / raw)
  To: Richard Cochran, netdev

Richard:

          Recently, I found out the path delay will increase about
20us suddenly in something when connect two iMX6 board and Ethernet
work on 1G mode.
          The reason is that the PHY enter lower mode automatically
when no package send and receive. It takes some time to recover and
send out package by PHY but MAC think package have sent and sample
time stamper.
          Do you meet such case?  I can workaround it by two method
               1. disable phy lower power feature.
               2. add some dummy package before SYNC package.

Best regards
Frank Li

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

* Re: Lower wake up time when phy enter lower mode
  2012-11-07  2:52 Lower wake up time when phy enter lower mode Frank Li
@ 2012-11-07 19:06 ` Ben Hutchings
  2012-11-08  2:09   ` Frank Li
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Hutchings @ 2012-11-07 19:06 UTC (permalink / raw)
  To: Frank Li; +Cc: Richard Cochran, netdev

On Wed, 2012-11-07 at 10:52 +0800, Frank Li wrote:
> Richard:
> 
>           Recently, I found out the path delay will increase about
> 20us suddenly in something when connect two iMX6 board and Ethernet
> work on 1G mode.
>           The reason is that the PHY enter lower mode automatically
> when no package send and receive. It takes some time to recover and
> send out package by PHY but MAC think package have sent and sample
> time stamper.
>           Do you meet such case?  I can workaround it by two method
>                1. disable phy lower power feature.
>                2. add some dummy package before SYNC package.

If this low power mode is related to EEE (Energy Efficient Ethernet)
then there are ethtool operations defined for configuring it, and you
could implement those.

Ben.

-- 
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.

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

* Re: Lower wake up time when phy enter lower mode
  2012-11-07 19:06 ` Ben Hutchings
@ 2012-11-08  2:09   ` Frank Li
  2012-11-09 15:07     ` Ben Hutchings
  0 siblings, 1 reply; 4+ messages in thread
From: Frank Li @ 2012-11-08  2:09 UTC (permalink / raw)
  To: Ben Hutchings; +Cc: Richard Cochran, netdev

2012/11/8 Ben Hutchings <bhutchings@solarflare.com>:
> On Wed, 2012-11-07 at 10:52 +0800, Frank Li wrote:
>> Richard:
>>
>>           Recently, I found out the path delay will increase about
>> 20us suddenly in something when connect two iMX6 board and Ethernet
>> work on 1G mode.
>>           The reason is that the PHY enter lower mode automatically
>> when no package send and receive. It takes some time to recover and
>> send out package by PHY but MAC think package have sent and sample
>> time stamper.
>>           Do you meet such case?  I can workaround it by two method
>>                1. disable phy lower power feature.
>>                2. add some dummy package before SYNC package.
>
> If this low power mode is related to EEE (Energy Efficient Ethernet)
> then there are ethtool operations defined for configuring it, and you
> could implement those.

Yes, it is phy specific, called smart EEE, which compatible with IEEE 802.3az
and can be used in legacy MAC without EEE.

Do you have example about ethtool operations?

>
> Ben.
>
> --
> Ben Hutchings, Staff Engineer, Solarflare
> Not speaking for my employer; that's the marketing department's job.
> They asked us to note that Solarflare product names are trademarked.
>

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

* Re: Lower wake up time when phy enter lower mode
  2012-11-08  2:09   ` Frank Li
@ 2012-11-09 15:07     ` Ben Hutchings
  0 siblings, 0 replies; 4+ messages in thread
From: Ben Hutchings @ 2012-11-09 15:07 UTC (permalink / raw)
  To: Frank Li; +Cc: Richard Cochran, netdev

On Thu, 2012-11-08 at 10:09 +0800, Frank Li wrote:
> 2012/11/8 Ben Hutchings <bhutchings@solarflare.com>:
> > On Wed, 2012-11-07 at 10:52 +0800, Frank Li wrote:
> >> Richard:
> >>
> >>           Recently, I found out the path delay will increase about
> >> 20us suddenly in something when connect two iMX6 board and Ethernet
> >> work on 1G mode.
> >>           The reason is that the PHY enter lower mode automatically
> >> when no package send and receive. It takes some time to recover and
> >> send out package by PHY but MAC think package have sent and sample
> >> time stamper.
> >>           Do you meet such case?  I can workaround it by two method
> >>                1. disable phy lower power feature.
> >>                2. add some dummy package before SYNC package.
> >
> > If this low power mode is related to EEE (Energy Efficient Ethernet)
> > then there are ethtool operations defined for configuring it, and you
> > could implement those.
> 
> Yes, it is phy specific, called smart EEE, which compatible with IEEE 802.3az
> and can be used in legacy MAC without EEE.
> 
> Do you have example about ethtool operations?

Look at the comments on struct ethtool_eee in <uapi/linux/ethtool.h>,
and the existing implementations:

drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c

Ben.

-- 
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.

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

end of thread, other threads:[~2012-11-09 15:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-07  2:52 Lower wake up time when phy enter lower mode Frank Li
2012-11-07 19:06 ` Ben Hutchings
2012-11-08  2:09   ` Frank Li
2012-11-09 15:07     ` Ben Hutchings

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).