Re: DP83867 ethernet PHY regression

From: Francesco Dolcini
Date: Mon May 22 2023 - 11:35:43 EST


On Mon, May 22, 2023 at 05:15:56PM +0200, Andrew Lunn wrote:
> On Mon, May 22, 2023 at 04:58:46PM +0200, Francesco Dolcini wrote:
> > Hello all,
> > commit da9ef50f545f ("net: phy: dp83867: perform soft reset and retain
> > established link") introduces a regression on my TI AM62 based board.
> >
> > I have a working DTS with Linux TI 5.10 downstream kernel branch, while
> > testing the DTS with v6.4-rc in preparation of sending it to the mailing
> > list I noticed that ethernet is working only on a cold poweron.
>
> Do you have more details about how it does not work.
>
> Please could you use:
>
> mii-tool -vvv ethX

please see the attached files:

working_da9ef50f545f_reverted.txt
this is on a v6.4-rc, with da9ef50f545f reverted

not_working.txt
v6.4-rc not working

working.txt
v6.4-rc working


It looks like, even on cold boot, it's not working in a reliable way.
Not sure the exact difference when it's working and when it's not.

> in both the good and bad state. The register values might give us a
> clue.

Thanks for your help,
Francesco

Using SIOCGMIIPHY=0x8947
eth0: negotiated 1000baseT-FD flow-control, link ok
registers for MII PHY 0:
1140 796d 2000 a231 05e1 c5e1 006f 2001
5806 0200 3800 0000 0000 4007 0000 3000
5048 ac02 ec10 0004 2bc7 0000 0000 0040
6150 4444 0002 0000 0000 0000 0282 0000
product info: vendor 08:00:28, model 35 rev 1
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
Using SIOCGMIIPHY=0x8947
eth0: negotiated 1000baseT-FD flow-control, link ok
registers for MII PHY 0:
1140 796d 2000 a231 05e1 c5e1 006d 2001
5806 0200 3800 0000 0000 4007 0000 3000
5048 af02 ec10 0000 2bc7 0000 0000 0040
6150 4444 0002 0000 0000 0000 0282 0000
product info: vendor 08:00:28, model 35 rev 1
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
Using SIOCGMIIPHY=0x8947
eth0: negotiated 1000baseT-FD flow-control, link ok
registers for MII PHY 0:
1140 796d 2000 a231 05e1 c5e1 006f 2001
5806 0200 3800 0000 0000 4007 0000 3000
5048 ac02 ec10 0000 2bc7 0000 0000 0040
6150 4444 0002 0000 0000 0000 0282 0000
product info: vendor 08:00:28, model 35 rev 1
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control