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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2BCCBC77B75 for ; Mon, 15 May 2023 21:46:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=z7ul74oOYsjQDQfhBwcMUu1jBToJk+Ey7KF1iESn0vI=; b=UySAlpoty3aiw5 nhdRqVnpFKODcXR9oIdca06CnI/k+OowfbrUld7WcVK/yWw6+ULZ7f+u5Kv3qha++/QSwc9UszsSi CQN+DANXmaQdSuFF5Cmja57MV/ediO76bK2vhCz4ctVZnh2OjTBHUweCvQEqu4pJ4Y+VBVddJoLLu QHwgQVXIV+kNLvFCBaO/KoWkmgHlbTn/fLcXGWLSaUje7bjslHE4BQsKSIzbeHeJ9fPAxRiQr3Ma4 7d8+kyba8A23SRadmbNEy0zyLBIR3oQFyeazfmi+Wn+pcA7DyUmf/oOf77iiftLYt/S4OO2ao5PfE mBBsvxY88tdtph4OUOhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pyg15-003acE-2t; Mon, 15 May 2023 21:46:03 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pyg0z-003aao-39; Mon, 15 May 2023 21:46:02 +0000 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=W3TE4ccIZBaLyijVR8GPmMnmsWRf/mMHqj2NaoV8t1E=; b=Bz9orKkAmQvhzEvjgWOhLpC5+8 XDVRWXUdjF5ad9I4IzOv+EAQMokwJuzytLihdJnn0dLiIPCeF2sOa6bffUb+m5KMC1Z8UAmLIVx2j zOvjxTAFiHBOpl9l5MXu8l1KhP8AJlO0SBSqQxhCYi2lbMpkVaTurrarCs36pO8DmVukTdItiYS11 T5EZadEFot1wShkwkNMKjweQd6kFRZncw4yRJKBAzz1ETShaIuuuvzOrgBPMR6QNb4xJZscVHZSMo xBVwxPuFQyuhLhCzzeo4f4/cN8POmCJv7YuK/OQNYW6P9HhITDAzKVN9Eo73zeqyuBsQcr25lTDFw DscYXzYQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:51262) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pyg0W-0004fD-QR; Mon, 15 May 2023 22:45:28 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1pyg0P-00006m-6q; Mon, 15 May 2023 22:45:21 +0100 Date: Mon, 15 May 2023 22:45:21 +0100 From: "Russell King (Oracle)" To: Vladimir Oltean Cc: Andrew Lunn , AngeloGioacchino Del Regno , Daniel Machon , "David S. Miller" , Eric Dumazet , Felix Fietkau , Florian Fainelli , Heiner Kallweit , Horatiu Vultur , Ioana Ciornei , Jakub Kicinski , John Crispin , Jose Abreu , Lars Povlsen , Lorenzo Bianconi , Marcin Wojtas , Mark Lee , Matthias Brugger , Maxime Chevallier , Paolo Abeni , Sean Wang , Steen Hegelund , Taras Chornyi , Thomas Petazzoni , UNGLinuxDriver@microchip.com, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, netdev@vger.kernel.org Subject: Re: [PATCH RFC] Providing a helper for PCS inband negotiation Message-ID: References: <20230515195616.uwg62f7hw47mktfu@skbuf> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230515195616.uwg62f7hw47mktfu@skbuf> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230515_144558_020493_5D3EBF4A X-CRM114-Status: GOOD ( 18.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, May 15, 2023 at 10:56:16PM +0300, Vladimir Oltean wrote: > Hello, > > On Mon, May 15, 2023 at 01:22:50PM +0100, Russell King (Oracle) wrote: > > 1. Should 10GBASE-KR be included in the SGMII et.al. case in the code? > > Any other interface modes that should be there? Obviously, > > PHYLINK_PCS_NEG_NONE is not correct for 10GBASE-KR since it does use > > inband AN. Does it make sense for the user to disable inband AN for > > 10GBASE-KR? If so, maybe it should be under the 1000base-X case. > > What physical process (reference to IEEE 802.3 clause is fine) would be > controlled by the phylink_pcs_neg_mode() function for the so-called > 10GBASE-KR phy-mode? Clause 73.1: "While implementation of Auto-Negotiation is mandatory for Backplane Ethernet PHY s, the use of Auto-Negotiation is optional." "The Auto-Negotiation function allows the devices to switch between the various operational modes in an orderly fashion, permits management to disable or enable the Auto-Negotiation function, and allows management to select a specific operational mode." "The Auto-Negotiation function also provides a parallel detection function to allow Backplane Ethernet devices to connect to other Backplane Ethernet devices that have Auto-Negotiation disabled and interoperate with legacy devices that do not support Clause 73 Auto-Negotiation." So, my reading of these statements is that the _user_ should be able to control via ethtool whether Clause 73 negotiation is performed on a 10GBASE-KR (or any other backplane link that uses clause 73 negotiation.) Having extracted that from 802.3, I now believe it should be treated the same as 1000BASE-X, and the Autoneg bit in ethtool should determine whether Clause 73 negotiation is used for 10GBASE-KR (and any other Clause 73 using protocol.) -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel