Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752686AbdL0XUj (ORCPT ); Wed, 27 Dec 2017 18:20:39 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:49350 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751881AbdL0XUi (ORCPT ); Wed, 27 Dec 2017 18:20:38 -0500 Date: Wed, 27 Dec 2017 23:20:00 +0000 From: Russell King - ARM Linux To: Antoine Tenart Cc: davem@davemloft.net, kishon@ti.com, andrew@lunn.ch, jason@lakedaemon.net, sebastian.hesselbarth@gmail.com, gregory.clement@free-electrons.com, mw@semihalf.com, stefanc@marvell.com, ymarkman@marvell.com, thomas.petazzoni@free-electrons.com, miquel.raynal@free-electrons.com, nadavh@marvell.com, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jon Nettleton Subject: Re: [PATCH net-next 5/6] arm64: dts: marvell: mcbin: enable the fourth network interface Message-ID: <20171227231959.GU10595@n2100.armlinux.org.uk> References: <20171227221446.18459-1-antoine.tenart@free-electrons.com> <20171227221446.18459-6-antoine.tenart@free-electrons.com> <20171227222401.GT10595@n2100.armlinux.org.uk> <20171227224252.GB2626@kwain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171227224252.GB2626@kwain> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3205 Lines: 78 On Wed, Dec 27, 2017 at 11:42:52PM +0100, Antoine Tenart wrote: > Hi Russell, > > On Wed, Dec 27, 2017 at 10:24:01PM +0000, Russell King - ARM Linux wrote: > > On Wed, Dec 27, 2017 at 11:14:45PM +0100, Antoine Tenart wrote: > > > > > > +&cps_eth2 { > > > + /* CPS Lane 5 */ > > > + status = "okay"; > > > + phy-mode = "2500base-x"; > > > + /* Generic PHY, providing serdes lanes */ > > > + phys = <&cps_comphy5 2>; > > > +}; > > > + > > > > This is wrong. This lane is connected to a SFP cage which can support > > more than just 2500base-X. Tying it in this way to 2500base-X means > > that this port does not support conenctions at 1000base-X, despite > > that's one of the most popular and more standardised speeds. > > What do you suggest to describe this in the dt, to enable a port using > the current PPv2 driver? I don't - I'm merely pointing out that you're bodging support for the SFP cage rather than productively discussing phylink for mvpp2. As far as I remember, the discussion stalled at this point: - You think there's modes that mvpp2 supports that are not supportable if you use phylink. - I've described what phylink supports, and I've asked you for details about what you can't support. Unfortunately, no details have been forthcoming, and no further discussion has occurred - the ball is entirely in your court to progress this issue since I requested information from you and that is where things seem to have stalled. The result is that, with your patch, you're locking the port to 2.5G speeds, meaning that only 4.3Mbps Fibrechannel SFPs can be used with the port, and it can only be used with another device that supports 2.5G speeds. You can't use a copper RJ45 module, and you can't use a standard 1000base-X module either in this configuration. What I'm most concerned about, given the bindings for comphy that have been merged, is that Free Electrons is pushing forward seemingly with no regard to the requirement that the serdes lanes are dynamically reconfigurable, and that's a basic requirement for SFP, and for the 88x3310 PHYs on the Macchiatobin platform. So, my question to you is: what is Free Electrons plans to properly support the ethernet ports on the Macchiatobin platform? For those on the Cc list who don't know, phylink is part of full support for SFP and SFP+ cages, sponsored (in terms of hardware including SFP modules) by SolidRun on both SolidRun's Clearfog and Macchiatobin platforms, supporting a wide range of SFP modules including: - 1G Optical ethernet modules (duplex and bidi modules) - 10/100/1G RJ45 modules - 10G SFP+ modules - 2.5Gbase-X using 4.3Mbps Fibrechannel modules - Direct attach cables There is work ongoing between Florian, Andrew and myself to switch DSA to phylink, and have SFP modules working with both Marvell and Broadcom DSA switches. Phylink and SFP was already merged into mainline, and has been usable (provided that the network driver is converted to phylink rather than phylib) since 4.14-rc1. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up