Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1825368ybl; Sat, 14 Dec 2019 00:25:29 -0800 (PST) X-Google-Smtp-Source: APXvYqyNfKGpxMnu2jNxy2QJJeF1ShHbBdzazRcGrulzeUCPgVBE7sds4c09kTVvTmvKewhCEb6B X-Received: by 2002:a9d:4e97:: with SMTP id v23mr18366853otk.201.1576311929667; Sat, 14 Dec 2019 00:25:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576311929; cv=none; d=google.com; s=arc-20160816; b=RKG9ZGePfaAnPLrxIsbFEqdVQU1/SrjXzerB6hcuxdnUBPHsDvrriPDRqD4VvIh3wO f9W72nh2ggA8gjpXE2iVbt/kwSWjtiYqZf6hYtZBaC07wgSmCc4wrtzwJP4XD2fFHDaI pPjomMW05EcQ+OlVjwT6FAMKle2oJ4o0nmAw2igYmks6ipWQHVm1P4auGeOzjgFY4JTl RW1DRPwgrBqTdjhL8DLUcJ7OdtumUMoWWWlf92CQR+wB0BUw8wlrM/PpHD8E82qPftzY oLb25FaAi4D6ZuNfgMM/vSkdvNVu6bQMmMsmQ7wVX67K4u1FmcNaO9LXfB6QafgvodaA W1oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ZBW0rG4zu04kqeUkAY2TNjTSly8tCnUbRyg+FMPu9f8=; b=a5K7qO66zz4mQj717JFIlj7c7PtDteu3sr7KM1sAaiF8ScmFCcQBHHmnMDOYRaMxVS bCvZMIj4SEH9vuB5Cg3/DEaEUrOWGuaMOwvi4oEpB5a4fpUFDQ6gewFcveyt+RjUXVpi fKLILVCT4SEJZpaqnD4/b/ORS/0MqTl1AIWw7leMMcFTFYBMCJAV5GaB/f79J/Txl16k y1iSwCwl4cBxxUSXkpdqQLA/KZ/2XHANGoZbK26lVWux1H4OJvNT87BFgvtRXTHoiBsJ PbJDvnNLLGt+wWSv2QXYnH401ip4rW3bClZsDNcNZR4Ri+VLREJ1Am5RKLSniAKu8fNJ BB5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p25si6594851oto.191.2019.12.14.00.25.17; Sat, 14 Dec 2019 00:25:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726049AbfLNIYQ (ORCPT + 99 others); Sat, 14 Dec 2019 03:24:16 -0500 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:29485 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725372AbfLNIYP (ORCPT ); Sat, 14 Dec 2019 03:24:15 -0500 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id xBE8O3MA002981; Sat, 14 Dec 2019 09:24:03 +0100 Date: Sat, 14 Dec 2019 09:24:03 +0100 From: Willy Tarreau To: Russell King - ARM Linux admin Cc: Jakub Kicinski , "David S. Miller" , Antoine Tenart , Andrew Lunn , Thomas Bogendoerfer , maxime.chevallier@bootlin.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] net: marvell: mvpp2: phylink requires the link interrupt Message-ID: <20191214082403.GA2959@1wt.eu> References: <20191213163403.2a054262@cakuba.netronome.com> <20191214075127.GX25745@shell.armlinux.org.uk> <20191214075602.GY25745@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191214075602.GY25745@shell.armlinux.org.uk> User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 14, 2019 at 07:56:02AM +0000, Russell King - ARM Linux admin wrote: > On Sat, Dec 14, 2019 at 07:51:27AM +0000, Russell King - ARM Linux admin wrote: > > On Fri, Dec 13, 2019 at 04:34:03PM -0800, Jakub Kicinski wrote: > > > On Tue, 10 Dec 2019 22:33:05 +0000, Russell King wrote: > > > > phylink requires the MAC to report when its link status changes when > > > > operating in inband modes. Failure to report link status changes > > > > means that phylink has no idea when the link events happen, which > > > > results in either the network interface's carrier remaining up or > > > > remaining permanently down. > > > > > > > > For example, with a fiber module, if the interface is brought up and > > > > link is initially established, taking the link down at the far end > > > > will cut the optical power. The SFP module's LOS asserts, we > > > > deactivate the link, and the network interface reports no carrier. > > > > > > > > When the far end is brought back up, the SFP module's LOS deasserts, > > > > but the MAC may be slower to establish link. If this happens (which > > > > in my tests is a certainty) then phylink never hears that the MAC > > > > has established link with the far end, and the network interface is > > > > stuck reporting no carrier. This means the interface is > > > > non-functional. > > > > > > > > Avoiding the link interrupt when we have phylink is basically not > > > > an option, so remove the !port->phylink from the test. > > > > > > > > Tested-by: Sven Auhagen > > > > Tested-by: Antoine Tenart > > > > Signed-off-by: Russell King > > > > > > Fixes: 4bb043262878 ("net: mvpp2: phylink support") ? > > > > > > Seems like you maybe didn't want this backported to stable hence > > > no fixes tag? > > > > Correct, because backporting just this patch will break the > > Macchiatobin. > > > > This patch is dependent on the previous two patches, which are more > > about correct use of the API. I suspect if you try to backport the > > series, things will get very hairly very quickly. > > Oh, sorry, too early, wrong patch. Yes, please add the fixes tag. I prefer :-) Because indeed I only have this one on top of 5.4.2 which solved the problem. You can even add my tested-by if you want (though I don't care). Thanks, Willy