Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp60539lqb; Tue, 16 Apr 2024 08:49:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWEYyi8hQ7WxocNnTj61InGyOzwIE7mW46r19yDu8Ao/XYEP2T3X/VRd1qKsvO21GJcXqvX6vJa5znULUlTLUUnlM25Ze5A0lqG6rpqqA== X-Google-Smtp-Source: AGHT+IF30TF+H5oQzlL76m3vB+2jQ/qpqIlcADmNUpbppLFpnqmZTV6HtYO4vHE1QYsb7jWQ/cex X-Received: by 2002:a05:622a:14c6:b0:436:8e39:9c6a with SMTP id u6-20020a05622a14c600b004368e399c6amr16176088qtx.34.1713282546098; Tue, 16 Apr 2024 08:49:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713282546; cv=pass; d=google.com; s=arc-20160816; b=yiup6jecmak+NKaG/INP9OMD8tQe+8M+M5vc/tINi1Fsr4tyuoPgiEsUKfgMkHVepQ /uz+/9MipdV/khkhIh9K+6ejb6MwTgKQx9Ajv0GzqWUerRNL1KOLPFsc+jQeZjgGHUWN Rftq0/Tjr0bS16fH6DYTb2pJPQyt1JbB4DEDXP+TyiBSAH8rJC57Fh0z6WQZCxtqBXVt NPWBh8m98lyFXkOHZ/EsOfTaSH3mQSGWYmo7FjU+6tYT38XsKVPECkauEGfgELuI+1lx /7qmpqD9xtvuWmDg8pgk+JIAfvJAlrZh2uWaXekVh2R011wm22yn5YL7ZibPV0tSPyaA jwjg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=NVCA4wyFU9exr9tcOuCRXVzr7IFOkRpJTnTyMwRKb/Y=; fh=/991Uo+MfTsQQd6u9xPkxMw+6DZxZR/4Dby+4cbd9GE=; b=R6yrTUP2MZek8orl8mXNVlrb3xXyMsTjPiGV5qDB6QZebRs0i0nULAgfFsTqO9Gzz4 KNtcibstGdVfEDmLkPYhAr7NsvrC8h3tjXiiKNhypBpF3yt7cbYLCVztbFegRAfYK9f3 rVGSCmZTMCQbwYV9pUUWqJJYSfiHg+B2f3k+9fd4HhEraiUZk1h1Me0V8Aq53FJ9KMIc FnUCwrnz5hS67B008khp3wwnMtbyRBKSi3BkldIHKST4kDwOnUokvGuYNx7PqkPMtDKO 5LZMCi4ICen1zn1meeiBsZQ+kMYEKkRhIsXbKyS2IuuR+rNsgXpNlIfMjy6wid5/HfND Xo1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="vNe6/Btr"; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-147151-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147151-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ay20-20020a05622a229400b00436aeb27ceasi9290488qtb.142.2024.04.16.08.49.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 08:49:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147151-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="vNe6/Btr"; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-147151-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147151-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B683E1C20A2A for ; Tue, 16 Apr 2024 15:49:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2EE4E131746; Tue, 16 Apr 2024 15:48:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="vNe6/Btr" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8E0B130A76; Tue, 16 Apr 2024 15:48:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713282534; cv=none; b=qFmDIJIrdoXd01HEIEqGmX1YfgaHkVcgtE4l7c/5EbUtZG3hzN2gIRYjTHaTf9OdQQvdwRTNBPvm7ENo1CjC9O/sX68v+EZXsuHuLu3qQVED5CBw2keppocc98cQJOswFlwzhmG9uwonBuaLpH0mYnSHCKuqTE2Of64xXAzQLbc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713282534; c=relaxed/simple; bh=7LiuzRlYvi/96BvFLIFohrkKwHGDfivoCdvdPYQ/DZY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=F4/KldMongEJZfFMW67fBnmc3FrxG1HlptFxN8sY4dxSm5LpM5F8Sg5/zsbiXG5zEvsGK5uKcWfV+4EGixnAgMW0gELQnmovnP0ZuW/3SKAzwY4QaNA2+fLHTWNsdeP+7iuVvwkXeyCcGFoCIZtROXLWcnQ+wCdK/YYKE2kIuFo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=vNe6/Btr; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk 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=NVCA4wyFU9exr9tcOuCRXVzr7IFOkRpJTnTyMwRKb/Y=; b=vNe6/BtrCFUChNdBAmAQtdF7m0 klnwkXW067VvhjKBRYUQgr1B6eJRvKht/6EGx0Y9LDHmRbZMeLK228Rp6lRRGOWockUxHFUscjygL zzvzW9kd/04HGMjrbUG+KQo7IB5aLjkZzdLz+ty8oW/bPnfLTQ0iDg4UDWhKrZ5job7vEcQWVzP0h sjAJYRLWYf1X8ZmY27oniyalobcuHJ/LmiPQX9S5xwBXiVcPkRGljVBcgX0OeQuPJuuk5HbbldzZv +UmlLldaRskCEp6514Leom7uLjtNOljjr3UzQJm/f0SX5a9gpBBIrXZIupn6c6e5BQsILo/o+IOjn 4SCq10EA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:53342) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rwl2y-0000Zt-0V; Tue, 16 Apr 2024 16:48:36 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rwl2v-0004xT-TS; Tue, 16 Apr 2024 16:48:33 +0100 Date: Tue, 16 Apr 2024 16:48:33 +0100 From: "Russell King (Oracle)" To: Stefan Eichenberger Cc: Andrew Lunn , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, lxu@maxlinear.com, hkallweit1@gmail.com, michael@walle.cc, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 2/2] net: phy: mxl-gpy: add new device tree property to disable SGMII autoneg Message-ID: References: <20240416121032.52108-1-eichest@gmail.com> <20240416121032.52108-3-eichest@gmail.com> <3f7f278f-e490-47f1-971c-ecf44a70cee4@lunn.ch> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) On Tue, Apr 16, 2024 at 05:43:16PM +0200, Stefan Eichenberger wrote: > Hi Andrew, > > Thanks a lot for the feedback. > > On Tue, Apr 16, 2024 at 03:46:19PM +0200, Andrew Lunn wrote: > > On Tue, Apr 16, 2024 at 02:10:32PM +0200, Stefan Eichenberger wrote: > > > Add a new device tree property to disable SGMII autonegotiation and > > > instead use the option to match the SGMII speed to what was negotiated > > > on the twisted pair interface (tpi). > > > > Could you explain this is more detail. > > > > SGMII always runs its clocks at 1000Mbps. The MAC needs to duplicate > > the symbols 100 times when running at 10Mbs, and 10 times when running > > at 100Mbps. > > Currently, the mxl-gpy driver uses SGMII autonegotiation for 10 Mbps, > 100 Mbps, and 1000 Mbps. For our Ethernet controller, which is on an > Octeon TX2 SoC, this means that we have to enable "in-band-status" on > the controller. This will work for all three speed settings. However, if > we have a link partner that can do 2.5 Gbps, the mxl-gpy driver will > disable SGMII autonegotiation in gpy_update_interface. This is not > supported by this Ethernet controller because in-band-status is still > enabled. Therefore, we will not be able to transfer data at 2.5 Gbps, > the SGMII link will not go into a working state. I have been working on a phylink/phylib patch set to address this. As I've been busy with health-based appointments during last week and this week, I haven't been able to spend enough time to get that to a point that I'm happy to publish it yet. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!