Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1205525rwl; Thu, 5 Jan 2023 10:04:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXtVa9KazHvOVChbqbzoHcB09EXX/23S4HorBIxEKLdNY6AYSL6Yqb1xbj2UqYVAMDez1gPZ X-Received: by 2002:a17:90b:48c4:b0:226:44e1:7868 with SMTP id li4-20020a17090b48c400b0022644e17868mr21551707pjb.37.1672941881226; Thu, 05 Jan 2023 10:04:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672941881; cv=none; d=google.com; s=arc-20160816; b=f26JEE/yQ5H2yKcmrhkzxpzL5cHXniV3g0tETqvvYw0no/EcrucsAV7kGiIMBEEaAz GNQhMbPr/FbGx98D9xjK/FHz7MxCzEfJ7W2GVZRrcpKg3qYVlEu8n+OwgrRMHjPbA+Ok Zmidd8cMJr+e762FWtTCGAQVSlHptFsE/Vi7JslurA6GDQCCZu6Ld+ijDMd2iOOIQJCX oRUyLP4atWOwL3pmST1NKY+haXlYa7GPCr/3wwgsxbbToiE5PoX8PEFug9b7H0pEwqGo 5WnAyCmN/Blp8Qt1yho3q99lHVPQvwaTYyzS28Q39ZqSp7bxiuTW2U3DcLOJaHIu/sPf PUUA== 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=ZeEiCANH0cEaK8X/VdU3bSWY7LBzy/lq1guYnW4LA+E=; b=g9Iuxiy2x7n4VkQHTb9kOlHmaHFJhboELYLU5LfLXiLbpU66b/G+u4v4D/Pzg539co heTpiSnxuP9813fsBq5Y2vA6+HfkUlCUlccAQl1yPKLRLCoyHE9OVQSZ5CJtl0nRpJdV EHeRHQlZcbvJ/7kZhWFo/SuXRmiyXIhhrgglF48D76g/6+y1r0UDmLoRzuEWq9vofM24 A/5pub5ozob5mmWX+QfamrEw/i9NdKmm6Ob1Ff+xMTOj079SzCX8n6nxLws/JZayNUlk AFY55qGnkBSvC4VSjcMxAeQ7uhWks3xaU4hSMf0UWGbyxxKuTdScvob6HbmBtqrrJXgt jEgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=aRP2rfs9; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bj19-20020a17090b089300b00225d9c7afe2si2372864pjb.74.2023.01.05.10.04.34; Thu, 05 Jan 2023 10:04:41 -0800 (PST) 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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=aRP2rfs9; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234782AbjAERrE (ORCPT + 55 others); Thu, 5 Jan 2023 12:47:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234084AbjAERq5 (ORCPT ); Thu, 5 Jan 2023 12:46:57 -0500 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 98E204C70D; Thu, 5 Jan 2023 09:46:53 -0800 (PST) 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=ZeEiCANH0cEaK8X/VdU3bSWY7LBzy/lq1guYnW4LA+E=; b=aRP2rfs9NAAw0t1g+08wsuaSPg shVsPMKx3DC4onvJCY5qWUtofBXWxYYROR4iG1M/MDNvlhsvpNSmgl2qfTIpg38GK7rPeItZL1yei IlN/DG5LKdAh+yJLdWz5CEiCt10/+uU98W/V6o0pig4mdSjTCUI49n5EFFwxH3Jupfc2bbwAUqhPT 7gbUVrbrRlkEnjxWSjUinja8knqgSXfefVYa4lD+HJRRKb8/3nGPieNVElTXPJiaB/aDnuej9akbl j702lSCPAlYxV+VRSWo7u0065g4Gw8un39kGcm7kEN9kFsqJP6XYHlQNvRCEqFST/aqQVqirJ2HT3 KsVnt/zw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:35982) 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 1pDUKI-0007Nn-K0; Thu, 05 Jan 2023 17:46:50 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1pDUKG-0004Al-1h; Thu, 05 Jan 2023 17:46:48 +0000 Date: Thu, 5 Jan 2023 17:46:48 +0000 From: "Russell King (Oracle)" To: Vladimir Oltean Cc: Sean Anderson , Andrew Lunn , Heiner Kallweit , netdev@vger.kernel.org, "David S . Miller" , Paolo Abeni , linux-kernel@vger.kernel.org, Jakub Kicinski , Eric Dumazet , Tim Harvey Subject: Re: [PATCH net-next v5 4/4] phy: aquantia: Determine rate adaptation support from registers Message-ID: References: <20230103220511.3378316-1-sean.anderson@seco.com> <20230103220511.3378316-5-sean.anderson@seco.com> <20230105140421.bqd2aed6du5mtxn4@skbuf> <6ffe6719-648c-36aa-74be-467c8db40531@seco.com> <20230105173445.72rvdt4etvteageq@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230105173445.72rvdt4etvteageq@skbuf> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Thu, Jan 05, 2023 at 07:34:45PM +0200, Vladimir Oltean wrote: > So we lose the advertisement of 5G and 2.5G, even if the firmware is > provisioned for them via 10GBASE-R rate adaptation, right? Because when > asked "What kind of rate matching is supported for 10GBASE-R?", the > Aquantia driver will respond "None". The code doesn't have the ability to do any better right now - since we don't know what sets of interface modes _could_ be used by the PHY and whether each interface mode may result in rate adaption. To achieve that would mean reworking yet again all the phylink validation from scratch, and probably reworking phylib and most of the PHY drivers too so that they provide a lot more information about their host interface behaviour. I don't think there is an easy way to have a "perfect" solution immediately - it's going to take a while to evolve - and probably painfully evolve due to the slowness involved in updating all the drivers that make use of phylink in some way. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!