Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2503791rdb; Thu, 21 Sep 2023 23:48:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGLy9cJEn3RK5O459ZGgFOAczdgrKVkFfupHmPeaaEe7O1w5W8OhcX9Q8MS9t0B41VR8L17 X-Received: by 2002:a05:6a00:1508:b0:68b:c562:da65 with SMTP id q8-20020a056a00150800b0068bc562da65mr7983104pfu.26.1695365304306; Thu, 21 Sep 2023 23:48:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695365304; cv=none; d=google.com; s=arc-20160816; b=H3FORn3ECMVOPO5fiWXGFH1TF1VgMftXKRkovBX9SPF2GLe5azDTalTpT3yevkOZdL Ud4W0Y6Buq60tTM+cXGqVR3Ir1tMZW2lVmHWw4kFYiwVSIwXvQp3OEoqXQq76zvInfRE vrhiugdxuvemAvOgfNO1ISm7s4XovIK8/U8BYzyUX2Umnks510FmmCRAPcvpz5t7br5e 9HvaOHu581aO8KeqDe91Rd4VzqpbuPwQ42/Y0Jrq7Xv1sTqV+DB+oVrHQGWbL9tb7gou qSO0syPjYNObNm0XIkYLQsMKBZDDCXBo3BieKUAusVA7mrWF6ZAbI+1s9TdewIqFtK5a KB+g== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=JsGfpBtjHUU53D8niDQ19qXl3xzSYntYa6kqZwjEbII=; fh=3rPzO6vNENrhwkilgcmlxNdnEvyNxIWxCktI/Q+WoZE=; b=Dp6Hq7LhpGOI9USKj8odqmie7eSyfKaRl/cSItOqP5olr16JrLkwE5CPZt/1JbKCa7 YDs6dRCw1scRUKkIX/BZm/bRAF8NfOyP1wXr5f6koKoKz3UGKNdJ9WXbYd06BZXYnYjO OH3ZVSRr+xNl9MIoTknH6bGRq6OuMEhRPehxNDAm3ITvjkRYQxjOFFGdgAAzMqs++Z1P aW2o7DJDb0RaYU1eV+xJvsiI14A8HtyOTBBwseM0QzZCVdYSCQIWAnX/UA6BzMhFpNiw 3nZBtg+eNIIB1olkLHrYxOyC9rEXpQ4T6I93A9dutOtR683hgEWpKdw3zwxkv8nl8Meu J0hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=C1x6IMkz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id e26-20020a63545a000000b00578b21f1890si3181639pgm.294.2023.09.21.23.48.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 23:48:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=C1x6IMkz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 2A259807C755; Thu, 21 Sep 2023 12:45:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231210AbjIUTp1 (ORCPT + 99 others); Thu, 21 Sep 2023 15:45:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231202AbjIUTpL (ORCPT ); Thu, 21 Sep 2023 15:45:11 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4987A7EA02; Thu, 21 Sep 2023 10:50:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695318647; x=1726854647; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=xzUHdYuTPX8UEPkN1RU7vl2/b1DAaw7BomhJXS2mn5U=; b=C1x6IMkzybQYgmnhFfnSwg+lFuiSlzY1GJQk9HodNkYa1ZktK+/YHZf8 W2bJECY5Ud5E0lG6KryKrZYdD7i1iZHqFZMUz0aoquzOTcHnMhCme/MSI tizhZQQK+6+qy5XCfivaUwFI6YB0kCDwPg8Yu0XRQvrvRtxTeH7Au7Xmt 3Q6/FGLy+13lpm0/tRI75f8Ir51AixXOghoBu6/bPwDxlvNoPoSAO2S1k QiFPVxbVasxcP4+i1SSft6rqUNPdnZQ3nDSJ3Mxfp0Xu6Q3/y62pbtT5O NdJFrOP5679r0BSJohoHDE98baNq+WG8wdJuzRsdKloCGmOrzlMHbAyr3 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="384344978" X-IronPort-AV: E=Sophos;i="6.03,165,1694761200"; d="scan'208";a="384344978" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2023 05:25:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="776399273" X-IronPort-AV: E=Sophos;i="6.03,165,1694761200"; d="scan'208";a="776399273" Received: from choongyo-mobl.gar.corp.intel.com (HELO [10.215.240.199]) ([10.215.240.199]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2023 05:25:29 -0700 Message-ID: Date: Thu, 21 Sep 2023 20:25:05 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH net-next v2 0/5] TSN auto negotiation between 1G and 2.5G 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> Content-Language: en-US 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=-2.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 21 Sep 2023 12:45:30 -0700 (PDT) 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, After conducting a comprehensive study, it seems that implementing out-of-band for all link modes might not be feasible. I may have missed some key aspects during my analysis. Would you be open to sharing a high-level idea of how we could potentially make this feasible? Your insights would be greatly appreciated. By the way, I've submitted a new design that not exposing phylink's AN mode into phylib. Please help review it to determine if it is acceptable.