Hi,
I am using a Linux Kernel 4.1 Kernel. on AM437X with dual emac configuration.
What i find is if i do the following the Link does not come up.
1. run ethtool -s eth1 speed 10 duplex full autoneg off
2. remove cable
3. plug it in.
With the above sequence. The link does not come up. the plug in is not detected
Am i missing something or is this the default behaviour.
Regards,
Sriram
On Fri, Feb 17, 2017 at 12:01:32AM +0530, Sriram V wrote:
Hi,
I am using a Linux Kernel 4.1 Kernel. on AM437X with dual emac configuration.
What i find is if i do the following the Link does not come up.
1. run ethtool -s eth1 speed 10 duplex full autoneg off
2. remove cable
3. plug it in.
With the above sequence. The link does not come up. the plug in is not detected
Hi Sriram
There are a few different layers involved in this, we need to
determine which layer is unhappy.
What does ethtool show?
What does ip link show indicate?
Andrew
Hi Andrew,
1. run ethtool -s eth1 speed 10 duplex full autoneg off
2. ethtool eth1 <-------------- shows link up
3. remove cable <------- ethtool shows link down
4. plug it in. <---------- ethtool Still shows link down
I don't have the ip utility. I will cross compile it and get back to you.
Thanks,
Sriram
On Fri, Feb 17, 2017 at 12:27 AM, Andrew Lunn [off-list ref] wrote:
On Fri, Feb 17, 2017 at 12:01:32AM +0530, Sriram V wrote:
quoted
Hi,
I am using a Linux Kernel 4.1 Kernel. on AM437X with dual emac configuration.
What i find is if i do the following the Link does not come up.
1. run ethtool -s eth1 speed 10 duplex full autoneg off
2. remove cable
3. plug it in.
With the above sequence. The link does not come up. the plug in is not detected
Hi Sriram
There are a few different layers involved in this, we need to
determine which layer is unhappy.
What does ethtool show?
What does ip link show indicate?
Andrew
Hi Andrew,
The following is the output of the ethtool and iplink. After turning
off the autoneg - The Plugin is not detected.
Let me know if this is a general behaviour or a bug in cpsw driver.
root@am437xevm:/ # ethtool eth1
Settings for eth1:
Supported ports: [ TP AUI BNC MII FIBRE ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000000 (0)
Link detected: yes
root@am437xevm:/ # ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT qlen 10
link/can
3: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast
state DOWN mode DEFAULT qlen 1000
link/ether c4:be:84:12:ae:0a brd ff:ff:ff:ff:ff:ff
4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP mode DEFAULT qlen 1000
link/ether c4:be:84:34:af:0b brd ff:ff:ff:ff:ff:ff
root@am437xevm:/ #
root@am437xevm:/ #
root@am437xevm:/ # ethtool -s eth1 speed 10 duplex full autoneg off
root@am437xevm:/ # [ 159.532534] libphy: 4a101000.mdio:01 - Link is Down
root@am437xevm:/ # ethtool eth1
Settings for eth1:
Supported ports: [ TP AUI BNC MII FIBRE ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: No
Speed: 10Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: off
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000000 (0)
Link detected: no
root@am437xevm:/ # ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT qlen 10
link/can
3: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast
state DOWN mode DEFAULT qlen 1000
link/ether c4:be:84:12:ae:0a brd ff:ff:ff:ff:ff:ff
4: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast
state DOWN mode DEFAULT qlen 1000
link/ether c4:be:84:34:af:0b brd ff:ff:ff:ff:ff:ff
root@am437xevm:/ #
On Fri, Feb 17, 2017 at 12:31 AM, Sriram V [off-list ref] wrote:Hi Andrew,
1. run ethtool -s eth1 speed 10 duplex full autoneg off
2. ethtool eth1 <-------------- shows link up
3. remove cable <------- ethtool shows link down
4. plug it in. <---------- ethtool Still shows link down
I don't have the ip utility. I will cross compile it and get back to you.
Thanks,
Sriram
On Fri, Feb 17, 2017 at 12:27 AM, Andrew Lunn [off-list ref] wrote:
quoted
On Fri, Feb 17, 2017 at 12:01:32AM +0530, Sriram V wrote:
quoted
Hi,
I am using a Linux Kernel 4.1 Kernel. on AM437X with dual emac configuration.
What i find is if i do the following the Link does not come up.
1. run ethtool -s eth1 speed 10 duplex full autoneg off
2. remove cable
3. plug it in.
With the above sequence. The link does not come up. the plug in is not detected
Hi Sriram
There are a few different layers involved in this, we need to
determine which layer is unhappy.
What does ethtool show?
What does ip link show indicate?
Andrew