Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp3461234rwo; Fri, 4 Aug 2023 05:26:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEIPNkHibCI4VyXN+40EO9BRRj7ZTtx/jjcP/QNn1rXOA6RhvDQTAVv/CTUfHoK+4DJ2pDv X-Received: by 2002:a17:90a:bc1:b0:268:37b:a10e with SMTP id x1-20020a17090a0bc100b00268037ba10emr1257352pjd.11.1691151997673; Fri, 04 Aug 2023 05:26:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691151997; cv=none; d=google.com; s=arc-20160816; b=iXAR7gFXpl7cb65yN+vcKaSGFu5qxk10jVma8WWPHVNagOVzLXbIFZZk/kEKdBW8FP 1ME2aKnzT3Vtb6L9hEm5epO6WYkSHCSM8+/hv7k5LsHFhXmj0hHlXLiZeuKU121Jjopf yDfHvvyyd0ktWGal0aUT1b3yewfhacm3xQREpHL7yRBbxjhx1k4xj0cgpaNTn80WWOOy SI1Tmkt6JbzsUQe8HmWHAfxXefl/Zjz1qg26NghaZkzHBhtyD5GWgaf0p1Fs4muZbaJ+ BMxwH3YS/DP/1dm2Pw0yS3jXh9tth0tJgGPTE/4VNwTc2QGbykjmcfmp0A+wQseIGtin PVDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BF7IxsJwwF3H6hTxOnnRHhHm2pxerHz0TwcwSYZ5mmo=; fh=nyTxw2mTL3THfiIJIA+ymn0zWOxJAlRrT2ptuHGDEUw=; b=GnzekE6wwIlpKE8cDOLSzjjKQ3zPHgxqmhHRI55CCsaGIsdkRa8FOgxmVRWyqdB9/G /svxIZygqKok6yA25MWRo2AcjDrsEqgyKpSCL1+VPLAmg9pIA1Ic0EfkBijEsS0w+tJe V5lWY3A/YNplUlKSIzB/UxofDqm/cSZB1vlVMWReRKDNXheBHs3QseLxMQIh1hqXaVrC g4tOT9KiBu9u+uq9BADK+0DEEgQ6ODTLE2C6zq+we8fV6KfvsJWw6r2JEGTHQZDu95/R Xc50Q1eJdAKtY4CANqysH0NmxTNZ17DdhvPvh+rThBEaoeavfeSWcPLcW/8kNVII0SJq uV2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=hnITZz2x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x6-20020a17090ab00600b00267eefee39fsi4937056pjq.131.2023.08.04.05.26.25; Fri, 04 Aug 2023 05:26:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=hnITZz2x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229702AbjHDMFY (ORCPT + 99 others); Fri, 4 Aug 2023 08:05:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbjHDMFX (ORCPT ); Fri, 4 Aug 2023 08:05:23 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43C75B1; Fri, 4 Aug 2023 05:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=BF7IxsJwwF3H6hTxOnnRHhHm2pxerHz0TwcwSYZ5mmo=; b=hn ITZz2x2U9gv8VyS3tbPuS1qJb2s+QdLDombVGgJBuIMp94B/jdNGHm1K8rEfkYkMQ3+ewn5LIO6kF LbiK6e4ZLwcXUaPHNQrnsjqHyQv9cFjU/JmA3DscTJjlqurbFbCQLAHvCpreRbwfhm9fptZMUrUZ6 wuSJ327BFnrmpP0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qRtXG-0034lQ-BA; Fri, 04 Aug 2023 14:04:02 +0200 Date: Fri, 4 Aug 2023 14:04:02 +0200 From: Andrew Lunn To: Choong Yong Liang Cc: Rajneesh Bhardwaj , David E Box , Hans de Goede , Mark Gross , Jose Abreu , Heiner Kallweit , Russell King , "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 , 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 v2 0/5] TSN auto negotiation between 1G and 2.5G Message-ID: <5bd05ba2-fd88-4e5c-baed-9971ff917484@lunn.ch> References: <20230804084527.2082302-1-yong.liang.choong@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230804084527.2082302-1-yong.liang.choong@linux.intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 04, 2023 at 04:45:22PM +0800, Choong Yong Liang wrote: > Intel platforms’ integrated Gigabit Ethernet controllers support > 2.5Gbps mode statically using BIOS programming. In the current > implementation, the BIOS menu provides an option to select between > 10/100/1000Mbps and 2.5Gbps modes. Based on the selection, the BIOS > programs the Phase Lock Loop (PLL) registers. The BIOS also read the > TSN lane registers from Flexible I/O Adapter (FIA) block and provided > 10/100/1000Mbps/2.5Gbps information to the stmmac driver. But > auto-negotiation between 10/100/1000Mbps and 2.5Gbps is not allowed. > The new proposal is to support auto-negotiation between 10/100/1000Mbps > and 2.5Gbps . 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. > Based on the speed stmmac driver will identify TSN lane registers from > FIA then send IPC command to the Power Management controller (PMC) > through PMC driver/API. PMC will act as a proxy to programs the > PLL registers. Have you considered using out of band for all link modes? You might end up with a cleaner architecture, and not need any phylink/phylib hacks. Andrew