Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1389552rbb; Mon, 26 Feb 2024 07:51:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU2odoJEsOBfhF47XszqbLoc1H2WLktKinPRmW9obecYHIZlZrmc1hIya/PudyL9VEDtXvql9pb8ug/4R0PKMd+GemH2sv2HNQ3eBJCrQ== X-Google-Smtp-Source: AGHT+IEOMn6YJHMVueSI0pJiLOAs+27C29n16IBwvOPh5bvf/yVYF1WoG0cBBuUPf2YJczyy+QBG X-Received: by 2002:a05:622a:24c:b0:42e:79b8:51df with SMTP id c12-20020a05622a024c00b0042e79b851dfmr7317800qtx.42.1708962668664; Mon, 26 Feb 2024 07:51:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708962668; cv=pass; d=google.com; s=arc-20160816; b=Kv2xD70rINfDKCWgnfUQyzEJLgjBKTlB8U1A2R0anrrBuVpMkYVAFHn/W05R9rkWhb S+8mDrMhGCEFILfiQw5BW8+DfU7mNdtUP5P28s7rtgIivI7aEYqMxfIedmW4BYQyuJ9v NeKice8aJ5Fv/2/sOYDMwLE6y/UO8NInf6RAQCFHz+HhmeTzgryPGOoO9XE9k33sZwmj Ri4mBdBc+pFOLmgnGUaq9KTLN6pqZ5cJjoVaySaKR2RNrcxxEN9AzUjRN6ZdW2eXnuGr 1KXoysUEkpQPqMO+YiPk9MC/xb8BBgFKC/6yHdbklrVpau03paKKBowyv2TQYl2QHrIL T0jA== 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=VTknhU/j0S+TFKgathhuAGd6GVWPtOPefADa7SFok1o=; fh=k3wtmPt1zPytYiZma67ioLCwDNTZ5TTccU/8vlVyvbM=; b=yWNuV2zBQiJ6np+jMbEWDeRL3pvqhlQ7IoBeAwsBMBKiVCNTcmeiP28+cG0uuWN7pP +CfzXRCqYm4YxR2QVAdO73iBYAQ/oIpIlCQayu4pwKg+9zNAbK0hP9dqYuYTDtFv3fYC aqRZE047wd56NH8MfAodyonoXVbJgFeyjO1xGqPhdBx36IUUBhF1UjbNFgaMsrTqKnbn 0xs2vlI13N57YPNjogaBYacGxddM5BGw2jLMfpq8PyDiC8QdrUDutDOPTXavDwXoLFsm ihXXPmUQsyKriXfciu5w0ODo2p994xvIQRVcglgCoyUbmd+cxZNHvqZAbOnxqQWW9kQM wRFw==; 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="P1/DIoeU"; 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-81842-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81842-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 10-20020ac8574a000000b0042e7dcbe49asi3841239qtx.413.2024.02.26.07.51.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 07:51:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81842-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="P1/DIoeU"; 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-81842-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81842-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 4D9011C21D0E for ; Mon, 26 Feb 2024 15:51:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0DA3A12BF33; Mon, 26 Feb 2024 15:50:54 +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="P1/DIoeU" 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 4183F1BDDC; Mon, 26 Feb 2024 15:50:50 +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=1708962653; cv=none; b=oAlp0juLQtIkbFr5GGzypKLvIDgtJDko73V8g+Y20Bkj68K3yv8pQFNL6DnkC8CexhP09DQk/NfHarfa0wtL9vlsvCU0KrVnoqqXoPZl2p9j5Pdk+buKmJL5BDHwZuaF+y+/nEClMKhfPGy56p1X971kzoWNOJcVvIbsVxB65Sc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708962653; c=relaxed/simple; bh=hePlh93u4XXUHR1BI8WwV3QAM8EGXP2vvnNe4R5gcAA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tSJFN9om/WTbXRxDTo68SWSrzQCNXA/M0XEQh/JCwshiE62h8xOSblMxhrodo0Xst2RYbCzU1knDuD67XMJIeOKo0pv8jA2jzsgoR2YYYT+W+iy3kr6Lf7fpy88RNafvlqYrkjloqBBm6/qo46SK+APgcszuvLB/mVFBbYOeWoc= 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=P1/DIoeU; 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=VTknhU/j0S+TFKgathhuAGd6GVWPtOPefADa7SFok1o=; b=P1/DIoeUAxIuhX8rToX6Jm818m 2Il57xrk8I2BUehcQQpqbUdvwRdfXRlnjDEU+TmhD98V4ST5G+lrb2pcSnIDB5yD/qqEWh0ukF1d2 trRol/o7ha7Y68IdXCwZMfQCdb/vqnAsVC+QWyCea2hV6jVoKKMs5DMdE9Lf9Bxm/D6X0Az9RxoLq wvS6CvK46gJdRGf92M3T4e6BCxMW11BjIM9/fvr9nrWI4/aVfZg/K2ISM2jeB6jUmA9y6JAky4gQ9 4BUHm3JidYRr5fJenhPFRO6mQ1aSJ6BmkoqEUCmzzme+5hkPh1FXkS6bveTcfSYOIGJjS6TYcUOMx tWlozHbw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:33124) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1redFZ-00045f-2G; Mon, 26 Feb 2024 15:50:41 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1redFY-0006YJ-FF; Mon, 26 Feb 2024 15:50:40 +0000 Date: Mon, 26 Feb 2024 15:50:40 +0000 From: "Russell King (Oracle)" To: Shengyu Qu Cc: Andrew Lunn , 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 Mon, Feb 26, 2024 at 11:20:47PM +0800, Shengyu Qu wrote: > Hi Andrew, > > When telnet connected to the stick(It's using busybox), "cat /proc/kmsg" > would report something like "<4>change mode to 0", that 0 is the actual > speed rate codename it changes to. You could check this [1] for more > information. > > Sorry but I can't record my kmsg output now, since enable connection to > my stick would make the network to disconnect for all users and my > roommates are using it. > > Best regards, > Shengyu > > [1] https://github.com/Anime4000/RTL960x/blob/main/Docs/FLASH_GETSET_INFO.md#lan_sds_mode I'm aware of that link, and sadly the information in that table can at best be described as "confused". For example, under "Behaviour" it mentions "1GbaseT/100baseT". How exactly does a SFP module exhibit baseT behaviour (which is twisted pair copper ethernet.) Hint: it can't and it doesn't. "Mode" being listed as "TP" is also misleading and wrong. The ethtool value of 0x20 is bit 5, which is 1000baseT_Full which has nothing to do with a SFP (and won't be reported as even a supported mode for this SFP.) Bit 41 would make sense (1000baseX), which is listed against mode 1. I'm afraid looking at that URL just adds to more confusion. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!