Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp781631ybg; Mon, 1 Jun 2020 14:23:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgQADl0tz8z1sjg0XKqIZMcgYYOtDp7c0N95p2TYn5Be3McRhpXn1J9MSWEdHZPiMhnDOt X-Received: by 2002:a17:906:b88c:: with SMTP id hb12mr20328474ejb.483.1591046638615; Mon, 01 Jun 2020 14:23:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591046638; cv=none; d=google.com; s=arc-20160816; b=z3kwjyNke1WvZQRewGxXuMwBnC2W/vVpkfmVXz+0F/xowd+rzklu7YILq/GOOF9Wyv P0ccoj7PSQjVreNKnpMZrgyuAI0XK5PrxGc6nFMbiSVxP0QSkfA5mNmuXYdTKjG6G+/N dck7r7i/QQEPkXTnC3vRThsugtpVrnDDASKkmV9lag5gR5EDH0EPIpKy2W11Qh4IjCCj DZ5hakmB/Jqbkryrq/hS+Jv6PN68295TvgqmYz2ApEy6he/srIQEKeACsQy6CoQUCidC mMgUsakaJz3LwWQRaa3LPhy0qCRgkS7d9WQkRvWnk1UliXLjLyVSzgBaB2CRWug4BzDa ZwTQ== 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:dkim-signature; bh=tqW4VYGG9Fe/MRunQJThk25D/0Z+SuQJNcCD6SJisQk=; b=mj40ZfBSRpKGBzTQKD1C/laYSuE6DiaMAc3jMWG5z21aQgwqh4PxIl8hqri1/Zqy4I qMA5egS1hjbbzIn+KBBdrBgfbLOgOLAG9rU5wUWFgNCGRnhQ/82U4DHkKzkxjHBUbJYM Lxs1F24HuCkXD0f02d5yNg/SaXi4EF4vCvDwGQv5x/LFxRbVt4QwLKknOqRZmN8wJWjw In6zgmEzZlvWwkl/uvtfaDz1npiJmShBYup/vlpPSlpThliD4nLcFr8jiSBC4ClHlzwM f6u2kSOkCQvsNJKtRq8IBUi0YB5N/etmttsIWsKXlGNEvrsNtYUEZOZ6CZjW32+kxpiQ 7HJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=ei05sGg8; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si369566ejb.289.2020.06.01.14.23.35; Mon, 01 Jun 2020 14:23:58 -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 (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=ei05sGg8; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728719AbgFAVVh (ORCPT + 99 others); Mon, 1 Jun 2020 17:21:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728182AbgFAVVh (ORCPT ); Mon, 1 Jun 2020 17:21:37 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D551C061A0E; Mon, 1 Jun 2020 14:21:36 -0700 (PDT) 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=tqW4VYGG9Fe/MRunQJThk25D/0Z+SuQJNcCD6SJisQk=; b=ei05sGg8B9oW+xlKoWiwGUwVd 0JPFiBUZSr0zNQlwQb8NBoHCLlAoS+iC3jwwfkP5NHlNw9nGACB9z2YVjc3wnu+NrLUnXdHpZFSGB Zf1A8FDj2KKaSeq3kjSpzcQfIO7ptFPaznj+pvKLRSTyIvq09DL38/mDamHwUiSdRfABVT3SDMww1 wmB2BIo4B0yL+aPdleD5ShLOIDyYlX4MwHBPPeoYfL6SjiKYsB0nZ8ecV4zJi6oogNfBrNmEFTBrZ mpttlHb+bZv2UbHvYPFmkH1+uCUOKXj7K77PbvMuZhOZ1tXW4TPLCb9m6C6/lE120mh2N6dI09Rot AXLG51T9w==; Received: from shell.armlinux.org.uk ([2002:4e20:1eda:1:5054:ff:fe00:4ec]:37666) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfrs2-0001JV-Sm; Mon, 01 Jun 2020 22:21:23 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1jfrru-0003fj-Jp; Mon, 01 Jun 2020 22:21:14 +0100 Date: Mon, 1 Jun 2020 22:21:14 +0100 From: Russell King - ARM Linux admin To: Vladimir Oltean Cc: stable@vger.kernel.org, Greg Kroah-Hartman , netdev , Andrew Lunn , Florian Fainelli , Heiner Kallweit , "David S. Miller" , Jakub Kicinski , lkml , zefir.kurtisi@neratec.com Subject: Re: [PATCH stable-4.19.y] net: phy: reschedule state machine if AN has not completed in PHY_AN state Message-ID: <20200601212114.GT1551@shell.armlinux.org.uk> References: <20200530214315.1051358-1-olteanv@gmail.com> <20200531001849.GG1551@shell.armlinux.org.uk> <20200601002753.GH1551@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 01, 2020 at 11:57:30PM +0300, Vladimir Oltean wrote: > On Mon, 1 Jun 2020 at 03:28, Russell King - ARM Linux admin > wrote: > > And yes, I do have some copper SFP modules that have an (inaccessible) > > AR803x PHY on them - Microtik S-RJ01 to be exact. I forget exactly > > which variant it is, and no, I haven't seen any of this "SGMII fails > > to come up" - in fact, the in-band SGMII status is the only way to > > know what the PHY negotiated with its link partner... and this SFP > > module works with phylink with no issues. > > See, you should also specify what kernel you're testing on. Since > Heiner did the PHY_AN cleanup, phy_aneg_done is basically dead code > from the state machine's perspective, only a few random drivers call > it: > https://elixir.bootlin.com/linux/latest/A/ident/phy_aneg_done > So I would not be at all surprised that you're not hitting it simply > because at803x_aneg_done is never in your call path. Please re-read the paragraph of my reply that is quoted above, and consider your response to it in light of the word *inaccessible* in my paragraph above. Specifically, ask yourself the question: "if the PHY is inaccessible, does it matter what kernel version is being tested? Does it matter what the at803x code is doing?" The point that I was trying to get across, but you seem to have missed, is that this SFP module uses an AR803x PHY that is inaccessible and I have never seen a problem with the SGMII side coming up - and if the SGMII side does not come up, we have no way to know what the copper side is doing. With this module, we are totally reliant on the SGMII side working correctly to work out what the copper side status is. *Frustrated*. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC for 0.8m (est. 1762m) line in suburbia: sync at 13.1Mbps down 424kbps up