From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 23621C433EF for ; Mon, 7 Mar 2022 20:14:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wlyfx0da1QSGGXdEQvmIL8fZ2YYAnClMX28hAXiWv1A=; b=jzjOXLnrfvgnVc juwjALV9ihAgWAI3lP48p5YQn3uP/yy03yfEhmPf1Cp93ZnSfno1AWkPjgIJYaE+KjaF37YLvA+UW qAlLCysnWtmBhSqiAP+OiMYo1+AbOvi/CUIrGEv3FAzW05wKC3mAQvOEYur6ztoBiKkjeueknkkYb AGW6U+H/IsXkqktzB3aBptpmFy3X4gS8yUALHVObjz+SKPOA9xVsvk72ZDoBUE+0r4dtVAZl+Ryd+ QhZmvER7bSCD+UFXEGt1uPadi71o6bGiIe3YNFKd+rGMT8yv/vtHlAPtrsLcZa8kjERH3X0LfRr05 BuaBHCjnwLqW8i1QiYoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRJjF-001Seu-Cq; Mon, 07 Mar 2022 20:13:13 +0000 Received: from mail-yb1-xb31.google.com ([2607:f8b0:4864:20::b31]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRJjB-001SeE-6t for linux-arm-kernel@lists.infradead.org; Mon, 07 Mar 2022 20:13:11 +0000 Received: by mail-yb1-xb31.google.com with SMTP id u61so33325611ybi.11 for ; Mon, 07 Mar 2022 12:12:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Pc8snv66BJZegtVoosw37soIzhj0NltRq2hstJqVlBU=; b=g6kvafQWz02wPz5DNdu+wqRgDdF7tfPZBr6NDPTIcsHNCTV1lL0vCn0gVB7kIzuWJd eeXrAFwmoHucLeU0xfcJGrEeE+UYwbBH+KCDBn9bPqncA9DbsSZWuDVieseqpmNuX4T3 ELnB2oOwhQsfzAi1QOhni96m6oA7edZxI5cLO225w9W0cF4dXqAVQZybJ+BSkFYSzpzU umgAxa/lTfNKipus5Sdm2OHXAoCJlrsufgCEMu6XIXsp/5fwcWou5tQJcxXxkSkS74pR W5v3NWOAnpEAzVOIprAllTlEHqx8DmAAnP2YenMKk+vqWBBOT/fiA05ozNmho/1P1Clq DHRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Pc8snv66BJZegtVoosw37soIzhj0NltRq2hstJqVlBU=; b=tRkh4oV4485dYWm6Tljd6hLL2nXdjQChjs08Xylg4crYYgGgZ3W9SWaM3dg2WMseRL nXKpQw8/c6y6NWEtHSNPp0PEJzdDmL/x6VtxAcHoW1JLmDPhGAELkPF7A+534K+L+mAV cpHlEHuocREeLY45QlhHxJoWkrADBMgFwQodGlVyoKvJdJRxe4De6Kxbu2GvCh5Evm0b rWAfXkEeZUEHfOFf49GlZH6OFDnIpv4OxPqThzlBCfQU0MYfWgCDryl4prk9XMLQODVc 2cHpak/IKNEBuhEC7Aqa6OoCweFPt9yvGW/Ojpcshh1MTATpGHegnSaYMmAbCudYZ4Sb 8voA== X-Gm-Message-State: AOAM530wJD5hZzsSp3ft0t6GrOj0IIbGgnYNFMlUj0Cl7WXx0kdrHRhC Uco/D8ZwViTsKF+s0EGBqrMregk08mdvR36IyxLiULRZ2w4= X-Google-Smtp-Source: ABdhPJw6PRgnzFP1pI9lDVEfgNR0+dhxQZK16BGWHhUqX9/j/hXFXxUCicBpMXR/o/8ZDQnNeLJHtDPnnvuOqqPpHZU= X-Received: by 2002:a25:2b0a:0:b0:624:a898:3e2f with SMTP id r10-20020a252b0a000000b00624a8983e2fmr9301222ybr.643.1646683976555; Mon, 07 Mar 2022 12:12:56 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Giammarco lynx Date: Mon, 7 Mar 2022 21:12:45 +0100 Message-ID: Subject: Re: Fwd: Question abount VSOL/CarlitoxxPro SFP Patch on Marvell Armada (MCBIN DS) To: "Russell King (Oracle)" Cc: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220307_121309_307518_790FF099 X-CRM114-Status: GOOD ( 26.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org adding linux-arm-kernel@lists.infradead.org Il giorno lun 7 mar 2022 alle ore 21:09 Giammarco lynx ha scritto: > > ok, doing in the way that you suggest, the link is bringing up. > Here is the logs (without ifconfig eth3 up and module plugged): > > [ 3.035643] mvpp2 f4000000.ethernet eth3: Using firmware node mac > address 00:51:82:11:22:03 > [ 11.872410] sfp sfp-eth3: Host maximum power 2.0W > [ 11.877149] sfp sfp-eth3: tx disable 1 -> 1 > [ 11.877155] sfp sfp-eth3: SM: enter empty:detached:down event insert > [ 11.877159] sfp sfp-eth3: SM: exit probe:detached:down > [ 11.877410] sfp sfp-eth3: SM: enter probe:detached:down event dev_attach > [ 11.877414] sfp sfp-eth3: SM: exit probe:down:down > [ 12.180129] sfp sfp-eth3: SM: enter probe:down:down event timeout > [ 12.187906] sfp sfp-eth3: Detected broken RTL8672/RTL9601C emulated EEPROM > [ 12.194814] sfp sfp-eth3: Switching to reading EEPROM to one byte at a time > [ 12.242005] sfp sfp-eth3: module OEM V2801F > rev 1.0 sn 202101195032 dc 210119 > [ 12.251800] mvpp2 f4000000.ethernet eth3: requesting link mode > inband/1000base-x with support 0000000,00000200,00000440 > [ 12.251804] mvpp2 f4000000.ethernet eth3: switched to > inband/1000base-x link mode > [ 12.259318] sfp sfp-eth3: SM: exit present:down:down > [ 12.270123] sfp sfp-eth3: skipping hwmon device registration due to > broken EEPROM > [ 12.277636] sfp sfp-eth3: diagnostic EEPROM area cannot be read > atomically to guarantee data coherency > [ 35.174143] mvpp2 f4000000.ethernet eth3: configuring for > inband/1000base-x link mode > [ 35.182026] mvpp2 f4000000.ethernet eth3: major config 1000base-x > [ 35.188158] mvpp2 f4000000.ethernet eth3: phylink_mac_config: > mode=inband/1000base-x/Unknown/Unknown adv=0000000,00000200,00000440 > pause=04 link=0 an=1 > [ 35.202945] sfp sfp-eth3: SM: enter present:down:down event dev_up > [ 35.209152] sfp sfp-eth3: tx disable 1 -> 0 > [ 35.213387] sfp sfp-eth3: SM: exit present:up:wait > [ 35.280129] sfp sfp-eth3: SM: enter present:up:wait event timeout > [ 35.286253] sfp sfp-eth3: SM: exit present:up:link_up > [ 56.097724] sfp sfp-eth3: los 0 -> 1 > [ 56.101324] sfp sfp-eth3: SM: enter present:up:link_up event los_high > [ 56.107792] sfp sfp-eth3: SM: exit present:up:link_up > [ 56.112876] sfp sfp-eth3: mod-def0 1 -> 0 > [ 56.116903] sfp sfp-eth3: tx-fault 0 -> 1 > [ 56.120933] sfp sfp-eth3: SM: enter present:up:link_up event remove > > Then after "ifconfig eth3 up" i've removed and reinserted the SFP, > this is the log: > > [ 56.127227] sfp sfp-eth3: module removed > [ 56.131175] sfp sfp-eth3: tx disable 0 -> 1 > [ 56.135432] sfp sfp-eth3: SM: exit empty:up:down > [ 56.140067] sfp sfp-eth3: SM: enter empty:up:down event tx_fault > [ 56.146103] sfp sfp-eth3: SM: exit empty:up:down > [ 59.350731] sfp sfp-eth3: mod-def0 0 -> 1 > [ 59.354757] sfp sfp-eth3: SM: enter empty:up:down event insert > [ 59.360619] sfp sfp-eth3: SM: exit probe:up:down > [ 59.680123] sfp sfp-eth3: SM: enter probe:up:down event timeout > [ 59.686185] sfp sfp-eth3: SM: exit probe:up:down > [ 59.800122] sfp sfp-eth3: SM: enter probe:up:down event timeout > [ 59.806179] sfp sfp-eth3: SM: exit probe:up:down > [ 59.920122] sfp sfp-eth3: SM: enter probe:up:down event timeout > [ 59.926179] sfp sfp-eth3: SM: exit probe:up:down > [ 60.040122] sfp sfp-eth3: SM: enter probe:up:down event timeout > [ 60.046178] sfp sfp-eth3: SM: exit probe:up:down > [ 60.160123] sfp sfp-eth3: SM: enter probe:up:down event timeout > [ 60.166178] sfp sfp-eth3: SM: exit probe:up:down > [ 60.270122] sfp sfp-eth3: SM: enter probe:up:down event timeout > [ 60.276177] sfp sfp-eth3: SM: exit probe:up:down > [ 60.380122] sfp sfp-eth3: SM: enter probe:up:down event timeout > [ 60.386178] sfp sfp-eth3: SM: exit probe:up:down > [ 60.500122] sfp sfp-eth3: SM: enter probe:up:down event timeout > [ 60.506177] sfp sfp-eth3: SM: exit probe:up:down > [ 60.620121] sfp sfp-eth3: SM: enter probe:up:down event timeout > [ 60.626176] sfp sfp-eth3: SM: exit probe:up:down > [ 60.740122] sfp sfp-eth3: SM: enter probe:up:down event timeout > [ 60.746177] sfp sfp-eth3: please wait, module slow to respond > [ 60.751982] sfp sfp-eth3: SM: exit probe:up:down > [ 65.840198] sfp sfp-eth3: SM: enter probe:up:down event timeout > [ 65.846262] sfp sfp-eth3: SM: exit probe:up:down > [ 70.870128] sfp sfp-eth3: SM: enter probe:up:down event timeout > [ 70.876192] sfp sfp-eth3: SM: exit probe:up:down > [ 75.920133] sfp sfp-eth3: SM: enter probe:up:down event timeout > [ 75.926196] sfp sfp-eth3: SM: exit probe:up:down > [ 80.896801] mvpp2 f4000000.ethernet eth3: mac link up > [ 80.960124] sfp sfp-eth3: SM: enter probe:up:down event timeout > [ 80.966183] sfp sfp-eth3: SM: exit probe:up:down > [ 81.330385] sfp sfp-eth3: los 1 -> 0 > [ 81.333978] sfp sfp-eth3: tx-fault 1 -> 0 > [ 81.338004] sfp sfp-eth3: SM: enter probe:up:down event tx_clear > [ 81.344044] sfp sfp-eth3: SM: exit probe:up:down > [ 81.348680] sfp sfp-eth3: SM: enter probe:up:down event los_low > [ 81.354629] sfp sfp-eth3: SM: exit probe:up:down > [ 86.000154] sfp sfp-eth3: SM: enter probe:up:down event timeout > [ 86.013661] sfp sfp-eth3: Detected broken RTL8672/RTL9601C emulated EEPROM > [ 86.020569] sfp sfp-eth3: Switching to reading EEPROM to one byte at a time > [ 86.067758] sfp sfp-eth3: module OEM V2801F > rev 1.0 sn 202101195032 dc 210119 > [ 86.077555] mvpp2 f4000000.ethernet eth3: requesting link mode > inband/1000base-x with support 0000000,00000200,00000440 > [ 86.088390] sfp sfp-eth3: tx disable 1 -> 0 > [ 86.092636] sfp sfp-eth3: SM: exit present:up:wait > [ 86.097448] sfp sfp-eth3: skipping hwmon device registration due to > broken EEPROM > [ 86.104965] sfp sfp-eth3: diagnostic EEPROM area cannot be read > atomically to guarantee data coherency > [ 86.160128] sfp sfp-eth3: SM: enter present:up:wait event timeout > [ 86.166252] sfp sfp-eth3: SM: exit present:up:link_up > [ 86.171404] mvpp2 f4000000.ethernet eth3: Link is Up - 1Gbps/Full - > flow control off > [ 86.179193] IPv6: ADDRCONF(NETDEV_CHANGE): eth3: link becomes ready > > In that way it goes up. So how can we avoid this behaviour? > > Thanks > > Il giorno lun 7 mar 2022 alle ore 20:13 Russell King (Oracle) > ha scritto: > > > > Please keep follow-ups on the mailing list. > > > > On Mon, Mar 07, 2022 at 08:04:21PM +0100, Giammarco lynx wrote: > > > ok may be i've enabled it, here is the output: > > > > > > root@mcbin:~# dmesg | grep eth3 > > > [ 3.035655] mvpp2 f4000000.ethernet eth3: Using firmware node mac > > > address 00:51:82:11:22:03 > > > [ 11.759569] sfp sfp-eth3: Host maximum power 2.0W > > > [ 11.764323] sfp sfp-eth3: tx disable 1 -> 1 > > > [ 11.764329] sfp sfp-eth3: SM: enter empty:detached:down event insert > > > [ 11.764333] sfp sfp-eth3: SFP_S_DOWN > > > [ 11.767925] sfp sfp-eth3: SM: exit probe:detached:down > > > [ 11.768259] sfp sfp-eth3: SM: enter probe:detached:down event dev_attach > > > [ 11.768263] sfp sfp-eth3: SFP_MOD_PROBE > > > [ 11.772123] sfp sfp-eth3: SFP_S_DOWN > > > [ 11.775715] sfp sfp-eth3: SM: exit probe:down:down > > > [ 12.080088] sfp sfp-eth3: SM: enter probe:down:down event timeout > > > [ 12.080093] sfp sfp-eth3: SFP_MOD_PROBE > > > [ 12.091720] sfp sfp-eth3: Detected broken RTL8672/RTL9601C emulated EEPROM > > > [ 12.098622] sfp sfp-eth3: Switching to reading EEPROM to one byte at a time > > > [ 12.145814] sfp sfp-eth3: module OEM V2801F > > > rev 1.0 sn 202101195032 dc 210119 > > > [ 12.155598] sfp sfp-eth3: module_t_start_up > > > [ 12.159799] sfp sfp-eth3: SFP_MOD_WAITDEV > > > [ 12.163834] mvpp2 f4000000.ethernet eth3: requesting link mode > > > inband/1000base-x with support 0000000,00000200,00000440 > > > [ 12.163838] mvpp2 f4000000.ethernet eth3: switched to > > > inband/1000base-x link mode > > > [ 12.171354] sfp sfp-eth3: SFP_S_DOWN > > > [ 12.174944] sfp sfp-eth3: SM: exit present:down:down > > > [ 12.174949] sfp sfp-eth3: skipping hwmon device registration due to > > > broken EEPROM > > > [ 12.182465] sfp sfp-eth3: diagnostic EEPROM area cannot be read > > > atomically to guarantee data coherency > > > [ 58.634098] mvpp2 f4000000.ethernet eth3: configuring for > > > inband/1000base-x link mode > > > [ 58.641979] mvpp2 f4000000.ethernet eth3: major config 1000base-x > > > [ 58.648113] mvpp2 f4000000.ethernet eth3: phylink_mac_config: > > > mode=inband/1000base-x/Unknown/Unknown adv=0000000,00000200,00000440 > > > pause=04 link=0 an=1 > > > [ 58.662900] sfp sfp-eth3: SM: enter present:down:down event dev_up > > > [ 58.669107] sfp sfp-eth3: SFP_MOD_PRESENT > > > [ 58.673137] sfp sfp-eth3: SFP_MOD_ERROR > > > [ 58.677019] sfp sfp-eth3: SFP_S_DOWN > > > [ 58.680643] sfp sfp-eth3: tx disable 1 -> 0 > > > [ 58.684852] sfp sfp-eth3: SM: exit present:up:wait > > > [ 58.740088] sfp sfp-eth3: SM: enter present:up:wait event timeout > > > [ 58.746210] sfp sfp-eth3: SFP_MOD_PRESENT > > > [ 58.750243] sfp sfp-eth3: SFP_MOD_ERROR > > > [ 58.754094] sfp sfp-eth3: SFP_S_WAIT > > > [ 58.757682] sfp sfp-eth3: event == SFP_E_TIMEOUT > > > [ 58.762322] sfp sfp-eth3: SFP_F_TX_FAULT bit basso > > > [ 58.767164] sfp sfp-eth3: sfp_sm_link_check_los > > > [ 58.771715] sfp sfp-eth3: los ok > > > [ 58.774988] sfp sfp-eth3: SM: exit present:up:link_up > > > root@mcbin:~# > > > > So yes, here we believe that the module is operational, but there > > appears to be nothing from the MAC, meaning the 1000base-X link > > didn't establish. > > > > If the module supports 2500base-x and 1000base-x, the problem could > > be that the module is trying to use 2500base-x but is indicating > > 1000base-x in its EEPROM. > > > > It could be trying to detect the speed at power-on time - have you > > tried unplugging and re-plugging it after bringing the interface up? > > > > GPON modules seem to always be a pain to get working. > > > > -- > > RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ > > FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel