All of lore.kernel.org
 help / color / mirror / Atom feed
* Is advertising of 2500Mbps support must from phy device to set phy at 2500Mbps link speed
@ 2019-02-05  6:09 abhijit
  2019-02-05 14:56 ` Andrew Lunn
  0 siblings, 1 reply; 5+ messages in thread
From: abhijit @ 2019-02-05  6:09 UTC (permalink / raw)
  To: netdev

Hi All,

We are using Ethernet MAC which has integrated Phy. This phy supports 
speed up to 10000Mbps. The phy has, 1000Base-X PCS(Physical Coding 
Sub-layer) followed by SerDes interface to support 10Mbps to 10000Mbps. 
Currently we are trying to get this phy at 2500Mbps. This device has 16 
registers that corresponds to Clause 37, which can be used to advertise 
speed till 1000Mbps.
So my question is,
1. Without phy advertising its capability of 2500Mbps, is there any way 
I can set phy speed at 2500Mbps?
2. I tried disabling auto-negotiation and setting speed at 2500Mbps with 
ethtool (ethtool -s eth0  speed 2500 autoneg off), but the ethtool 
reported this configuration as invalid?
3. At the end we are targeting print of "link up (2500/Full)"

Regards,
   Abhijit

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

* Re: Is advertising of 2500Mbps support must from phy device to set phy at 2500Mbps link speed
  2019-02-05  6:09 Is advertising of 2500Mbps support must from phy device to set phy at 2500Mbps link speed abhijit
@ 2019-02-05 14:56 ` Andrew Lunn
  2019-02-06 13:23   ` abhijit
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Lunn @ 2019-02-05 14:56 UTC (permalink / raw)
  To: abhijit; +Cc: netdev

On Tue, Feb 05, 2019 at 11:39:34AM +0530, abhijit wrote:
> Hi All,
> 
> We are using Ethernet MAC which has integrated Phy. This phy supports speed
> up to 10000Mbps. The phy has, 1000Base-X PCS(Physical Coding Sub-layer)
> followed by SerDes interface to support 10Mbps to 10000Mbps. Currently we
> are trying to get this phy at 2500Mbps. This device has 16 registers that
> corresponds to Clause 37, which can be used to advertise speed till
> 1000Mbps.
> So my question is,
> 1. Without phy advertising its capability of 2500Mbps, is there any way I
> can set phy speed at 2500Mbps?
> 2. I tried disabling auto-negotiation and setting speed at 2500Mbps with
> ethtool (ethtool -s eth0  speed 2500 autoneg off), but the ethtool reported
> this configuration as invalid?
> 3. At the end we are targeting print of "link up (2500/Full)"

Hi Abhijit

It all depends on what the PHY driver can do. It sounds like the PHY
driver does not support multi-gige speeds. So you probably need to
work on the PHY driver and add support for them.

What PHY is it?

     Andrew

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

* Re: Is advertising of 2500Mbps support must from phy device to set phy at 2500Mbps link speed
  2019-02-05 14:56 ` Andrew Lunn
@ 2019-02-06 13:23   ` abhijit
  2019-02-06 13:38     ` Andrew Lunn
  0 siblings, 1 reply; 5+ messages in thread
From: abhijit @ 2019-02-06 13:23 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: netdev

Hi Andrew,

Thank you very much for reply.

Please see my reply in-line


