Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2480802rbb; Wed, 28 Feb 2024 03:16:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVHQYAQASNzpP9CsR0zWZdRW177PdtyL/gSTq8IFvVc3GYRAz4vlDRyAQu5cvlREn9IcnkJU53zqYzGSgp3msdnSubqG1rkJuX9c0Y9Yg== X-Google-Smtp-Source: AGHT+IFVzyBnP6BR1V8wBcQd7xkWq8sRKehvzJj6287Im0ACCQJTD8V9zxiMekUzCdU41NugOHia X-Received: by 2002:ac8:5984:0:b0:42e:b428:809e with SMTP id e4-20020ac85984000000b0042eb428809emr131589qte.60.1709118969405; Wed, 28 Feb 2024 03:16:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709118969; cv=pass; d=google.com; s=arc-20160816; b=oXM7Ycrcwswxs+e06V2tMeKlrjRekeacEE18Ye2jFjpoRs5xCNcRHAdS+BDgqqm/m0 jrB7tOfiaifP4qBABDynM2ybYmy+4RgKpf06CzXQo69l2xyqynVPiIgDxcf10obDo74W StENJUcBlufDkEElopZ2zCMxRncSStcvzoCOJps8IvUBupbvBDxs50GkXyIPUBzycMkl iGMmB32ltTb23tEEIDYSaK+PXvArDxqIAnaauT6u6SECswqyOuP9gho8VVkw/Tf2EV1+ lwkqH6n4nu4sDolJVgrh7mNUtfNMyMlqTXpxpKH+fzSq9Ij3c9LOdxdMsqPhIxWyJbzP 3E7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=kr0+UQeVSYNZ4QKTsVOt17tKmNujoD+5WHzstujRJJk=; fh=5BFNsf/4dcL5pVQ/CoamFx90X//Rgbn6d3nOXviLhyk=; b=UMgG98lQpWAEC3TX82Uy50hRw8BB1vbRJQS0W73eFsWYOSpvRyaB7By8N28CISK44H up3+YuYz7nIW4u6F/ywHys9uY8qS54oJ0y57OHyJDHPHyIEnCRbFXwo7aiHgyyO/JEK3 LzCm0kzCNOZqYQ+/ahRE7aVEXyYIybtRG/09Ii3gEp15/D5rRqSlup918x+Erz8xfomz h7I0B+PTEjrGZXvoqjFOl6YgDQOV4Gef2uAsfMazIlHHKAdgvO4AVB+83nfrhcxEIWtC 61RFgos9DggttJBRPwLoEEB5WLG6ZKDKjxPMmAEnXRYSWIkt7jgEdpTW7A5s4Nlby2sq A1wg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=twqyNHC2; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-84863-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84863-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f16-20020ac84710000000b0042daa920d4esi8895120qtp.305.2024.02.28.03.16.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 03:16:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84863-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=twqyNHC2; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-84863-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84863-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 150C41C226D2 for ; Wed, 28 Feb 2024 11:16:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 470B412E1CC; Wed, 28 Feb 2024 11:15:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="twqyNHC2" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B1F3712AAEF; Wed, 28 Feb 2024 11:15:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709118957; cv=none; b=IXG87LZ+K2LvoBDM/4KCp0LmmsORnHkwWfvOlgSgbsi54kCjJrRCbt2x5LKNgMNM+Plv1I+PsVJk9jeCXbKqrM/wXvp56rFAoZ4i/zWBBJ437RykHpz1JaMoElHPh7KEgHGZ5m+5qMtOeH2QKQI/Dr50Nt0dYIzCTdCa4WUypRc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709118957; c=relaxed/simple; bh=TQ/YwyKxlqI1Y4hUm9MOyJBRStGaTQj83ZS3poyCqH4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=q1D1VCHNZU8Tkcz7qo9s7w7+H/xKil6+oeI2OQ1tcLGbnhPTuB3qsLXgdzBiR4ocS5YBqEC+kyU/yF83rXD64UQDUhh55NwOnjJKC3JpkGIJCopyt+hbUI0b0CLJGIAIzruVp5h0B4NBYDt0emCDQ2bhiZ+Jxpv8yKqduBIaNa0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=twqyNHC2; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk 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=kr0+UQeVSYNZ4QKTsVOt17tKmNujoD+5WHzstujRJJk=; b=twqyNHC2YcFsIZu8bR+3JS6H6C zoIgDE+uOwWAUl1WZC7bNXdPQ18b95oFUOQiXiBqmV/XYurb0ouKZvGvhqI+zyyjmANFy9Fv2h5+R 9JTkCwkYBrcuDRprgWOe1mdqjyFjfWMcEYIIPPbeps/5fVQJZJahirmWfjWEMpVLtanQray6sWtlP CyvpQLMERTyG2pPNu1yRJ8qu493dpWtVH1SC9EFGH8XXaOu6K36F0RhIS2M+JKdMOS5WmGlyFLWp5 nSpJGr0kiPIP4JH44fVbdeLBDxeDOGjrPAhVvyPoCndn7dmtTQeonWj3J3V+Zr93b7UGs+7kKjD6s adqRIU4A==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:53478) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rfHuX-00044y-2r; Wed, 28 Feb 2024 11:15:41 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rfHuV-0008He-8K; Wed, 28 Feb 2024 11:15:39 +0000 Date: Wed, 28 Feb 2024 11:15:39 +0000 From: "Russell King (Oracle)" To: Shengyu Qu Cc: andrew@lunn.ch, hkallweit1@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v1] net: sfp: add quirks for ODI DFP-34X-2C2 Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) On Wed, Feb 28, 2024 at 06:42:55PM +0800, Shengyu Qu wrote: > Hi Russell, > > I got contact with someone that has access to this chip's datasheet. > He tolds me that according to the datasheet, this chip > "supports a rate adaptor feature, which is a Realtek proprietary SERDES > mechanism." > " When the chip's SERDES operates in Rate adaptor mode, the SERDES speed > is fixed at 2.5Gbps and the Ethernet speed cannot be higher than the > SERDES speed. > The SOC need not follow the Ethernet link speed, and cannot change the > SERDES speed in this mode. There is a data flow control mechanism to > ensure correct data transmission." > > Is it enough to put this into the commit information? I think you need to read that again and understand it. Specifically "the SERDES speed is fixed at 2.5Gbps". When operating in this mode (rate adapter mode) this would mean the SERDES (which is what talks to the host) is fixed at 2500base-X and is fundamentally incompatible and incapable of linking with a host operating at 1000base-X. "Rate adapter" is a term that is used by manufacturers to mean that a e.g. PHY is able to operate at several different speeds on its media side while operating at a specific speed on its host side. E.g. a PHY that presents at 10GBASE-R host interface but supports media at 10M, 100M, 1G, 2.5G and 5G speeds. Typically, it controls the rate at which the host sends packets by sending PAUSE frames to the host. This feature is irrelevant to the abilities of the module to link at either 1000base-X or 2500base-X with the host. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!