Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1337046imm; Wed, 11 Jul 2018 23:29:12 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdBYsFOqFvAMz2wWy2Kg5PxAITSCgtNZbxWsZIg5w5nKJ7m4Ws2E5RcU2639wIeQBLxRKIY X-Received: by 2002:a63:2c8e:: with SMTP id s136-v6mr891192pgs.390.1531376952874; Wed, 11 Jul 2018 23:29:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531376952; cv=none; d=google.com; s=arc-20160816; b=TERYsOXm0OhD1Vt4cF7sk+fpQlT6K2cG+VU1XhBh6c4FPmMsUFBZoxgr3XAUKatDEE pUj+RDsHiAG+wj23TZh5W9ttGgnhrVVSZUYxva8LYE/O7v9lbShrUEeiu9e6TbeOIm3M ueXiW8PRstd2b8fJ/llaGvom+1p5QUGxIKKgxaHHW+XsKLnstnrJpF1R8ugd0oNy7MU0 f/1KHmc+KTGZb1U/hfv3jCGOKdXeDYGH8HiQFkFk1mBCIoFIbwkfd49Oz0JWGuDW/59N +mSouVr1+5066QTGLRosbxIIS9gmlz23I6vayRwHyQLkDySPBfF12V4BjFQsmk4eaqvo 6VJA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=adtEC4WfBURTitIjwX+55SGy6MMkYIeItgKTeSXrEoY=; b=y+RNbIzrrrYYjT0fRfncBKdMP9A8HiBQ3aDiBzS/h0lnSqBozMxhqERPSd4j6mGB5F lwYP35kVTxUoNafLJaGPY6/FTpOQSAlhjpb+XTDsY6xhcRJOBvX8IYeWKxufZpXcXmA5 j613FYo/HY7QqYuOpwGFSnIUeFO/VhrqYTi4BQoIAEdC393kZRcEUGQznAp8EKXZngPX tgzISZW/QporYWGiXU+JYNOo0XL1Y5gfEE8pQmc4IrIOQlvZOh01VH7tBjXABNkOW1jM UYARp8nuMECmCRSJH8LzDBpJKfiLrCE4b7MeAUvQ8Oyw3r1i1uw1VQjXaKx/gDEbwwK8 ZIvg== 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 a128-v6si21801773pfb.81.2018.07.11.23.28.57; Wed, 11 Jul 2018 23:29:12 -0700 (PDT) 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 S1732250AbeGLGgG (ORCPT + 99 others); Thu, 12 Jul 2018 02:36:06 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37436 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726693AbeGLGgG (ORCPT ); Thu, 12 Jul 2018 02:36:06 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 5926249B; Thu, 12 Jul 2018 06:27:59 +0000 (UTC) Date: Thu, 12 Jul 2018 08:27:56 +0200 From: Greg Kroah-Hartman To: Dan Rue Cc: Leonard Crestez , Florian Fainelli , Andrew Lunn , Grygorii Strashko , open list , linux- stable , "David S. Miller" , Sasha Levin , Naresh Kamboju , chris.ruehl@gtsys.com.hk, Lars Persson Subject: Re: [PATCH 4.9 181/310] net: phy: micrel: Restore led_mode and clk_sel on resume Message-ID: <20180712062756.GJ20905@kroah.com> References: <20180411183622.305902791@linuxfoundation.org> <20180411183630.390575424@linuxfoundation.org> <1524154267.17017.15.camel@nxp.com> <223ffd4d-567e-6c5c-9581-5304494dd0b3@gmail.com> <1524164724.17017.35.camel@nxp.com> <20180711201548.3rvad25yhcnr5h4e@linode.therub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180711201548.3rvad25yhcnr5h4e@linode.therub.org> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 11, 2018 at 08:15:48PM +0000, Dan Rue wrote: > On Thu, Apr 19, 2018 at 10:05:24PM +0300, Leonard Crestez wrote: > > On Thu, 2018-04-19 at 11:32 -0700, Florian Fainelli wrote: > > > +Others who reported the same problem > > > On 04/19/2018 11:24 AM, Naresh Kamboju wrote: > > > > On 19 April 2018 at 21:41, Leonard Crestez wrote: > > > > > > > > > > Looking at this dump I'm guessing that phydev->priv is NULL at the > > > > > start of kszphy_config_reset and this really shouldn't be happening. > > > > > > > > > > The phydev->priv field is initialized by kszphy_probe but your > > > > > particular phy (KSZ9031) in linux-4.9.y does not seem to have .probe = > > > > > kszphy_probe assigned in the struct phy_driver ksphy_driver array. > > > > > > > > > > In upstream this was added by commit bfe72442578b ("net: phy: micrel: > > > > > fix crash when statistic requested for KSZ9031 phy"). The message for > > > > > that patch claims to fix a kernel crash on this command: > > > > > > > > > > ????ethtool --phy-statistics eth0 > > > > > > > > > > Looking at the code this issue should affect linux-4.9.y on your board. > > > > > Naresh: can you please check? > > > > After reverting the patch i have run this command and kernel oops > > > > showed up. > > > > ethtool --phy-statistics eth0 > > > > > > > > PC is at kszphy_get_stats+0x74/0xa8 > > > > > > > > ethtool --phy-statistics eth0 crashed on x15 > > > >? > > > Chris proposed the following patch, which has not been formally > > > submitted yet: > > > > > > Meanwhile, Greg seems to have reverted the offending patch, so we should > > > be good with 4.9.95. > > > > I don't object to reverting my patch from linux-4.14.y but it seems all > > the affected hardware would also be affected by the crash from?ethtool > > --phy-statistics eth0. Adding?bfe72442578b to stable would be great > > because it fixes more than the patch in the title. > > > > In the other thread there is a mention that "Micrel KSZ8795", > > "Micrel KSZ886X Switch", "Micrel KSZ8061", and "Micrel KS8737" might > > still have problems after?bfe72442578b. Is this because they have > > kszphy_config_init but not kszphy_probe? All versions of > > kszphy_config_init seem to check for a NULL priv. > > To conclude this thread, bfe72442578b has been backported as of 4.9.112 > and 'ethtool --phy-statistics eth0' no longer causes a NULL pointer > error. Wonderful, thanks for confirming this. greg k-h