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.3 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT 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 6C858C43381 for ; Thu, 28 Feb 2019 14:04:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2FAC82171F for ; Thu, 28 Feb 2019 14:04:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="zfprflhE" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731953AbfB1OEz (ORCPT ); Thu, 28 Feb 2019 09:04:55 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:41627 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726124AbfB1OEy (ORCPT ); Thu, 28 Feb 2019 09:04:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender: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=hJ/wTAEKNhhmBu3FLG3njx8vhD7g+C8+KQL43uLeG5Q=; b=zfprflhEOBI4TyONlj3QN4gM5N uG6/wVJG7s+XnkepUyHqOCKm92R+2pNdTtEbsAVUElssGDXtuvQtb3Q/vqXeHJoZUiW64To0T0n4Y 8d/+klPPGRzGO+he/iLkpGpeuvpGQPvqb52HUsYh0VzIZFD9GmAeFCfyQ3d0ClhHLKAA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1gzMIq-00022w-Ql; Thu, 28 Feb 2019 15:04:48 +0100 Date: Thu, 28 Feb 2019 15:04:48 +0100 From: Andrew Lunn To: Heiner Kallweit Cc: Russell King - ARM Linux admin , Florian Fainelli , "netdev@vger.kernel.org" Subject: Re: phylink / mv8e6xxx and SGMII aneg not working, link doesn't come up Message-ID: <20190228140448.GR3809@lunn.ch> References: <20190227225221.vubwqa6vg5odq26w@shell.armlinux.org.uk> <20190227231940.GN3809@lunn.ch> <116d8984-8845-cd2b-8a41-1cc80be9b12c@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <116d8984-8845-cd2b-8a41-1cc80be9b12c@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, Feb 28, 2019 at 12:51:54AM +0100, Heiner Kallweit wrote: > On 28.02.2019 00:19, 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. > > > I'll play a little with it and see whether I get it working. Hi Heiner It would be good to get the MAC using the in-band signalling. Try bit 12. The table of cmodes does suggest SGMII mode should have that bit set. Andrew