Received: by 10.213.65.68 with SMTP id h4csp1513430imn; Mon, 19 Mar 2018 06:19:51 -0700 (PDT) X-Google-Smtp-Source: AG47ELsVsq/t6pacTvDxoBp6Kkf5CCfrpeFhO04T2YnlRDwbFvaIUxKsh/lcpf2YxlQi+KQjH3O9 X-Received: by 10.101.80.205 with SMTP id s13mr8919511pgp.285.1521465591395; Mon, 19 Mar 2018 06:19:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521465591; cv=none; d=google.com; s=arc-20160816; b=ztGiTyfBwPVOCT8KOK8L/jOSweQk2cqqoqX7QJX97s2Ow39K3rqjhAcid0WGJRN6de 7n6Is42QeP/bVL+9mcmZNT4+ZlvwGd23OubDGXOly01+ATEAFh1NKjtZiCL+b4bfxMtO B8Iymc6Ul9UI4gMnj70bgQ6fLwMseTCikHoy2zjxdCbO0P9tlVe3chT7sovGN/b/kC9A 8rhJPXqGaPYOEafUn7+OSCSPJ5IFLYWqWhFp5459RkuHiTLkeBpuAOBsL4aQWVJRANrp j8JwKkt8Oe0DxzFXMgCuyka49hUfKk/ISb/AV0uRKHY50OQiFGDT9zuPuzrELhnSBVWY w3cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=5VjoZthaPg/Ey/WFpvY5uVkQ+n9/aY5/ThmkWycH308=; b=C4maTLsNmWKGHPgeujl6fRcvumD+/HpS0vN81JTcP2EX+tczNLUpi88omXhq8m/gOc efrMvz57bcEltg+8cziJ0ULqdyB8XoZIy7OEDUw+/7uuwV4V0UVnok8mLgGakmKDhJUX nZMFN4TFzUMBSoyimODpTpP1ngkW0vQDI+YgV86694DLkar1c1OZXV1yZajJ/aCVM8N+ csk224jkUWeq39Xg4CKUM717KywIYi/h58z+yETK8KmThTP18NEmTW4vvSprV6tluEAz 24rXjKtr/363+umctRRtYQ1RRD278MWwCHTMrKy60o9Xf2tiuWVhR8UfWS20XXQ2RCM4 YGDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=Fcrb99dg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t9si5005pgq.271.2018.03.19.06.19.37; Mon, 19 Mar 2018 06:19:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=Fcrb99dg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933289AbeCSNS1 (ORCPT + 99 others); Mon, 19 Mar 2018 09:18:27 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:40670 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932883AbeCSNSX (ORCPT ); Mon, 19 Mar 2018 09:18:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=5VjoZthaPg/Ey/WFpvY5uVkQ+n9/aY5/ThmkWycH308=; b=Fcrb99dg69XthvH415GO8P6SzG+nP4xOVBoIXfFBTez+g3nx8QZgZGlwLrnOj8dGRmHYWZWG6GTU1GoNASrF0SR0eejw6bKdicHxBSEkwp5oUOV8w8XqEsuJ+Cvq72v3cBz/UgR+3Dsb22J3xifewo3abJdcgtLcH/09fmfgr4w=; Received: from n2100.armlinux.org.uk ([fd8f:7570:feb6:1:214:fdff:fe10:4f86]:41431) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1exug0-0008Lq-FY; Mon, 19 Mar 2018 13:18:12 +0000 Received: from linux by n2100.armlinux.org.uk with local (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1exufv-0006rP-Ie; Mon, 19 Mar 2018 13:18:07 +0000 Date: Mon, 19 Mar 2018 13:18:05 +0000 From: Russell King - ARM Linux To: Antoine Tenart Cc: Andrew Lunn , davem@davemloft.net, kishon@ti.com, gregory.clement@bootlin.com, jason@lakedaemon.net, sebastian.hesselbarth@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, maxime.chevallier@bootlin.com, miquel.raynal@bootlin.com, nadavh@marvell.com, stefanc@marvell.com, ymarkman@marvell.com, mw@semihalf.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH net-next 02/10] net: phy: phylink: allow 10GKR interface to use in-band negotiation Message-ID: <20180319131804.GD2743@n2100.armlinux.org.uk> References: <20180316103351.16616-1-antoine.tenart@bootlin.com> <20180316103351.16616-3-antoine.tenart@bootlin.com> <20180316155307.GQ9418@n2100.armlinux.org.uk> <20180319085252.GF4519@kwain> <20180319111205.GB2743@n2100.armlinux.org.uk> <20180319125227.GI4519@kwain> <20180319125953.GD19795@lunn.ch> <20180319131009.GJ4519@kwain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180319131009.GJ4519@kwain> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 19, 2018 at 02:10:09PM +0100, Antoine Tenart wrote: > Hi Andrew, > > On Mon, Mar 19, 2018 at 01:59:53PM +0100, Andrew Lunn wrote: > > > > If they don't have PHYs, how are the connected to the outside world? > > On 7k/8k you have the following scheme for 10G only interfaces: > > MAC -- Comphy -- PHY -- SFP cage -- ... > > Or > > MAC -- Comphy -- SFP cage -- ... > > The comphy provides serdes lanes, and can be configured in various > modes (SGMII, 2500SGMII, 10GKR...). Right - the correct mode is dependent on the SFP module plugged into the cage. Trying to describe this by ignoring the SFP cage isn't going to work out well for end-user functionality, though is fine if you're just hacking a configuration to test (which would not be suitable for mainline kernels!) As I've recently replied to Yan, this is a configuration I haven't tested yet, and it's entirely possible that phylink may need some tweaks for it. What you have is a very similar setup to what is on Clearfog with its SFP cage, where the SFP cage is connected directly to the Armada 388. That only has to deal with 2500base-X / 1000base-X / SGMII and not 10G. What I want is to avoid hacks as much as possible here - if there is a short-coming with SFP/phylink here, we need to address that properly. -- 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