Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp499383ybg; Wed, 3 Jun 2020 06:24:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGfWol/SnCyRmtWS2MtS5iQhNYAJbmxEedvr+CRR1c5Jiha5ynVLbsrGdDcC42yDJ7wFf/ X-Received: by 2002:a17:906:15d8:: with SMTP id l24mr27348700ejd.479.1591190674295; Wed, 03 Jun 2020 06:24:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591190674; cv=none; d=google.com; s=arc-20160816; b=kJyT1mV7aVhoqpo3nhTUeY6IWjLwcbz7BAONX7RLfnJHG27DYjCVuDVrqroTLsQkn7 WebB+pn/PiPegaSLmqritpdrqay7AjNaVsiszJDgSFzxKMRXyRxtTLw5Y1+T4l2iw0UG S20oAVk9IhDb7MQg476uvp+Dj4z/ELGI7TAGKNWG/b5lTR+Bq9fbEHVtlSanFMWPLTuE l+nslp0fE1mGlUgAjDixCAtQvHRsnmipmwb4RuRos+kXa9LWj927pL6yZ80AcTCVqIg2 gMm77LO3ptnsNXylNa56MRctgwy4Bwyhv0ME7umtHU5A1zEEMN87IGgWtEygPbKfyPmI C+Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=kq7XlYCYEvDPrzu5OEp1VNG25HMp75SUwW8RLaDeDds=; b=Gx5/fdr5HheQJYMZpmc9JegYGbmCe+9kZHPgA7/BDV3Sv4rFbD4ZaiG+1ZulrMMDT9 hbeqUH6W+XlK46aWJzdNxIULZ/snITp6Js7vSRwHFaKRSP7QMq8jk4qHzzrTsOyMUf9u JNYESBw4pfhirBnrYw3bguszwL2637g0YVrjnESt3W4CbzewUhcYx97GWgi6pU7pN3TJ oKUUL85tbeJdLfMXOBqtYkKG3ubNM9LpyaNL6BtdWDwtyZQt1kRvpIsmju5thHwwJx00 hyO0AW/6VAYcK716jW+LhE7dQ3v/Ep/J7qGPiYsx++zEt9xsm8r68VL5qBIc3uJfDu6h aA5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=0RIydBKR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s8si1130470eji.349.2020.06.03.06.24.10; Wed, 03 Jun 2020 06:24:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=0RIydBKR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725884AbgFCNV5 (ORCPT + 99 others); Wed, 3 Jun 2020 09:21:57 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:34926 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725807AbgFCNV4 (ORCPT ); Wed, 3 Jun 2020 09:21:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender: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=kq7XlYCYEvDPrzu5OEp1VNG25HMp75SUwW8RLaDeDds=; b=0RIydBKRLRzJCLHAX6Qlhaj13F WWj4KSywK7CM6GMMs3NmnwVUJaVyTYQbhm7S47EVT05BJS13vifLWmh15qdWLyC8ixoqQLV/HUmn4 NcqQmQD5Vxu+ytgHqySPCWPmJ2YG2Wj2fPUMiZFYVZpp55VBDbgL8ZeahawTwd98icUU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1jgTL1-0043W9-Ev; Wed, 03 Jun 2020 15:21:47 +0200 Date: Wed, 3 Jun 2020 15:21:47 +0200 From: Andrew Lunn To: Russell King - ARM Linux admin Cc: Thomas Bogendoerfer , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] net: mvpp2: Enable autoneg bypass for 1000BaseX/2500BaseX ports Message-ID: <20200603132147.GW869823@lunn.ch> References: <20200528135608.GU1551@shell.armlinux.org.uk> <20200528163335.8f730b5a3ddc8cd9beab367f@suse.de> <20200528144805.GW1551@shell.armlinux.org.uk> <20200528204312.df9089425162a22e89669cf1@suse.de> <20200528220420.GY1551@shell.armlinux.org.uk> <20200529130539.3fe944fed7228e2b061a1e46@suse.de> <20200529145928.GF869823@lunn.ch> <20200529175225.a3be1b4faaa0408e165435ad@suse.de> <20200529163340.GI869823@lunn.ch> <20200602225016.GX1551@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200602225016.GX1551@shell.armlinux.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 02, 2020 at 11:50:17PM +0100, Russell King - ARM Linux admin wrote: > On Fri, May 29, 2020 at 06:33:40PM +0200, Andrew Lunn wrote: > > Given the current code, you cannot. Now we understand the > > requirements, we can come up with some ideas how to do this properly. > > Okay, I've been a little quiet because of sorting out the ARM tree > for merging with Linus (now done) and I've been working on a solution > to this problem. > > The good news is, I have an implementation in phylink to use the sync > status reported from a PCS, and to appropriately enable sync status > reporting. I'm quite nervous about having that enabled as a matter of > routine as I've seen some Marvell hardware end up with interrupt storms > from it - presumably due to noise pickup on the serdes lines being > interpreted as an intermittently valid signal. Hi Russell I have seen similar with an SFP without link. I think squelch is optional, so noise gets passed through, which is enough to get and loose sync. I think we probably need to only enable the interrupt when the LOS signal indicates there is at least some power coming into the SFP. > However, I think we need to think about: > 1) how we classify Thomas' problem - does it count as a regression > given that support for his platform is not part of mainline, and > the use of in-band-status in his unreviewed DT is clearly incorrect? I would say no, it is not a regression. > 2) if we deem it to be a regression, then how do we intend to solve > this for stable kernels? I think this new code should go into net-next, when it opens. I suspect it is going to be a big change, once we consider LOS. Andrew