Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1367422pxj; Fri, 4 Jun 2021 12:31:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzc1xmJmtlUPx0dx2iW8ll6RC/uZKzks6l+/asXogtAI2+LV0ZClL5BGzt6nkNyIXtd3Fo6 X-Received: by 2002:a17:906:e253:: with SMTP id gq19mr5912085ejb.138.1622835118382; Fri, 04 Jun 2021 12:31:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622835118; cv=none; d=google.com; s=arc-20160816; b=rVVSyKCYu30eN5NcD030Rj91x6ZnQX48POfx4iWi3B+aUiWzHmeVZPqkosm8gjOTEl Nmc3GruJdADkekOd0l9KkHKEmNi6ZHfSbiZV9MfFWc8ixHF720jwzmQsmaiCer64Cie7 LwW8ISOU4I74oRcJWgtSGLIJoQ5PmTOPLqP+WaeeP7ZYLtxbUjTNEwi4l4G0dCuvaAop OQ66PyS8LxpkIGgwTuNDEOvsNYhOBNu+IwvfWCKPFSZz+OGoYyc5Hjowzq1t11pq/w+a JLOsHFemFCTPb9OEgimtoLauiScY2Ci/pgzRgKgJ8BsMA4uh9DT1FHE4EU2trr1GFwdZ 034w== 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; bh=foBqGPqn1zYvQRbasNewDBSyRxBLbACdpX22RmIU6RY=; b=TIeRCed2EUKEa75c8Az5wHPZjxEok88ngELRoU91PzmHhvmNkh/+Q7+cnvmeMBSBiq cweKAQJHeXNX5qK45N2Lc6n39H0AiQg+3vTi3U5vYeyFhmqNg+2t+1H2h+BpSE4YLYjt lHQrsFeRzuonuHnLbF54Nn1H+wIXMbklfo9LvYuQoFT1fVXdUelZlVrJkdpvf2mDQKUk qy+fAcQaJpDPpilyoLdGmzTKE+nbXl6aE1752i/MzjBfTnovyrArBaHYgHi3s0Bx7hFZ JlogOuogRnvgis9w5N4kFq824jp5kDcTsPBZQena0wOdChqTJodKCCTc6pTG4/eaSiGS g6Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=n7FIFSpk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id m13si5421946edi.394.2021.06.04.12.31.34; Fri, 04 Jun 2021 12:31:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=n7FIFSpk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230022AbhFDTbp (ORCPT + 99 others); Fri, 4 Jun 2021 15:31:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbhFDTbo (ORCPT ); Fri, 4 Jun 2021 15:31:44 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F59DC061766; Fri, 4 Jun 2021 12:29:57 -0700 (PDT) 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=foBqGPqn1zYvQRbasNewDBSyRxBLbACdpX22RmIU6RY=; b=n7FIFSpkWc8zJnR7y0Ug2GUL3 yBEKK7vIU2lj2KuzDKlpsT5X58BQVVs+pH472jwDazU2VJ7EiMAiIyvwomjcOT+UCy2x2ndzhn4Pz Bc6FrrlSvQHHoDiF++mpjePiXj/RJ2cISwlYSAZ5iI30p3QSWdY4M1w2mtVYjQj8esKLuuV0hX7WE SRzRZcqXktnDlsaWzZsqOSFAdWC/f42PcEZR464Z6yx3VKf9sMNVFUyoOFMlZ6w5wAGWtN+eokqeE eqnFEUH8dWW8rc/Zkf2WhyPlClgNguuQnAks9SL38QoB/GBLZ9TQOOC0x2B8x3KUrE0O+kkU+lKUF uGwfy/YLg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:44714) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lpFTi-0004p8-Vb; Fri, 04 Jun 2021 20:27:34 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1lpFTh-0003JP-5D; Fri, 04 Jun 2021 20:27:33 +0100 Date: Fri, 4 Jun 2021 20:27:33 +0100 From: "Russell King (Oracle)" To: Madalin Bucur Cc: Pali =?iso-8859-1?Q?Roh=E1r?= , Andrew Lunn , Igal Liberman , Shruti Kanetkar , Emil Medve , Scott Wood , Rob Herring , Michael Ellerman , Benjamin Herrenschmidt , "netdev@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Camelia Alexandra Groza (OSS)" Subject: Re: Unsupported phy-connection-type sgmii-2500 in arch/powerpc/boot/dts/fsl/t1023rdb.dts Message-ID: <20210604192732.GW30436@shell.armlinux.org.uk> References: <20210603143453.if7hgifupx5k433b@pali> <20210603194853.ngz4jdso3kfncnj4@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 04, 2021 at 07:35:33AM +0000, Madalin Bucur wrote: > Hi, the Freescale emails no longer work, years after Freescale joined NXP. > Also, the first four recipients no longer work for NXP. > > In regards to the sgmii-2500 you see in the device tree, it describes SGMII > overclocked to 2.5Gbps, with autonegotiation disabled. > > A quote from a long time ago, from someone from the HW team on this: > > The industry consensus is that 2.5G SGMII is overclocked 1G SGMII > using XAUI electricals. For the PCS and MAC layers, it looks exactly > like 1G SGMII, just with a faster clock. > > The statement that it does not exist is not accurate, it exists in HW, and > it is described as such in the device tree. Whether or not it is properly > treated in SW it's another discussion. Here's the issue though: 802.3 defined 1000base-X which is a fixed 1G speed interface using a 16-bit control word. Implementations of this exist where the control word can be disabled. Cisco came along, took 1000base-X and augmented it to allow speeds of 10M and 100M by symbol repetition, and changing the format of the 16-bit control word. Otherwise, it is functionally compatible - indeed SGMII with the control word disabled will connect with 1000base-X with the control word disabled. I've done it several times. There exists 2500base-X, which is 1000base-X clocked faster, and it seems the concensus is that it has the AN disabled - in other words, no control word. Now you're saying that SGMII at 2.5G speed exists, which is 1G SGMII fixed at 1G speed, without a control word, upclocked by 2.5x. My question to you is how is how is this SGMII 2.5G different from 2500base-X? > In 2015, when this was submitted, > there were no other 2.5G compatibles in use, if I'm not mistaken. > 2500Base-X started to be added to device trees four years later, it should > be compatible/interworking but it is less specific on the actual implementation > details (denotes 2.5G speed, 8b/10b coding, which is true for this overclocked > SGMII). If they are compatible, SW should probably treat them in the same manner. My argument has been (since I've had experience of SGMII talking to 1000base-X, and have also accidentally clocked such a scenario at 2.5G speeds) that there is in fact no functional difference between SGMII and base-X when they are running at identical speeds with the control word disabled. Given that we well know that industry likes to use the term "SGMII" very loosely to mean base-X as well as SGMII, it becomes a very bad term to use when we wish to differentiate between a base-X and a real Cisco SGMII link with their different control word formats. And this has always been my point - industry has created confusion over these terms, but as software programmers, we need to know the difference. So, SGMII should _only_ be used to identify the Cisco SGMII modified version of 802.3 base-X _with_ the modified control word or with the capability of symbol repetition. In other words, the very features that make it SGMII as opposed to 802.3 base-X. Everything else should not use the term SGMII. > There were some discussions a while ago about the mix or even confusion between > the actual HW description (that's what the dts is supposed to do) and the settings > one wants to represent in SW (i.e. speed) denoted loosely by denominations like > 10G Base-R. The "confusion" comes from an abuse of terms. Abused terms really can't adequately be used to describe hardware properties. As I say above, we _know_ that some manufacturers state that their single lane serdes is "SGMII" when it is in fact 1000base-X. That doesn't mean we stuff "sgmii" into device tree because that's what the vendor decided to call it. "sgmii" in the device tree means Cisco's well defined SGMII and does not mean 1000base-X. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!