Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3074967rwb; Fri, 16 Dec 2022 09:44:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ekxcFf+DfSfUu7rOy0OAQ6wAZ6Ml+k9PjoYl7/oKGxZT1yQoi64otEuGh6gmjOOnHlz+e X-Received: by 2002:a17:902:8a96:b0:189:df3c:1bc1 with SMTP id p22-20020a1709028a9600b00189df3c1bc1mr31887942plo.46.1671212666165; Fri, 16 Dec 2022 09:44:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671212666; cv=none; d=google.com; s=arc-20160816; b=WX02/z/jhrdTUh92cof7hKrV3l1GtDXLjNt7Qf0B8WW8vMDMKiluJwfvbomIBs32Wq 9GF8S7U6LLg9Q78Ul1xKPX7gRuaMyQ/jMfk/kXHLy/GOQWhxWu4covJW3aMuQuvGEC6g Mn5LSOX5HME0uM1Y+RxGw5zUr1mwUtVA6prNRL57EEDVgqghrJRa63QiV/1PhrEvhUuZ +3yhc2u+PKIVT7VWpKMz4OUGhdvCm4iJHYYZk3HdQWhiz3Vlc0ijHT2ATTO2RDp1XtPk nUDrz1581pDazAAr59aCdBNggSIMiHgG1uZKBk2wrWL2NDzXgd1dSejLgAZTh3LIXNRY Il5w== 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=0ykrJHbPVroq1EZ3qDmhugzC+Dqya9lG2NHOM0fSuHo=; b=VJ1+kGsjNHDeu3STkTUp6t4NMoi3oJsvy2CQo4jpuWvUMAbASzTL3w8s4ZfkWsO3wK 6QyXUa+AXAMClhTijD9EJ/JLUOR0XnB93yBCQpOJZjdkL7njOYERfpg45no2bQYpr4tT PQ2HonfaFnrNaEVTC6a4Pxz/x4Q5NlGJyxVydCKBbWLVMhbKw1XtxZyrqyFtNXFCictd Rv+xlHPMDZNTJgfoZffCQV/3V3jC30NJLvNGaBbWzYeT7u0ogaXCS6kVhutbtUC7g3in MUq6N43BrA1P2oj60vn+JIm1yv1MF8SpOdz/JPvp4xWfO3Q4oqlYW+MiTEZoJ/WVkGWW IOSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=Nzz4oLZv; 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 q19-20020a170902e31300b001898c6b8ec4si2744664plc.317.2022.12.16.09.44.17; Fri, 16 Dec 2022 09:44:26 -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=Nzz4oLZv; 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 S231487AbiLPQyY (ORCPT + 68 others); Fri, 16 Dec 2022 11:54:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231310AbiLPQyW (ORCPT ); Fri, 16 Dec 2022 11:54:22 -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 A032D2634; Fri, 16 Dec 2022 08:54:21 -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=0ykrJHbPVroq1EZ3qDmhugzC+Dqya9lG2NHOM0fSuHo=; b=Nzz4oLZvxjnZJ/8f/1N6BhL8ca oatlFMYFm9EO7tvvsgF4t+Hu7LI9qAMNkukyxGE8x82AK4apeFpPHobtr6Ch9KSuc907mVa4mGVeU JKL1ozX4sUcshfL6OODBLA/sLBNoh4FNzOZwXYcg8W32uXvRR7goqUhhRWLqbQ7AxXv6KQ8l8dfED z3kOtY8IwcZxtksSb7FXSEZiCbGzilFT/mYRz7qE9UJOYCFSrMXtgu80V+CVPw+g9XowT4edei3S8 QST1vWz7F9yqH9bmlk7mHs6zsIaWq5xfsldUZLJKAzCNdvnVDlOT3SiWxJ7j46ZJPuZy7yHsvnjay SbC2QElA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:35746) 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 1p6DyU-00089h-5t; Fri, 16 Dec 2022 16:54:19 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1p6DyS-00012U-KR; Fri, 16 Dec 2022 16:54:16 +0000 Date: Fri, 16 Dec 2022 16:54:16 +0000 From: "Russell King (Oracle)" To: Sean Anderson Cc: Andrew Lunn , Heiner Kallweit , netdev@vger.kernel.org, Paolo Abeni , Vladimir Oltean , linux-kernel@vger.kernel.org, Jakub Kicinski , Tim Harvey , "David S . Miller" , Eric Dumazet Subject: Re: [PATCH net-next v4 0/4] phy: aquantia: Determine rate adaptation support from registers Message-ID: References: <20221216164851.2932043-1-sean.anderson@seco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221216164851.2932043-1-sean.anderson@seco.com> 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 Hi Sean, Please note net-next is currently closed due to the merge window, so please don't send patches for it. However, feel free to send RFC patches for net-next so that reviews can still happen. Thanks! On Fri, Dec 16, 2022 at 11:48:47AM -0500, Sean Anderson wrote: > This attempts to address the problems first reported in [1]. Tim has an > Aquantia phy where the firmware is set up to use "5G XFI" (underclocked > 10GBASE-R) when rate adapting lower speeds. This results in us > advertising that we support lower speeds and then failing to bring the > link up. To avoid this, determine whether to enable rate adaptation > based on what's programmed by the firmware. This is "the worst choice" > [2], but we can't really do better until we have more insight into > what the firmware is doing. At the very least, we can prevent bad > firmware from causing us to advertise the wrong modes. > > Past submissions may be found at [3, 4]. > > [1] https://lore.kernel.org/netdev/CAJ+vNU3zeNqiGhjTKE8jRjDYR0D7f=iqPLB8phNyA2CWixy7JA@mail.gmail.com/ > [2] https://lore.kernel.org/netdev/20221118171643.vu6uxbnmog4sna65@skbuf/ > [3] https://lore.kernel.org/netdev/20221114210740.3332937-1-sean.anderson@seco.com/ > [4] https://lore.kernel.org/netdev/20221128195409.100873-1-sean.anderson@seco.com/ > > Changes in v4: > - Reorganize MDIO defines > - Fix kerneldoc using - instead of : for parameters > > Changes in v3: > - Update speed register bits > - Fix incorrect bits for PMA/PMD speed > > Changes in v2: > - Move/rename phylink_interface_max_speed > - Rework to just validate things instead of modifying registers > > Sean Anderson (4): > net: phy: Move/rename phylink_interface_max_speed > phy: mdio: Reorganize defines > net: mdio: Update speed register bits > phy: aquantia: Determine rate adaptation support from registers > > drivers/net/phy/aquantia_main.c | 160 ++++++++++++++++++++++++++++++-- > drivers/net/phy/phy-core.c | 70 ++++++++++++++ > drivers/net/phy/phylink.c | 75 +-------------- > include/linux/phy.h | 1 + > include/uapi/linux/mdio.h | 109 ++++++++++++++-------- > 5 files changed, 299 insertions(+), 116 deletions(-) > > -- > 2.35.1.1320.gc452695387.dirty > > -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!