Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFB49C43381 for ; Thu, 7 Mar 2019 22:36:56 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8D9EE2081B for ; Thu, 7 Mar 2019 22:36:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="eGe2BvpV"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="GeTJqjxt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8D9EE2081B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=06gSlF4Szx4NRzC0rRnGL8cwO18nAV3FtjCYK5kxs2M=; b=eGe2BvpV2NgHA6 U3aLxrPIfn0zjx5Yzh9FvqlJVOkGX9frxcOqAhGQnLPdQLtV0P61BQzp826QHlnD3izuEwoX5lt+q tCqwCqWmx6cMry54KjSGnk0P/DNSJW7Hmfg6MLY3v8l5WQgF2aoUkRHMd48chc+f3P8tWO5EvCDIQ bydsSCE1eqFkJo6ckqN6ghOMDCjNX5Qlyxibqbugb8+GQL6eKQkrNtlnIr/BRJ/tx/SYrO4eXBZvZ 4m0WwcZIViZAJ1PyuJVUslH/HajpsDynrksP8XOpER+LbQWujnQwM00xPTyiCrOblb8HaxjyNEUSX ZbZyCozzGQ28Ket0PKbg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h21dE-0005QB-E1; Thu, 07 Mar 2019 22:36:52 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h21d9-0005Pi-RA for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2019 22:36:50 +0000 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=3T3GvfJyWp/RQ5b/AuTsZ0OscKNhvoAlDKBjUrcwMso=; b=GeTJqjxtrfj3dwKf/bekxBfTw hau2U1fazomVucnuJvddNIZzc5ZUn8/TZ0Zj9idE0gnyfHmIYCnqgTke8NraM9bXBBzJ6NPNJk6JJ LynJLYCVW0d2yG5KvJgYHNlcGgdqNx8AyHxjYjSBBTPGd82IGer8+l1YJROWdl5V3Wwh0rPdlXcZA qumdlRGFAJXG95WfpfzgD2UH3jFSlDzSJGbwtC5wKqyxtnl7gvWlH7vFozIpCtYt8bRmgXeyCVOJ9 jx94jpROi25QvkAbWnYaaKw+6jZaWXhHivVPWF3bUVWREDof5z+6yQxnrIExmxIHRlZTlcaeUZz8l v9r7ftG3A==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:55004) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1h21d4-00009r-5t; Thu, 07 Mar 2019 22:36:42 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.89) (envelope-from ) id 1h21d0-0005Eo-2E; Thu, 07 Mar 2019 22:36:38 +0000 Date: Thu, 7 Mar 2019 22:36:37 +0000 From: Russell King - ARM Linux admin To: Marc Micalizzi Subject: Re: MacchiatoBin SingleShot 2500BASE-X port (eth3) with GPON SFP on mvpp2x Message-ID: <20190307223637.7ngdf37bcp2imwwo@shell.armlinux.org.uk> References: <014801d4d121$d2769620$7763c260$@gmail.com> <20190302202629.GB10359@lunn.ch> <20190303024833.GB25169@lunn.ch> <20190303100128.tgq2kvrtyywwmbe4@shell.armlinux.org.uk> <20190303103152.wfefnwe6n6ja6yk5@shell.armlinux.org.uk> <20190307190146.d52jtf6ogkrpipk2@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190307_143648_322556_8E858E3A X-CRM114-Status: GOOD ( 24.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Lunn , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Mar 07, 2019 at 02:40:53PM -0500, Marc Micalizzi wrote: > On Thu, Mar 7, 2019 at 2:01 PM Russell King - ARM Linux admin > wrote: > > > So this leads to the next problem now: ethtool only show and allows > > > 1000BASE-X with this SFP. > > > The EEPROM does say it is: > > > Transceiver type : Ethernet: 1000BASE-LX > > > Encoding : 0x03 (NRZ) > > > BR, Nominal : 1200MBd > > > > Well, there's a couple of things wrong there to the SFP EEPROM > > standard (SFF8472): > > > > 1. 1000base-X is not "NRZ", it's 8b/10b encoding, so the value in the > > encoding field is incorrect. > > 2. 1G speed is 1.25MBaud, which is supposed to be rounded up, so this > > should be 1300MBd (another illustration of the sloppy nature of > > these EEPROMs.) > > > > There should also be two more fields, which may be: > > > > BR margin, max : 0% > > BR margin, min : 0% > > > > If they are, there is no generic way to identify that this module > > supports 2.5G, and the only possible way we could do so is to explicitly > > identify the module by the vendor and part number. > > They are both 0%, yes. So it would need a explicit capabilities set. > Is this already done anywhere for any modules that I could append on > to? Or nothing else that has come up so far conforms so poorly to the > standards? :) So far, we have one manufacturer's modules that fail the EEPROM checksum validation due to their production line modifying the EEPROM contents with the part number and serial number _without_ updating the checksum. We don't have any other work-arounds present, so it's going to need an addition. Expect a patch in the next few days. > With phylink debug I get: > [ 20.871636] mvpp2x f2000000.ppv22 eth0: mac link up > [ 29.973143] mvpp2x f2000000.ppv22 eth0: mac link up > [ 45.494580] mvpp2x f2000000.ppv22 eth0: mac link up > [ 45.494595] mvpp2x f2000000.ppv22 eth0: mac link up > [ 74.038370] mvpp2x f2000000.ppv22 eth0: mac link up > [ 74.038385] mvpp2x f2000000.ppv22 eth0: mac link up > [ 95.683112] random: crng init done > [ 97.177052] mvpp2x f2000000.ppv22 eth0: mac link up > [ 107.968144] mvpp2x f2000000.ppv22 eth0: mac link down > [ 107.968163] mvpp2x f2000000.ppv22 eth0: mac link up > [ 107.968217] br0: port 1(eth0) entered disabled state > [ 107.969434] mvpp2x f2000000.ppv22 eth0: Link is Down > [ 107.969452] mvpp2x f2000000.ppv22 eth0: Link is Up - 10Gbps/Full - > flow control rx > [ 107.969470] br0: port 1(eth0) entered blocking state > [ 107.969474] br0: port 1(eth0) entered forwarding state > INIT: Id "f0" respawning too fast: disabled for 5 minutes > [ 153.962990] mvpp2x f2000000.ppv22 eth0: mac link down > [ 153.963009] mvpp2x f2000000.ppv22 eth0: mac link up > [ 153.963053] br0: port 1(eth0) entered disabled state > [ 153.964190] mvpp2x f2000000.ppv22 eth0: Link is Down > [ 153.964208] mvpp2x f2000000.ppv22 eth0: Link is Up - 10Gbps/Full - > flow control rx > [ 153.964223] br0: port 1(eth0) entered blocking state > [ 153.964226] br0: port 1(eth0) entered forwarding state > [ 166.416711] mvpp2x f2000000.ppv22 eth0: mac link up > [ 179.966442] mvpp2x f2000000.ppv22 eth0: mac link up > [ 179.966462] mvpp2x f2000000.ppv22 eth0: mac link up > [ 185.842717] mvpp2x f2000000.ppv22 eth0: mac link up > [ 185.842732] mvpp2x f2000000.ppv22 eth0: mac link up > [ 190.853434] mvpp2x f2000000.ppv22 eth0: mac link up > [ 190.853449] mvpp2x f2000000.ppv22 eth0: mac link up > [ 229.960363] mvpp2x f2000000.ppv22 eth0: mac link up > [ 229.960378] mvpp2x f2000000.ppv22 eth0: mac link up > [ 241.589448] mvpp2x f2000000.ppv22 eth0: mac link up > [ 241.589462] mvpp2x f2000000.ppv22 eth0: mac link up > [ 278.890967] mvpp2x f2000000.ppv22 eth0: mac link down > [ 278.890982] mvpp2x f2000000.ppv22 eth0: mac link up > [ 278.891018] br0: port 1(eth0) entered disabled state > [ 278.892190] mvpp2x f2000000.ppv22 eth0: Link is Down > [ 278.892206] mvpp2x f2000000.ppv22 eth0: Link is Up - 10Gbps/Full - > flow control rx > [ 278.892221] br0: port 1(eth0) entered blocking state > [ 278.892224] br0: port 1(eth0) entered forwarding state > [ 288.111348] mvpp2x f2000000.ppv22 eth0: mac link down > [ 288.111363] mvpp2x f2000000.ppv22 eth0: mac link up > [ 288.111393] br0: port 1(eth0) entered disabled state > [ 288.112475] mvpp2x f2000000.ppv22 eth0: Link is Down > [ 288.112490] mvpp2x f2000000.ppv22 eth0: Link is Up - 10Gbps/Full - > flow control rx > [ 288.112504] br0: port 1(eth0) entered blocking state > [ 288.112507] br0: port 1(eth0) entered forwarding state > [ 290.825608] mvpp2x f2000000.ppv22 eth0: mac link up > [ 290.825622] mvpp2x f2000000.ppv22 eth0: mac link up > [ 299.467488] mvpp2x f2000000.ppv22 eth0: mac link up > [ 460.806719] mvpp2x f2000000.ppv22 eth0: mac link down > [ 460.806726] mvpp2x f2000000.ppv22 eth0: mac link up Ok, that is basically pointing at the quality/reliability of the received waveform at the serdes is impaired. The repeated "mac link up" messages basically means that the link up bit briefly deasserted before we could read the deassertion. > > > Laser output power : 0.6311 mW / -2.00 dBm > > > Receiver signal average optical power : 0.5401 mW / -2.68 dBm > > > > Looks like the module is getting good signal from the other end. Does > > the other end also report these sporadic link failures too? > > The other end doesn't report any status changes for the switchport for > these link failures, just the macchiatobin. The received signal level doesn't suggest dirty optics, which would've been my first suggestion. I don't have a second suggestion at the moment, but that may change. I'll keep you posted when I send the patch for working around the speed issue. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel