Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2227982rdb; Thu, 21 Sep 2023 12:08:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGqVnYUTPrIMlgqDcPyw0bEkqRFOCOo3WM3xmX/DYe45u2k96sRPHQAxi+eq2FdEufM926/ X-Received: by 2002:a17:903:2303:b0:1b0:3ab6:5140 with SMTP id d3-20020a170903230300b001b03ab65140mr600493plh.4.1695323293258; Thu, 21 Sep 2023 12:08:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695323293; cv=none; d=google.com; s=arc-20160816; b=Kike7y3zptT6yK+hdHpOdgkvKGs6Dbh7fgqhQmQTAztt2QEEBCvnluR7LDOTxz1RP2 LEUbufhHF7yFYxdr+MH+YW2Qv6AtUiRkkdEnAnD4TMyb4DgySWA20mtgVhIbc3wAPUxp vMna2IudCadCLK/z87t0mhYgwWd+wfOHU8Z9JPG1O7GGfx5tpeluuM+AD8qwqsEE//69 B4PMhiqe/MJHRhQ/o+ePUX4YgGzIsY+jGKvwvXRnbPvnx4fWQQFyvtfYmHeasPV41HIm OaDX7jD2u0R9V3/0WBYNJR0Q4yToTihlWGSYMHk9PrWDNKJBP5d0UOWMrOkUAkOlHsfc /+lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=QISaqh9G4DzFpv5qasHYVcLuNJPZgvVZsAh/znxO66M=; fh=TY23MrS2FZe7S+2KmEkdWdiS2sT7hrcuNadNNFLZQmE=; b=CYzWIxWqrmCcX1wY7By0YLcRmI0EutomY/SLsdmOJE+4XHZJ9tMobBc5C+SsX71IFo wmaJTndZojZoQnQ/NyvtsV7PUIngEy4MUBUdSD02NIzKatRPsT9nP7wssYjcbZl6pOVe 9rCjB5LhsqNmOuVDnzTj8x9pbQz0+fVAOuVJLc6r029UwAe+6lrVVxGeco4Z4r3y0Qn0 yY/u62059BjJYW4oL3cp8JZfKi86Jw+c3+YzLEYHx0tfAUfvkTf1LyjPjDKQBwtbub6r O7kv/Lk5OrNGfD95OD5nvcwsfNbmcvVo4sJ3RsjsS5N65fBLG97se7cUDxpMyaMxATJr aUsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=VTNXQ5zm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id e11-20020a170902b78b00b001bbc84f3ba7si1946325pls.282.2023.09.21.12.08.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 12:08:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=VTNXQ5zm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 45B1F838066D; Thu, 21 Sep 2023 11:56:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230412AbjIUS4F (ORCPT + 99 others); Thu, 21 Sep 2023 14:56:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230036AbjIUSzv (ORCPT ); Thu, 21 Sep 2023 14:55:51 -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 C09A572402; Thu, 21 Sep 2023 10:56:20 -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=QISaqh9G4DzFpv5qasHYVcLuNJPZgvVZsAh/znxO66M=; b=VTNXQ5zmMk1xgow0SjFQvHt7VN 0OlTTyoPg7ZIpxBxeIU5typ9qHlfn0/xSso3I2iftYkpqJ634DTbhiaQtB5l3Wd87OYBZJNU2Bb6d eML8VrqhPP2DcRnLyCt8/fybhGJnmThXov9Re3ZPC+3fbPOkMd7IlkHUHiwD67n4Wd5Bgc6TD0sKM 0kAhDgWRq0aHFtC2k/M7p2kExzhACC/czUICFb7UJiHO+JpDzMVRg6nM/tqBqvNi2q0RTpXoNfn4n Hfy3Vn4bcwu0knjJwimf2lmh9X5OEEvxP2vZbojvJhogNjHL5KmgfH28RdQWEFu9Rhk/sdAtzXaRK Nl880l+g==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:54114) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qjKMe-0004lU-0u; Thu, 21 Sep 2023 15:09:08 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qjKMb-0003aw-Q8; Thu, 21 Sep 2023 15:09:05 +0100 Date: Thu, 21 Sep 2023 15:09:05 +0100 From: "Russell King (Oracle)" To: Andrew Lunn Cc: Choong Yong Liang , Rajneesh Bhardwaj , David E Box , Hans de Goede , Mark Gross , Jose Abreu , Heiner Kallweit , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Marek =?iso-8859-1?Q?Beh=FAn?= , Jean Delvare , Guenter Roeck , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Richard Cochran , Philipp Zabel , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Wong Vee Khee , Jon Hunter , Jesse Brandeburg , Revanth Kumar Uppala , Shenwei Wang , Andrey Konovalov , Jochen Henneberg , David E Box , Andrew Halaney , Simon Horman , Bartosz Golaszewski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, platform-driver-x86@vger.kernel.org, linux-hwmon@vger.kernel.org, bpf@vger.kernel.org, Voon Wei Feng , Tan Tee Min , Michael Sit Wei Hong , Lai Peter Jun Ann Subject: Re: [PATCH net-next v3 0/5] TSN auto negotiation between 1G and 2.5G Message-ID: References: <20230921121946.3025771-1-yong.liang.choong@linux.intel.com> <4caade36-d4be-4670-ac79-d9d00488293d@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4caade36-d4be-4670-ac79-d9d00488293d@lunn.ch> Sender: Russell King (Oracle) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 21 Sep 2023 11:56:23 -0700 (PDT) On Thu, Sep 21, 2023 at 03:14:59PM +0200, Andrew Lunn wrote: > > Auto-negotiation between 10, 100, 1000Mbps will use > > in-band auto negotiation. Auto-negotiation between 10/100/1000Mbps and > > 2.5Gbps will work as the following proposed flow, the stmmac driver reads > > the PHY link status registers then identifies the negotiated speed. > > I don't think you replied to my comment. > > in-band is just an optimisation. It in theory allows you to avoid a > software path, the PHY driver talking to the MAC driver about the PHY > status. As an optimisation, it is optional. Linux has the software > path and the MAC driver you are using basically has it implemented. Sorry Andrew, I have to disagree. It isn't always optional - there are PHYs out there where they won't pass data until the in-band exchange has completed. If you try to operate out-of-band without the PHY being told that is the case, and program the MAC/PCS end not to respond to the in-band frames from the PHY, the PHY will report link up as normal (since it reports the media side), but no data will flow because the MAC facing side of the PHY hasn't completed. The only exception are PHYs that default to in-band but have an inband bypass mode also enabled to cover the case where the MAC/PCS doesn't respond to the inband messages. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!