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=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS 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 7460EC43381 for ; Wed, 27 Feb 2019 23:52:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3E5F7218AC for ; Wed, 27 Feb 2019 23:52:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="oDSU9uKa" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730427AbfB0XwG (ORCPT ); Wed, 27 Feb 2019 18:52:06 -0500 Received: from mail-wr1-f54.google.com ([209.85.221.54]:35808 "EHLO mail-wr1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730149AbfB0XwB (ORCPT ); Wed, 27 Feb 2019 18:52:01 -0500 Received: by mail-wr1-f54.google.com with SMTP id t18so19955485wrx.2 for ; Wed, 27 Feb 2019 15:52:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0Ho15Ff8BX5OjMhnTjXOxpSi8f93sQwGRa4ZrCNQmZ4=; b=oDSU9uKasuETwjn6aJ2kQ4DgZ4hXjMfloKrlidkMIQvFCunVgcv/S/rd/MtVEsi5Sc gqiM9OqOlZRlAhkmzlZsNCGsgxFohmEjkCYwU1phe/B9hIbGMdOlJ2GH9f/wPsQkDLVa w3ZlXI2nDiIroTKveLh9AVyNTLwvnqaX8ugXAkokWTqLeMa/cJ2T/jx+SFSb55Sp1Se/ GGZl5rZqJ4nbu4AA0naTM86Xx+xk5+TJXJxN7SL7ZW5MXiZ8k4jWoUcIegZcrDxMZ08g 3kahhd10+S28a7F3VpA3nBQUNbvyPz0eQoakXZZW9qI5jSiI1QXk5KqS8L9i2PY6khQj w8dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0Ho15Ff8BX5OjMhnTjXOxpSi8f93sQwGRa4ZrCNQmZ4=; b=nDCs70zJtZJV4aOpdno6hsRevgFyjs/Oz3WOa431M7PSvOKAfW4zoQRgXJYS7pDrvo HuPFewfkh7cjQ2H8cQyQhkkyBWmps7bAPJjJHYzZlEJeYcoWCvq8/lKEBuvZ2KBqXso7 /bcbeJexWMXRa1O1Vdg7oz1iCguaJzeI1qH3SuBgkwg1wJudJEUXgLT15Vd/KKJt06Gv C7Fis8/UMSkjzcvnmDGprGXSyL6ljLxMT6C7M/5J3jpeYxnhqSjPVytjtlqcn2vVwXr6 peLlOTrfAwINhc25yZsP6GjsHb8TNm+Z+lo1I7TXXycxetSUPpjKqM5vwBEzokE1LpiL k6Wg== X-Gm-Message-State: APjAAAVw0C8AYRjLDbUWZXD6IfMTdHTAWR6E1XVySlPEmSZ0QKE0YXX3 +/maqH6mylISn140FChro278qoYq X-Google-Smtp-Source: APXvYqxUMGfUlNkhRILziRQjzYNhEzUiQJSfgWFcKqips7PHMjrhdXviNRN5qYY/X3OXg0xMcsW1zA== X-Received: by 2002:adf:f102:: with SMTP id r2mr4107864wro.288.1551311519345; Wed, 27 Feb 2019 15:51:59 -0800 (PST) Received: from ?IPv6:2003:ea:8bf1:e200:7597:929b:df9d:5281? (p200300EA8BF1E2007597929BDF9D5281.dip0.t-ipconnect.de. [2003:ea:8bf1:e200:7597:929b:df9d:5281]) by smtp.googlemail.com with ESMTPSA id h9sm39637574wrv.11.2019.02.27.15.51.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Feb 2019 15:51:58 -0800 (PST) Subject: Re: phylink / mv8e6xxx and SGMII aneg not working, link doesn't come up To: Andrew Lunn , Russell King - ARM Linux admin Cc: Florian Fainelli , "netdev@vger.kernel.org" References: <20190227225221.vubwqa6vg5odq26w@shell.armlinux.org.uk> <20190227231940.GN3809@lunn.ch> From: Heiner Kallweit Message-ID: <116d8984-8845-cd2b-8a41-1cc80be9b12c@gmail.com> Date: Thu, 28 Feb 2019 00:51:54 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190227231940.GN3809@lunn.ch> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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. As a fallback we have the option to go with out-of-band. > Andrew > > Heiner