lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAH9_wROZsX1d3iEGUxs2yo8V9PArbUKnL1cyn_+NT+K2+c_t3Q@mail.gmail.com>
Date:   Fri, 17 Feb 2017 21:42:28 +0530
From:   Sriram V <vshrirama@...il.com>
To:     Andrew Lunn <andrew@...n.ch>
Cc:     netdev@...r.kernel.org
Subject: Re: Autoneg off in TI cpsw driver

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@...37xevm:/ # 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@...37xevm:/ # 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@...37xevm:/ #
root@...37xevm:/ #
root@...37xevm:/ # ethtool -s eth1 speed 10 duplex full autoneg off
root@...37xevm:/ # [  159.532534] libphy: 4a101000.mdio:01 - Link is Down

root@...37xevm:/ # 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@...37xevm:/ # 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@...37xevm:/ #

On Fri, Feb 17, 2017 at 12:31 AM, Sriram V <vshrirama@...il.com> 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 <andrew@...n.ch> wrote:
>> 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