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 39E86C169C4 for ; Wed, 6 Feb 2019 13:23:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 053B320823 for ; Wed, 6 Feb 2019 13:23:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="uHZVnu8i" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730895AbfBFNXw (ORCPT ); Wed, 6 Feb 2019 08:23:52 -0500 Received: from mail-pf1-f174.google.com ([209.85.210.174]:35631 "EHLO mail-pf1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730602AbfBFNXu (ORCPT ); Wed, 6 Feb 2019 08:23:50 -0500 Received: by mail-pf1-f174.google.com with SMTP id z9so3069180pfi.2 for ; Wed, 06 Feb 2019 05:23:50 -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-transfer-encoding:content-language; bh=ssUDbfgUWV14DdJPF/HFdShRRWTsV/M2Ls+HtZGI9ac=; b=uHZVnu8igGagQIiJFehW2eQP9PHL+1vBnboLzMAF9NxKxIRo4AXWnNFYyUD7C0NuYa dvqfJUJ3Rblo4KlJyQyy0tjvtz0n4vZiuyA+BKfphTN5YJnN292CNcLlm6ZUfsOIGn5+ 31YazMI/dK1jokTUUrYxsHE/voLCJj+03+eHcJbCB7NLLS5dkwMV0NUsCGQVZ2We+Gs1 bX6BBeIVC62mBCEZgpA5aoGKUF615qgCHxNyWk7s8wj75rxJsPZgOUmBtGI84Q+zVHB9 kj0UDbxdy64MYiWZ44Qmf+qhXxKYuo3w6df8U8Bfs+2ghSIam5Vt1i9RFQDENn2ELghU 61dg== 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-transfer-encoding :content-language; bh=ssUDbfgUWV14DdJPF/HFdShRRWTsV/M2Ls+HtZGI9ac=; b=ZOVpGTVNtNA4eJ4YPYe4+w0eioGbafmTad5cUeusPLO6cw0yjmr7lvg5Y8LvQij4MP x+FcIgqoWqFAvhMVTv0KdrDkPIND7AE4vn7EeXLJgxuQKTElryOpHIjQ5JjzIFfViaeW 5Ms5XGXyRm5vHb3cbwZCu8WEqBA2cZMvqFmvs4xfTfLQVXgnq1l2YYMOB1m2UG2LhpYL y5U8CToNa/j4KWLZu4MzyY1alt+gS1YMdYB9F08Mqtsp1ddSkrNV5HFVs/50wE4YLyCQ PsElr/35BmJ2oNyGM5J276WR1IYm5BCoEQPBj1AQiRNUwuAI6MfmA/hyJutC40KI1Sq4 PDMA== X-Gm-Message-State: AHQUAuYuu68/VbXUfhdivPMJVaLLgXHy3fjRhfmf5Z3uIdAbWILcELUj MMUi5ol1AELwOC84Td/bXgz4NA6c X-Google-Smtp-Source: AHgI3IZEZT/0QMhpU9LfPmmdloMO/Y8k7QjiKaw6KcouFQ1d5E4Zg7924BVoFe/tClwnVSN2m+SqdQ== X-Received: by 2002:a63:f006:: with SMTP id k6mr9532202pgh.259.1549459429403; Wed, 06 Feb 2019 05:23:49 -0800 (PST) Received: from [10.4.1.121] ([103.66.79.50]) by smtp.gmail.com with ESMTPSA id c4sm11619816pfm.151.2019.02.06.05.23.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Feb 2019 05:23:48 -0800 (PST) Subject: Re: Is advertising of 2500Mbps support must from phy device to set phy at 2500Mbps link speed To: Andrew Lunn Cc: netdev@vger.kernel.org References: <496b56c8-666a-7c5c-f3c6-0e709584ec0d@gmail.com> <20190205145601.GJ3397@lunn.ch> From: abhijit Message-ID: Date: Wed, 6 Feb 2019 18:53:44 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190205145601.GJ3397@lunn.ch> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi Andrew, Thank you very much for reply. Please see my reply in-line On Tuesday 05 February 2019 08:26 PM, Andrew Lunn wrote: > On Tue, Feb 05, 2019 at 11:39:34AM +0530, abhijit wrote: >> Hi All, >> >> We are using Ethernet MAC which has integrated Phy. This phy supports speed >> up to 10000Mbps. The phy has, 1000Base-X PCS(Physical Coding Sub-layer) >> followed by SerDes interface to support 10Mbps to 10000Mbps. Currently we >> are trying to get this phy at 2500Mbps. This device has 16 registers that >> corresponds to Clause 37, which can be used to advertise speed till >> 1000Mbps. >> So my question is, >> 1. Without phy advertising its capability of 2500Mbps, is there any way I >> can set phy speed at 2500Mbps? >> 2. I tried disabling auto-negotiation and setting speed at 2500Mbps with >> ethtool (ethtool -s eth0  speed 2500 autoneg off), but the ethtool reported >> this configuration as invalid? >> 3. At the end we are targeting print of "link up (2500/Full)" > Hi Abhijit > > It all depends on what the PHY driver can do. > It sounds like the PHY > driver does not support multi-gige speeds. So you probably need to > work on the PHY driver and add support for them. Currently, we don't have any phy drivers. Generic driver doesn't seems to support 2500Mbps. If I have to write the driver, whether it is necessary for phy device to advertise speed of 2500Mbps? > > What PHY is it? Phy is custom phy and is currently under test. If you know any phy device that supports 2500Mbps and whose data sheet is available freely please let me know. > > Andrew