[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YapE3I0K4s1Vzs3w@lunn.ch>
Date: Fri, 3 Dec 2021 17:25:00 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Martyn Welch <martyn.welch@...labora.com>
Cc: Vivien Didelot <vivien.didelot@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
Vladimir Oltean <olteanv@...il.com>, netdev@...r.kernel.org,
kernel@...labora.com, Russell King <rmk+kernel@...linux.org.uk>
Subject: Re: mv88e6240 configuration broken for B850v3
> Hi Andrew,
Adding Russell to Cc:
> I'm currently in the process of updating the GE B850v3 [1] to run a
> newer kernel than the one it's currently running.
Which kernel exactly. We like bug reports against net-next, or at
least the last -rc.
> This device (and others in the same family) use a mv88e6240 switch to
> provide a number of their ethernet ports. The CPU link on the switch is
> connected via a PHY, as the network port on the SoM used is exposed via
> a PHY.
>
> The ports of the B850v3 stopped working when I upgraded, bisecting
> resulted in me finding that this commit was the root cause:
>
> 3be98b2d5fbc (refs/bisect/bad) net: dsa: Down cpu/dsa ports phylink
> will control
>
> I think this is causing the PHY on the mv88e6240 side of the CPU link
> to be forced down in our use case.
>
> I assume an extra check is needed here to stop that in cases like ours,
> though I'm not sure what at this point. Any ideas?
>From the commit message.
DSA and CPU ports can be configured in two ways. By default, the
driver should configure such ports to there maximum bandwidth. For
most use cases, this is sufficient. When this default is insufficient,
a phylink instance can be bound to such ports, and phylink will
configure the port,
You have a phy-handle in your node:
port@4 {
reg = <4>;
label = "cpu";
ethernet = <&switch_nic>;
phy-handle = <&switchphy4>;
};
so i would expect there to be a phylink instance. The commit message
continues to say:
and phylink will
configure the port, e.g. based on fixed-link properties.
So i think you are asking the wrong question. It is not an extra check
is needed here, we need to understand why phylink is not configuring
the MAC. Or is that configuration wrong.
I suggest you add #define DEBUG 1 to the very top of
drivers/net/phy/phylink.c so we can see what phylink is doing.
Andrew
Powered by blists - more mailing lists