Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp878655pxf; Wed, 7 Apr 2021 13:59:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcBiBouGL2ta5iGr270GjmR/lb1closJDBriwkNAGTIbJGSJwWNniyFLVCTb4hgcVpPK1r X-Received: by 2002:a05:6402:3122:: with SMTP id dd2mr6784586edb.253.1617829169940; Wed, 07 Apr 2021 13:59:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617829169; cv=none; d=google.com; s=arc-20160816; b=QkCD/5MKeT1eppzXUcQTFxB1yzRXn1aTWIy499a2AzX0N+xp9dLjE3U238iOSKX2sC orBL4hxEKeDW5vg6t1wA5YVC73H3ljJdjQXUvnZO0+W692VNgW0fU2X2Q6hMeohYLYW+ Asz6iqMLzPpsR71GI8RwAM6lqvd9Zpv/YAwpVks3PU9NlEEiWvNVBg6wP27i74FCdbIP 7be+tzqhcRluXL2RzemPEPmOl9B4D6DUETOUhVzE267/6mxiE0EIM34QuMrcosP7HhJb YLOBd9QiMjXDkvISPNtS1M5PYgxM5nyN4bT9oIBlbkXOXfjxHgXbCIlF/e16E6S1efTd AK6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=MwmTlFwIZ0WzFA7gpz/Eu4MuKSxZumxg+JxlyNKfb2E=; b=Ev1sIS7RyVpZhdpjN/uuAXNZnCMo05UD0yaPCIj3vM93l0Jyj46FRk/kufpLn94G4n xPOhyyWCvM0rRFzeKrej8EFZr5rAxsap2tcHn/hGGkImOd0mzQ5ff7fn4sA77O70L+9Z HuqHcnW5UjdsUPC8GMjMOJ2r6Z69VuBwH0i5iQ3V+fbdxKbsFQ04stJ8Oln+BJOum7kH /FIPmNHPa88esxSi/r4lKfmS+Siy8MLvq77OWRbVRpmzGLKAx37mAcoxEpsgf56VweB9 lSP4WVhgESOltiUIvy+up+8pSQDl+pBW2cs9qGIUw/HdYTiRMt6W92Tn3KtCdyr+1HH9 ORaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=a34kgWuU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id va12si7034871ejb.687.2021.04.07.13.59.06; Wed, 07 Apr 2021 13:59:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=a34kgWuU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1352527AbhDGNAr (ORCPT + 99 others); Wed, 7 Apr 2021 09:00:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352520AbhDGNAo (ORCPT ); Wed, 7 Apr 2021 09:00:44 -0400 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 C60ABC061756; Wed, 7 Apr 2021 06:00:31 -0700 (PDT) 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=MwmTlFwIZ0WzFA7gpz/Eu4MuKSxZumxg+JxlyNKfb2E=; b=a34kgWuUKrL77AW2ECUJOqgeL fgvzS2gIsLSSqcjUVD8/SOhvbjo4b+c9gEhfFsMIPBQ6AnBD6j56PiTRa3+30bFhPYZVN84GFVmYP TMy3uXGFp5PWXKA8fAFNBo81Eb5kFZbxvwY57wokoZqaPc3YuCCdTQyuUjA/UOdmI9E+hd0ScyaaE TPs1cS9Bztbb5Ia+1a/geN3obzQGxdHepvtOUvJfHlzLO2V9KtERh9fki2g+KTtA0XMVooqz/qjLZ rOoM6r3YmQv1QD2d0giCqngoIN0oRoyZo15oBKvo1zaTsAGF2Gfb4/pLp6PdllUejbs+FQoEV43K6 AykgOgGXg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:52186) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lU7n1-0008Ht-84; Wed, 07 Apr 2021 14:00:11 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1lU7mx-0001zo-Dm; Wed, 07 Apr 2021 14:00:07 +0100 Date: Wed, 7 Apr 2021 14:00:07 +0100 From: Russell King - ARM Linux admin To: Andrew Lunn Cc: "Voon, Weifeng" , "Sit, Michael Wei Hong" , "peppe.cavallaro@st.com" , "alexandre.torgue@st.com" , "joabreu@synopsys.com" , "davem@davemloft.net" , "kuba@kernel.org" , "mcoquelin.stm32@gmail.com" , "Ong, Boon Leong" , "qiangqing.zhang@nxp.com" , "Wong, Vee Khee" , "fugang.duan@nxp.com" , "Chuah, Kim Tatt" , "netdev@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "hkallweit1@gmail.com" Subject: Re: [PATCH net-next v2 0/2] Enable 2.5Gbps speed for stmmac Message-ID: <20210407130006.GH1463@shell.armlinux.org.uk> References: <20210405112953.26008-1-michael.wei.hong.sit@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Russell King - ARM Linux admin Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 07, 2021 at 02:44:39PM +0200, Andrew Lunn wrote: > > Intel mgbe is flexible to pair with any PHY. Only Aquantia/Marvell > > multi-gige PHY can do rate adaption right? > > The Marvell/Marvell multi-gige PHY can also do rate > adaptation. Marvell buying Aquantia made naming messy :-( > I should probably use part numbers. > > > Hence, we still need to take care of others PHYs. > > Yes, it just makes working around the broken design harder if you want > to get the most out of the hardware. FYI, we really need to come up with a good solution to the rate adaption issue. What we have today really is not good. For example, take a MAC that supports only 2500base-X connected to a PHY that does rate adaption from 2500base-X to media speed. So, the PHY could be capable of 10, 100, 1G and 2.5G media speeds, and would advertise those in its supported mask. The MAC however would only report (via the validate callback) support for 2.5G speed because that's all that 2500base-X supports. What we really want when a rate adapting capable PHY is connected is to ignore what ethtool link modes the MAC supports beyond "does it support this interface type" and just use the PHY supported mask. However, that's another property of the PHY that we need to know from phylib, and it's not clear when that property should be made available. As we know from Marvell PHYs, it depends on the configurable MAC_TYPE setting, so could only be available once we've selected an interface mode for the PHY. On the other hand, we might need to know what interface mode(s) are available from the PHY and MAC to select an appropriate mode. This is not easy problems to overcome; I have had some patches for some time which allow some combination of MAC and PHY to advertise which interface mode(s) they support but I haven't been entirely happy with them to push them upstream - and it would be another phylink API change which means having to maintain the new and old code until everything has been updated (thereby making stuff a lot more complex.) After the last round of phylink API updates and the hostility from people over that, this is a big demotivating factor. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!