netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gabriel Hojda <ghojda@yo2urs.ro>
To: Andrew Lunn <andrew@lunn.ch>
Cc: Martyn Welch <martyn.welch@collabora.com>,
	netdev <netdev@vger.kernel.org>
Subject: Re: Issues with smsc95xx driver since a049a30fc27c
Date: Mon, 20 Dec 2021 22:04:15 +0200	[thread overview]
Message-ID: <17c7d301d2c6e5307f1b0876c069e4f9@yo2urs.ro> (raw)
In-Reply-To: <YcBEgE589cf5DhJd@lunn.ch>

[-- Attachment #1: Type: text/plain, Size: 2627 bytes --]

On 2021-12-20 10:53, Andrew Lunn wrote:
>> # ip link set eth0 up
>> # ip link show eth0
>> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel 
>> state UP
>> mode DEFAULT group default qlen 1000
>>     link/ether ee:f1:a8:e7:0c:8f brd ff:ff:ff:ff:ff:ff
>> 
>> ... now link is up with the same mac address
>> 
>> # ifconfig eth0
>> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>>         inet6 2a02:2f09:3d09:1b00:ecf1:a8ff:fee7:c8f  prefixlen 64  
>> scopeid
>> 0x0<global>
>>         inet6 fe80::ecf1:a8ff:fee7:c8f  prefixlen 64  scopeid 
>> 0x20<link>
>>         inet6 fd00:cafe::c772:d58f:1061:4df3  prefixlen 64  scopeid
>> 0x0<global>
>>         inet6 fd00:cafe::ecf1:a8ff:fee7:c8f  prefixlen 64  scopeid
>> 0x0<global>
>>         inet6 2a02:2f09:3d09:1b00:eef4:bb1d:f9d5:febc  prefixlen 64  
>> scopeid
>> 0x0<global>
> 
> These make use of multicast. Router Advertisements are multicast, both
> at L2 and L3, by the router to the Internet.
> 
>> # ping -6 -c 10 ipv6.l.google.com
>> PING ipv6.l.google.com(ipv6.l.google.com (2a00:1450:400d:806::200e)) 
>> 56 data
>> bytes
>> From odroid (2a02:2f09:3d09:1b00:eef4:bb1d:f9d5:febc) icmp_seq=1 
>> Destination
>> unreachable: Address unreachable
>> ...
>> --- ipv6.l.google.com ping statistics ---
>> 10 packets transmitted, 0 received, +7 errors, 100% packet loss, time 
>> 9311ms
> 
> ping uses unicast.
> 
>> ... neither does it work for my local router, so network layer 3 does 
>> not
>> seem to work
> 
> I think it is still pointing towards L2 unicast.
> 
>> next, when i have time and if there's still no progress, i think i 
>> should
>> try to insert:
>> 
>>         ret = smsc95xx_reset(dev);
>> 	if (ret)
>> 		goto free_pdata;
>> 
>> before
>> 
>> 	ret = phy_connect_direct(dev->net, pdata->phydev,
>> 				 &smsc95xx_handle_link_change,
>> 				 PHY_INTERFACE_MODE_MII);
>> 
>> in smsc95xx_bind() to try to emulate the old behavior for the first 
>> call to
>> start_phy().
> 
> Yes, that will be in interesting experiment. Something in
> smsc95xx_reset() is required.
> 
> 	Andrew

well, i recompiled 5.15.10 with that change and network is still not 
working. then i disabled NetworkManager and rebooted. after boot i 
issued following commands:

# ethtool -d eth0
# ip link set dev eth0 up
# ethtool -d eth0

for 5.15.5 (working kernel), 5.15.8 (unmodified, not working kernel), 
5.15.10 (modified as above, not working kernel).

obviously, in these register dumps there are 3 different mac addresses 
(8 bytes at offset 0x0104) ... but the rest could provide a clue (for 
someone who can make sense of those values).

Gabriel



[-- Attachment #2: 5.15.5-test.txt --]
[-- Type: text/plain, Size: 2370 bytes --]

# ethtool -d eth0
Offset		Values
------		------
0x0000:		00 00 30 97 00 00 00 00 00 00 00 00 00 00 00 00 
0x0010:		04 00 00 00 22 14 00 00 00 00 00 00 00 20 00 00 
0x0020:		80 00 00 00 00 00 11 01 8f 00 00 ff a1 30 f8 00 
0x0030:		00 00 00 00 00 00 00 00 25 00 00 00 50 00 00 00 
0x0040:		00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 
0x0050:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0060:		00 00 00 00 00 00 00 00 00 80 00 00 00 20 00 00 
0x0070:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0080:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0090:		00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 
0x00a0:		00 00 04 00 00 00 01 00 00 00 00 00 00 00 00 00 
0x00b0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x00c0:		00 00 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 
0x00d0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x00e0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x00f0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0100:		0c 00 00 00 bd 89 00 00 ee 97 78 58 00 00 00 00 
0x0110:		00 00 00 00 c0 08 00 00 01 c1 00 00 00 00 00 00 
0x0120:		00 81 00 00 ff ff 00 00 00 00 00 00 00 00 00 00 
0x0130:		01 00 01 00 
# ip link set dev eth0 up
# ethtool -d eth0
Offset		Values
------		------
0x0000:		00 00 30 97 00 00 00 00 00 00 00 00 00 00 00 00 
0x0010:		04 00 00 00 22 14 00 00 00 00 00 00 00 20 00 00 
0x0020:		80 00 00 00 00 00 11 01 8f 00 00 ff a1 30 f8 00 
0x0030:		00 00 00 00 00 00 00 00 25 00 00 00 50 00 00 00 
0x0040:		00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 
0x0050:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0060:		00 00 00 00 00 00 00 00 00 80 00 00 00 20 00 00 
0x0070:		00 00 00 00 3d 00 3d 00 00 00 00 00 59 01 59 01 
0x0080:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0090:		00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 
0x00a0:		00 00 04 00 00 00 01 00 00 00 00 00 00 00 00 00 
0x00b0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x00c0:		00 00 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 
0x00d0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x00e0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x00f0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0100:		0c 20 00 00 0c 8f 00 00 ee f1 a8 e7 00 00 40 40 
0x0110:		02 01 04 80 40 08 00 00 2d 78 00 00 00 00 00 00 
0x0120:		00 81 00 00 ff ff 00 00 00 00 00 00 00 00 00 00 
0x0130:		01 00 01 00 

[-- Attachment #3: 5.15.8-test.txt --]
[-- Type: text/plain, Size: 2370 bytes --]

# ethtool -d eth0
Offset		Values
------		------
0x0000:		00 00 30 97 00 00 00 00 00 00 00 00 00 00 00 00 
0x0010:		04 00 00 00 22 14 00 00 00 00 00 00 00 20 00 00 
0x0020:		80 00 00 00 00 00 11 01 8f 00 00 ff a1 30 f8 00 
0x0030:		00 00 00 00 00 00 00 00 25 00 00 00 50 00 00 00 
0x0040:		00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 
0x0050:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0060:		00 00 00 00 00 00 00 00 00 80 00 00 00 20 00 00 
0x0070:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0080:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0090:		00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 
0x00a0:		00 00 04 00 00 00 01 00 00 00 00 00 00 00 00 00 
0x00b0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x00c0:		00 00 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 
0x00d0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x00e0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x00f0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0100:		0c 00 00 00 23 84 00 00 12 a8 1c 00 00 00 00 00 
0x0110:		00 00 00 00 00 08 00 00 00 30 00 00 00 00 00 00 
0x0120:		00 81 00 00 ff ff 00 00 00 00 00 00 00 00 00 00 
0x0130:		01 00 01 00 
# ip link set dev eth0 up
# ethtool -d eth0
Offset		Values
------		------
0x0000:		00 00 30 97 00 00 00 00 00 00 00 00 00 00 00 00 
0x0010:		04 00 00 00 22 14 00 00 00 00 00 00 00 20 00 00 
0x0020:		80 00 00 00 00 00 11 01 8f 00 00 ff a1 30 f8 00 
0x0030:		00 00 00 00 00 00 00 00 25 00 00 00 50 00 00 00 
0x0040:		00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 
0x0050:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0060:		00 00 00 00 00 00 00 00 00 80 00 00 00 20 00 00 
0x0070:		00 00 00 00 00 00 00 00 00 00 00 00 03 01 03 01 
0x0080:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0090:		00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 
0x00a0:		00 00 04 00 00 00 01 00 00 00 00 00 00 00 00 00 
0x00b0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x00c0:		00 00 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 
0x00d0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x00e0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x00f0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0100:		0c 20 00 00 23 84 00 00 12 a8 1c 00 00 00 00 40 
0x0110:		02 01 00 80 40 08 00 00 2d 78 00 00 00 00 00 00 
0x0120:		00 81 00 00 ff ff 00 00 00 00 00 00 00 00 00 00 
0x0130:		01 00 01 00 

[-- Attachment #4: 5.15.10-test.txt --]
[-- Type: text/plain, Size: 2370 bytes --]

# ethtool -d eth0
Offset		Values
------		------
0x0000:		00 00 30 97 00 00 00 00 00 00 00 00 00 00 00 00 
0x0010:		04 00 00 00 22 14 00 00 00 00 00 00 00 20 00 00 
0x0020:		80 00 00 00 00 00 11 01 8f 00 00 ff a1 30 f8 00 
0x0030:		00 00 00 00 00 00 00 00 25 00 00 00 50 00 00 00 
0x0040:		00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 
0x0050:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0060:		00 00 00 00 00 00 00 00 00 80 00 00 00 20 00 00 
0x0070:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0080:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0090:		00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 
0x00a0:		00 00 04 00 00 00 01 00 00 00 00 00 00 00 00 00 
0x00b0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x00c0:		00 00 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 
0x00d0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x00e0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x00f0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0100:		0c 00 00 00 26 45 00 00 d6 1b 00 d2 00 00 00 00 
0x0110:		00 00 00 00 00 08 00 00 00 30 00 00 00 00 00 00 
0x0120:		00 81 00 00 ff ff 00 00 00 00 00 00 00 00 00 00 
0x0130:		01 00 01 00 
# ip link set dev eth0 up
# ethtool -d eth0
Offset		Values
------		------
0x0000:		00 00 30 97 00 00 00 00 00 00 00 00 00 00 00 00 
0x0010:		04 00 00 00 22 14 00 00 00 00 00 00 00 20 00 00 
0x0020:		80 00 00 00 00 00 11 01 8f 00 00 ff a1 30 f8 00 
0x0030:		00 00 00 00 00 00 00 00 25 00 00 00 50 00 00 00 
0x0040:		00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 
0x0050:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0060:		00 00 00 00 00 00 00 00 00 80 00 00 00 20 00 00 
0x0070:		00 00 00 00 df 00 df 00 00 00 00 00 9f 01 9f 01 
0x0080:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0090:		00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 
0x00a0:		00 00 04 00 00 00 01 00 00 00 00 00 00 00 00 00 
0x00b0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x00c0:		00 00 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 
0x00d0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x00e0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x00f0:		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0x0100:		0c 20 00 00 26 45 00 00 d6 1b 00 d2 00 00 00 40 
0x0110:		02 01 30 80 40 08 00 00 2d 78 00 00 00 00 00 00 
0x0120:		00 81 00 00 ff ff 00 00 00 00 00 00 00 00 00 00 
0x0130:		01 00 01 00 

  reply	other threads:[~2021-12-20 22:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-17 15:45 Issues with smsc95xx driver since a049a30fc27c Martyn Welch
2021-12-18 16:45 ` Andrew Lunn
2021-12-18 17:23   ` Gabriel Hojda
2021-12-18 18:22     ` Andrew Lunn
2021-12-18 18:32       ` Andrew Lunn
2021-12-18 20:33         ` Gabriel Hojda
2021-12-20 10:37           ` Markus Reichl
     [not found]         ` <c95954ec12dfcf8877c1bf92047c0268@yo2urs.ro>
2021-12-20  8:53           ` Andrew Lunn
2021-12-20 20:04             ` Gabriel Hojda [this message]
2021-12-20 21:28             ` Gabriel Hojda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17c7d301d2c6e5307f1b0876c069e4f9@yo2urs.ro \
    --to=ghojda@yo2urs.ro \
    --cc=andrew@lunn.ch \
    --cc=martyn.welch@collabora.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).