On Tuesday 05 February 2019 08:26 PM, Andrew Lunn wrote:
> On Tue, Feb 05, 2019 at 11:39:34AM +0530, abhijit wrote:
>> Hi All,
>>
>> We are using Ethernet MAC which has integrated Phy. This phy supports speed
>> up to 10000Mbps. The phy has, 1000Base-X PCS(Physical Coding Sub-layer)
>> followed by SerDes interface to support 10Mbps to 10000Mbps. Currently we
>> are trying to get this phy at 2500Mbps. This device has 16 registers that
>> corresponds to Clause 37, which can be used to advertise speed till
>> 1000Mbps.
>> So my question is,
>> 1. Without phy advertising its capability of 2500Mbps, is there any way I
>> can set phy speed at 2500Mbps?
>> 2. I tried disabling auto-negotiation and setting speed at 2500Mbps with
>> ethtool (ethtool -s eth0  speed 2500 autoneg off), but the ethtool reported
>> this configuration as invalid?
>> 3. At the end we are targeting print of "link up (2500/Full)"
> Hi Abhijit
>
> It all depends on what the PHY driver can do.
> It sounds like the PHY
> driver does not support multi-gige speeds. So you probably need to
> work on the PHY driver and add support for them.
Currently, we don't have any phy drivers. Generic driver doesn't seems 
to support 2500Mbps. If I have to write the driver, whether it is 
necessary for phy device to advertise speed of 2500Mbps?
>
> What PHY is it?
Phy is custom phy and is currently under test. If you know any phy 
device that supports 2500Mbps and whose data sheet is available freely 
please let me know.
>
>       Andrew


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

* Re: Is advertising of 2500Mbps support must from phy device to set phy at 2500Mbps link speed
  2019-02-06 13:23   ` abhijit
@ 2019-02-06 13:38     ` Andrew Lunn
  2019-02-08 10:37       ` abhijit
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Lunn @ 2019-02-06 13:38 UTC (permalink / raw)
  To: abhijit; +Cc: netdev

> Currently, we don't have any phy drivers. Generic driver doesn't seems to
> support 2500Mbps.

Correct. genphy only supports upto 1G. The c45 based genphy_c45 is
slowly gaining more features and might soon support 2.5G.

> If I have to write the driver, whether it is necessary for
> phy device to advertise speed of 2500Mbps?

The user could force it, using the ethool command you suggested. But
it is the PHY driver which configures this. If you add the driver code
to force it, you might as well add the driver code to allow it to be
negotiated.

> Phy is custom phy and is currently under test. If you know any phy device
> that supports 2500Mbps and whose data sheet is available freely please let
> me know.

There are none that i know of with open data sheets. However the IEEE
standards should be freely available and they describe the registers
the PHY is expected to have. There are also patches floating around
which add 2.5G and 5G support to the marvell10g driver. I expect these
patches to get merged soon, but maybe in a different form to make
genphy_c45 more generic.

	   Andrew

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

* Re: Is advertising of 2500Mbps support must from phy device to set phy at 2500Mbps link speed
  2019-02-06 13:38     ` Andrew Lunn
@ 2019-02-08 10:37       ` abhijit
  0 siblings, 0 replies; 5+ messages in thread
From: abhijit @ 2019-02-08 10:37 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: netdev

Thanks Andrew for your reply. I will have look at IEEE document and c45.


On Wednesday 06 February 2019 07:08 PM, Andrew Lunn wrote:
>> Currently, we don't have any phy drivers. Generic driver doesn't seems to
>> support 2500Mbps.
> Correct. genphy only supports upto 1G. The c45 based genphy_c45 is
> slowly gaining more features and might soon support 2.5G.
>
>> If I have to write the driver, whether it is necessary for
>> phy device to advertise speed of 2500Mbps?
> The user could force it, using the ethool command you suggested. But
> it is the PHY driver which configures this. If you add the driver code
> to force it, you might as well add the driver code to allow it to be
> negotiated.
>
>> Phy is custom phy and is currently under test. If you know any phy device
>> that supports 2500Mbps and whose data sheet is available freely please let
>> me know.
> There are none that i know of with open data sheets. However the IEEE
> standards should be freely available and they describe the registers
> the PHY is expected to have. There are also patches floating around
> which add 2.5G and 5G support to the marvell10g driver. I expect these
> patches to get merged soon, but maybe in a different form to make
> genphy_c45 more generic.
>
> 	   Andrew


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

end of thread, other threads:[~2019-02-08 10:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-05  6:09 Is advertising of 2500Mbps support must from phy device to set phy at 2500Mbps link speed abhijit
2019-02-05 14:56 ` Andrew Lunn
2019-02-06 13:23   ` abhijit
2019-02-06 13:38     ` Andrew Lunn
2019-02-08 10:37       ` abhijit

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.