From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED, USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75682C43381 for ; Wed, 27 Feb 2019 23:27:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 161902133D for ; Wed, 27 Feb 2019 23:27:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="EUof5NsP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730263AbfB0X1q (ORCPT ); Wed, 27 Feb 2019 18:27:46 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:38834 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728397AbfB0X1p (ORCPT ); Wed, 27 Feb 2019 18:27:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=bdCZBcIaqWY0uE6znd8jyPCPDrHa8dHrRSvM8TQlJCQ=; b=EUof5NsPl1Jbvl2lktGGd982G g0vHbKhCAMBPZfi7PsGda3h16t/+SmHUzOJSR1rupn84nE0/cLE5sN8GQVp0mu6m59GpEUNED4N+l OnLvV5jIv1DuFTnd4+gNaKRgiXpsafNEqOqVebwgD0X7JikIC08m7dxgLlNAEgZBgOpJ3AEwOeyX0 75P17UOmiiITUdHwTOYErVZ/EjudPT6L4Tc9I7CN/rLIfyBkZ/UCR5s5QAq2Fit7mw6GwhO8a7UJt RJxOyb/ql5sb32B8zr/ja5j3KjFqYhvoq/J7AbreY/b5mCZ28xrGD6aIk+g3O7Sy6aldLcI9Nicz4 tF83IzJiA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:51504) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1gz8c2-00055Y-3D; Wed, 27 Feb 2019 23:27:42 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.89) (envelope-from ) id 1gz8c1-0006uF-CQ; Wed, 27 Feb 2019 23:27:41 +0000 Date: Wed, 27 Feb 2019 23:27:41 +0000 From: Russell King - ARM Linux admin To: Andrew Lunn Cc: Heiner Kallweit , Florian Fainelli , "netdev@vger.kernel.org" Subject: Re: phylink / mv8e6xxx and SGMII aneg not working, link doesn't come up Message-ID: <20190227232741.7yw2r53evdgaunri@shell.armlinux.org.uk> References: <20190227225221.vubwqa6vg5odq26w@shell.armlinux.org.uk> <20190227231940.GN3809@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190227231940.GN3809@lunn.ch> User-Agent: NeoMutt/20170113 (1.7.2) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, Feb 28, 2019 at 12:19:40AM +0100, Andrew Lunn wrote: > > >From what you've described, it sounds like what you actually have is: > > > > MAC <---> Serdes PHY <---> PHY > > > > The Serdes PHY receives the SGMII in-band negotiation from the external > > PHY, but there is no propagation of the status from the serdes PHY to > > the MAC. > > Yes, that is a good description. So far, we have not yet got the MAC > to read the speed and duplex from the SERDES to configure itself. In > theory it should be able to, it is all in the same device. > > It might be that once the SERDES interrupts saying it has link we need > to program the MAC with the result of the in-band signalling. in-band > then seems a bit pointless. Or we are missing some configuration > somewhere to tell the MAC to use the in-band signalling result from > the SERDES. in-band doesn't become pointless if we can't read from the PHY at the other end of the in-band link (for example, a Microtik copper SFP module with an AR8033 on, which has no connectivity to the host other than the serdes lane.) -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up