Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1491044ybl; Fri, 13 Dec 2019 16:36:18 -0800 (PST) X-Google-Smtp-Source: APXvYqwapuXf80c8HDPMgk3VSEMDkqYghY9A71iXgUV8R3Nco9HRb/YAfDkCrNXgkGY+gpiR874G X-Received: by 2002:a05:6830:2361:: with SMTP id r1mr16732447oth.88.1576283778700; Fri, 13 Dec 2019 16:36:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576283778; cv=none; d=google.com; s=arc-20160816; b=I7inVyhhA642bfT7g8vT91OjvCNlgU1PIQGCCqmP93XHRfkTPU8/sKTqy6gRU2Ynd7 bQnrmah3maC2v4wybaIDqls+DDec+oSqh8KAqkvd4+da9LlWJwDLnYpkZT3ONWyyiiGo I0ZwejoJg+yamw/yumN/ePwo9ueH8WjQgtAml0Bby3g4s2ywygG82HaZZgpWOy8ZSKgs XHH8rFvbqQ0uGapFM3jUHtpzmpI+lWrSw2k7glQ3W+sK6pLrW7gJ7Fv8PEIFBCvAE3FB CJl0mIU98N7Dt4ZjrdXitdydKyKc3rWYZMQ5G7mqUmKRRpqIgCtcMW8bEQXyZMJqm9FN U3/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=AcKpSh1z8nexb80XCULmvBhMzvVCXcH0i/wbt+zGUhM=; b=S/Pc8bRl41Xlno7EgeQFudAIs68IUPA5I43A94YsXNp3T7J1wdSJn4jLfNTRpo7ctI wLezaRgqRAqcVJJyWHdch7/PkCc33U6TKf5rKTivMaFk4zci7tBEeUqan/hxSD5BbugO V5NPqQxuqNSupX6ZrjI5tOR40k5chJYl4GkMEAlCnlv2o5BsIdadmtMzidDcwKsg6DUv pkEZTJMq6NZcaJJ4tol+SB3i6ZUz+/Zm+/HOHzH1p4sFPCQeWuzokNyvA8JRQmn5rJWY 1hO3N6N6EEPofWdJFabgC1FPvIw6+EqAd9Hm9m1A0n/tAIKYsC7oyI+cFtq5b4LSguhk H+Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=lK+yU5+b; 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 l16si6128106otr.106.2019.12.13.16.35.54; Fri, 13 Dec 2019 16:36:18 -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; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=lK+yU5+b; 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 S1726830AbfLNAeO (ORCPT + 99 others); Fri, 13 Dec 2019 19:34:14 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:34495 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726769AbfLNAeN (ORCPT ); Fri, 13 Dec 2019 19:34:13 -0500 Received: by mail-lf1-f65.google.com with SMTP id l18so556082lfc.1 for ; Fri, 13 Dec 2019 16:34:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=AcKpSh1z8nexb80XCULmvBhMzvVCXcH0i/wbt+zGUhM=; b=lK+yU5+bFuHaU9D3W6qUlPNk8AOj4NREd87YAzkJ6aYmKJIM2/QYqq2R2hkOGh6KPv 3q/yU7JUS23gE0olzVlBatTDM50fNZYaBjaETH23XoHylecROnklEkESAS76EpqdT70P /dhkb4vT36tbmylUCmYZ9ezX9UU9sSGYRvzSFHP2jltZ7CZ9jJA98BpxpjOg/VPdZtBU s4B5odIpY9nWRdp2NHwNJd0E5jt0TxsbYoldhf2oY3OljEOjMXmxmS6kBKVuKRLrSOTG n8LyAki+kY2hsM3UomuEMBjmQMEqdPdonVdNw7SMrCIUk0cFVSmhqYPUj1nExJ1eV935 KxnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=AcKpSh1z8nexb80XCULmvBhMzvVCXcH0i/wbt+zGUhM=; b=UZciQeE4dVEESzpXO6BKi4tff8uDdGlt0NiduBknEZhNmMu0aG+k2djMYJbZtGwv/v bp+v+32LTGVIHZGgWGCsoXhlQPudwoA0WxyVNtXXcJ/9HEWRRgmfQ62AX+LyZujkY1j3 X1JrM9mr29xgXcwrBGUDMJZtynQavduj0i4KzjKHMCWxn9veWMH3fMlquSh/TdZz4V5V gt7IuBhHEg6s0D3AenfNv37M6Bnsb7GcrERz6+qujV3pv6YIrv488mL7O5Wku66rzMyx ztFtYFXDV1RX+jPZ9qzVXATWhJjQOIsFsW0i0M5FskwFi8/iCn04zucofP8wE8rJG5eu WfdQ== X-Gm-Message-State: APjAAAVPXdAkGlun9HZcqiM9r8XBnCR4hn54L4biuh+MZVl+zT0Sv+ur GLOK2BS2CCcV0N5csBhExEhi3Faq45E= X-Received: by 2002:ac2:4946:: with SMTP id o6mr10591734lfi.170.1576283651956; Fri, 13 Dec 2019 16:34:11 -0800 (PST) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id z3sm5658532ljh.83.2019.12.13.16.34.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2019 16:34:11 -0800 (PST) Date: Fri, 13 Dec 2019 16:34:03 -0800 From: Jakub Kicinski To: Russell King Cc: "David S. Miller" , Antoine Tenart , Willy Tarreau , 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: <20191213163403.2a054262@cakuba.netronome.com> In-Reply-To: References: Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Please advise :) > diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > index 111b3b8239e1..ef44c6979a31 100644 > --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > @@ -3674,7 +3674,7 @@ static int mvpp2_open(struct net_device *dev) > valid = true; > } > > - if (priv->hw_version == MVPP22 && port->link_irq && !port->phylink) { > + if (priv->hw_version == MVPP22 && port->link_irq) { > err = request_irq(port->link_irq, mvpp2_link_status_isr, 0, > dev->name, port); > if (err) {