Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1385333rbb; Mon, 26 Feb 2024 07:42:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWBxvfT2lhxCO3zQiPpmOB0RxwagyWTiCqC6uaZDuEH41KQxzGZlO4mly1fiTsCT+XJxev3la8naeabs1wwPkoJuWrA8kKytTpSIjC+2w== X-Google-Smtp-Source: AGHT+IEiHtUoAkjWGeqOtE18XX9nXXTC3QUhDCGG76rPEcadvCNM9WuUFtB8Do9ovq6EcfcKBr91 X-Received: by 2002:a17:907:b9d7:b0:a43:83dd:1e4e with SMTP id xa23-20020a170907b9d700b00a4383dd1e4emr901397ejc.29.1708962170319; Mon, 26 Feb 2024 07:42:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708962170; cv=pass; d=google.com; s=arc-20160816; b=sAgNpPLjtBBQ5ifaIJmWMWNQ6KsahUxusdu+N5ZvDfHL5xqTY1enrjAL/10y4PLaHZ 3Dn3Rl+XziEu6FOi/VMUbqZ7GZu9+wltz7BGJaAI6L+j6uq1WU9QdQrT2xEYBvQNO0GI 1WMvK+JVkydUMp1RPTvUAnV5zMuYW7IS4Irrg+kCcVr1KdqerFrJxZrM6eoAcCnkrzBw 7HRBMq2aKUxnheA8RgQOjM83vw3/JJDVHLNTplAdoufS/e/j8VLyVK1aK1BJOzV3vVZ3 x7RAxjQ/BTDX4Tzg/LPToqND5zugEWDx+Zjzj8b92r915lRTEXy6nLm2SBqi2+r4HMdF o4JA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EHijuvuV8E7YKNM4XdgGmLvPqRAeS9ueLF2rF2XSPaU=; fh=5BFNsf/4dcL5pVQ/CoamFx90X//Rgbn6d3nOXviLhyk=; b=llrbYQZjGniE0MGXGx03+xw/BBek2ey1jVek4Fslwmg6pq7fLC52K0v34St4XVs4rB Q15XPr3HcG0AbIKNTrLC1NMhO8ZZCrJCSvMSbIeF7CCt+GJs2mP7ZPeVmbra2AQfaKVu RfuMsOi9ww5IFR7szBrZTJNX580lhVHAONJeassoasSKnNVWQ2wCPNvHfqHyVCQ4jz9g 2Cww4PdxNsMcZpREPQolpIBoFbK2jgpi/Kj/CrBqfZyyGUM0puEzntfQ4jphEIvxRKU5 Teq5MhT79clvs2ej/6RpFmuhE/PpIolQEYjWmNFYw7TWakgjRtpa+m7HrJoOJV4VCjEn G/zg==; 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="Gt1lY/Ce"; 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-81826-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81826-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 am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ne40-20020a1709077ba800b00a4367fe60c6si706218ejc.350.2024.02.26.07.42.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 07:42:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81826-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="Gt1lY/Ce"; 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-81826-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81826-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0A0161F22F85 for ; Mon, 26 Feb 2024 15:42:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 361F512BF02; Mon, 26 Feb 2024 15:42:38 +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="Gt1lY/Ce" 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 C3E82249F9; Mon, 26 Feb 2024 15:42:34 +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=1708962157; cv=none; b=ozvTnuZCK1r9JcnSmpu3qkLon/oG+L7fS++w4jk4VhdizpwCdYb/tNCuVLwJTS2KzYl/XXPcZmQt8swTeDcVH7hcaiy3KK/0mVQtJkndkiyXPnRU0L7osDE/v1aEP3bUiJBhHiMoK1j1gpDR0PFfvxbXbJfhE9LyPeru3fEsljk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708962157; c=relaxed/simple; bh=owHJzHKtb9DA5C41QidfsCkm1UnouWrrnWfBZ9MSARM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KmL04mnF9H2c1f7wH1jVM2jTu1Sa14XwsBFLJN7qJwHMQ7LxetFgLR94rjlAec+z3MYY7ywVPjattAlKncseitr023tuRt8Qhfml3Vt+zVaueq1YCsP9i4sKTDV4huge+NCJu2mnw/qzTN9nwV5HUuiOEVNmV5aQJM5eh3v2LQ8= 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=Gt1lY/Ce; 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-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To: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=EHijuvuV8E7YKNM4XdgGmLvPqRAeS9ueLF2rF2XSPaU=; b=Gt1lY/CehqeiCSFuq8QZV2wYJT DscO35EA7VMFtgwYNXyD9nOpwpNH3gotKPxK0RGqgMEDYqI6Ch9YS2ejpgp8OC/dxHObyhZuwYiIO xNMj9DGZ9PFFkN73BWAPqkmGzXVzWfVegL2GkXJsS4/U7GPjCWpCTijU9oXnHErFpatoS/L8iCUch h2mxOnxEqe4FLvRxVhSJurF+uJxQDd4Ab2oKGluj6bQRHieZ1ndEHSSBtGFT9Ppct9UH1SFx4Q1eq zBfvA+2odehQbByPQqHslkOHaOgJMLxdOIBeeonUL9P/wWhSK5HUptSetS8T/Rn/wzPuArg/1cIrg 3L2X0kdw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:57664) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1red7Z-00043V-29; Mon, 26 Feb 2024 15:42:25 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1red7X-0006Y2-8B; Mon, 26 Feb 2024 15:42:23 +0000 Date: Mon, 26 Feb 2024 15:42:23 +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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: Russell King (Oracle) On Mon, Feb 26, 2024 at 10:51:36PM +0800, Shengyu Qu wrote: > Hi Russell, > > 在 2024/2/26 22:39, Russell King (Oracle) 写道: > > On Mon, Feb 26, 2024 at 10:16:46PM +0800, Shengyu Qu wrote: > > > Hi Russell, > > > > > > > On Mon, Feb 26, 2024 at 09:23:46PM +0800, Shengyu Qu wrote: > > > > > ODI DFP-34X-2C2 is capable of 2500base-X, but incorrectly report its > > > > > capabilities in the EEPROM. > > > > > So use sfp_quirk_2500basex for this module to allow 2500Base-X mode. > > > > This was previously submitted by Sergio Palumbo, and comes in two > > > > different forms - an OEM version and non-OEM. There was extensive > > > > discussion about this, and the result is that I'm not accepting this > > > > quirk for this module. > > > > > > > > The reason is that the module _defaults_ to 1000base-X and requires > > > > manual reconfiguration by the user to operate at 2500base-X. > > > > Unfortunately, there is no way for the kernel to know whether that > > > > reconfiguration has occurred. > > > No, In the firmware of this stick, the speed rate is configured to auto > > > negotiation rather than fixed 1000base-X. > > > > How does this "auto negotiation" work? > > > > I mean *exactly* how does it work? How does it know whether the host is > > operating at 1000base-X or 2500base-X? > > > > There is *no* inband protocol to allow this to be negotiated. > > > Well, that seems some kind weird trick implemented in that chip's SDK (maybe > hardware?). It would automatically detect the speed rate that host uses and > switch to that rate. The system log of the stick shows that. This sounds racy - between the SFP detecting the speed of the host and the kernel code reconfiguring the interface. More details please... -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!