Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp908552rwl; Thu, 10 Aug 2023 03:41:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHNx7WUC2sRayklSfr/t6G2UItRr5SBhcnqD2Opa9QrHTJEPXi2udNy8k3xuM8g9Ie5KBdW X-Received: by 2002:a05:6402:524b:b0:522:28b9:e84c with SMTP id t11-20020a056402524b00b0052228b9e84cmr1840729edd.21.1691664090912; Thu, 10 Aug 2023 03:41:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691664090; cv=none; d=google.com; s=arc-20160816; b=mX8pJtrXI31YKf9ONvrJ1XKbmXNEkR4FEkBaKMsCVKw8ff0k3uuoGsoxvQK2FRaZZ3 DapLUXd9WpYAI4P7nN+XScz7PE1uLuojca/2AMtR5IzAOOXipYcNR2IMmo7NGI2UVpnS L/PKKoFyNnsPxS5hrfYm/PHFlcxUdu0dNo0HVdWOa9v+tqxJmH/Z7HptJs5C6UA11sCl XGTIbMpxu7md/iCorAPW4HePJXJZPyh174e9D2ryMotPNEeDcBiGVxmplCNdq0T7q80l EC3EOThvIiRkoFkIw1zMJ3RmiJ5eUQlH+KboxzIq6ho3ujkSy+OAppA6CXz3HhNcIt62 htAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=DOGPi6gZ4e6FwfybCpNWzgIWa+YKnzBVS/V0k7699O8=; fh=wpuzkj1XvbvHgFmk+vGcDMLu+2T1K+w9xSENoOG8lvo=; b=Z7ucOc1VLzaei1fgGlWbQgh1kcjkKGuDB5uqOuBUvd1Y8FzKYgtadfZzLV8zh67MNy iazN4ar+ZIuzdTKsfjUBigA1hrk9g4EAhHZMmqCgKKqlfhZuZSqqQJi8jrl57Zh1zfA7 eG/5uIdiFPJUxR92mu22vEcjyn6P083Br1UasDcMkNxRgEXKCS6sHCkjIMDuCAK6HD0s 27lNXXmEVuU5k4kf676x1eScirdp39/Z/srVTOvSpm50eF5pmnaEde7XqLO6ME3Q+Tej T5o5YYhTdySUp+fdTi+VYUa0lKzRHZMP7ncLr/w/fyWJdQo7uLTYaSzRULuZVxijKjOC MJ7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Pjlp4NDN; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l17-20020a056402029100b0051e0bcda174si1109845edv.308.2023.08.10.03.41.00; Thu, 10 Aug 2023 03:41:30 -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=@intel.com header.s=Intel header.b=Pjlp4NDN; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233954AbjHJJw2 (ORCPT + 99 others); Thu, 10 Aug 2023 05:52:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbjHJJw0 (ORCPT ); Thu, 10 Aug 2023 05:52:26 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58D7C211B; Thu, 10 Aug 2023 02:52:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691661146; x=1723197146; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=0QXCdnIeDvNVhe3zDIXfKLHqjJhkR646hmb6U9XbWSc=; b=Pjlp4NDNGMDyCcIa4mvhaYddipIjoLKEoU5aZ743tqoSdWpB/EFe93YC PW4KbQoE49DrQauDTH5Zm3y530T+5hZs219c+a0Ped1oK/LL8NUi4hRcw Fnv4C39ySNuZo1tD5ygw23FBfajZpb2uxT4Yu48+JWMComWWWKV67RvpJ AQbEb8N9WYR3jjAYDVqoF1HwpyNRuRXHkIxBB/1AdPzEuOtVGO0GfU8/r cU4Rat2tPxkc93+R6QRwyrVufvSbI+MI+rgowaolTB+5T1TBvy5ZA3Mgl LxhgiU0eljl8u1Tx9DcVp6oPhuu2IZKcxRbbyp8R0obCcgQzcB9zDTUnj Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10797"; a="368810604" X-IronPort-AV: E=Sophos;i="6.01,161,1684825200"; d="scan'208";a="368810604" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2023 02:52:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10797"; a="732142399" X-IronPort-AV: E=Sophos;i="6.01,161,1684825200"; d="scan'208";a="732142399" Received: from choongyo-mobl.gar.corp.intel.com (HELO [10.213.42.193]) ([10.213.42.193]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2023 02:52:13 -0700 Message-ID: <5e113258-7cb4-e503-5009-e46cd3aa5bee@linux.intel.com> Date: Thu, 10 Aug 2023 17:52:10 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH net-next v2 0/5] TSN auto negotiation between 1G and 2.5G Content-Language: en-US To: Andrew Lunn 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 , =?UTF-8?Q?Marek_Beh=c3=ban?= , 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 References: <20230804084527.2082302-1-yong.liang.choong@linux.intel.com> <5bd05ba2-fd88-4e5c-baed-9971ff917484@lunn.ch> From: Choong Yong Liang In-Reply-To: <5bd05ba2-fd88-4e5c-baed-9971ff917484@lunn.ch> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 4/8/2023 8:04 pm, Andrew Lunn wrote: > 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 Hi Andrew, Thank you for your feedback. I will study the feasibility of the out-of-band (OOB) approach.