Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3157802rwd; Mon, 22 May 2023 09:23:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ76DuISLreIcKsqFTHpNRCtxVmfFybEoQyylnVE+p4CSKLaqAxwq2ihFBF4Vsy5xJfr1reB X-Received: by 2002:a05:6a20:3d0a:b0:10c:322:72d5 with SMTP id y10-20020a056a203d0a00b0010c032272d5mr1890153pzi.23.1684772609725; Mon, 22 May 2023 09:23:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684772609; cv=none; d=google.com; s=arc-20160816; b=gX+BD7grMEIYJi16PIIprdYUAQTajn7HeOT4De9RDjt2eRMYqHaC0TPEY2IuHhJ/Wf 0N4112ADiemzeyDY6QKnyUQhquTxusTG8HhO1f4xjbqPIzI/FzViRfd+oAJGid18RpE9 MWk7SVE8yymGFdXklJf/BdNo4MpOFffQZmeKpKYVxvm3wXStkLzUPcBQ5JZ2lOoLH0fr TsPSr0i5imeQ4Esn83Nj4xbWNDrkXiKNgPC9wrlMtvoaK+flRR+VOIwsjRPKARSjb+yp rco80Ldi3GMFs3gPjGoN/bs2kalBZC+rCOEE2dMPgxnYYYoyYp1Qc3Im+mpm6i4cq6N7 kW8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1oYReIb21gx1lPn/zOspt867lqTrE9boyBC6cBnhc5M=; b=WppMS3HCVBR1m9lhckK7LdgDRK4BjslBDgnFeoAeJr+v5uv9M25iZo1KRkhIAoEN1E S03CAwmL/Try/O2wPHBmxhqHu6Z2wzoeQBUnv0lk/pPJYpuisrdAdkueHoTlDOcJ1CtH Lv1d22iau3502qAylDkXDQENsGJNYZe5hGBB3QqG/v2lngZLvMBhPejtr5sh/5S6y+LW yBukpzNOmzvUvJSf4rEjYboyWe+DFurV7NJ93tAdVVIXFSAqPmW4s8tMyI/1+2Mv5e30 ElGPq4GsPuSVAGG8WCPdirZxsAiL77CNGqJ8M9Y+gVVEEG7INYxfe6Y5NRJuLsjGrgjN hv7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=AV4hSZlf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r25-20020a638f59000000b0053eedcc5049si2765pgn.105.2023.05.22.09.23.17; Mon, 22 May 2023 09:23:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=AV4hSZlf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229576AbjEVQQO (ORCPT + 99 others); Mon, 22 May 2023 12:16:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbjEVQQN (ORCPT ); Mon, 22 May 2023 12:16:13 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2EBAE9; Mon, 22 May 2023 09:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=1oYReIb21gx1lPn/zOspt867lqTrE9boyBC6cBnhc5M=; b=AV4hSZlfawpDM8oTuN7UkXIApw SF2R8kXwSp2pzbHldYbTZj6T+X71XjBjJEDHx1nLw22MMmUZxJwHoBfFi54awY/51YCekOG6qJjmN We9HBof4Sg/MUrD8PLSl4M1jPW8XX04Z5FhXZgCHAWKFY1pPhtHuQ22IM0t0nxkPbDbE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1q18CS-00DZ3h-AB; Mon, 22 May 2023 18:15:56 +0200 Date: Mon, 22 May 2023 18:15:56 +0200 From: Andrew Lunn To: Francesco Dolcini Cc: Praneeth Bajjuri , Geet Modi , "David S. Miller" , Heiner Kallweit , Russell King , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Grygorii Strashko , Dan Murphy Subject: Re: DP83867 ethernet PHY regression Message-ID: <07037ce6-8d1c-4a1d-9fdd-2cd9e68c4594@lunn.ch> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 22, 2023 at 05:35:33PM +0200, Francesco Dolcini wrote: > On Mon, May 22, 2023 at 05:15:56PM +0200, Andrew Lunn wrote: > > On Mon, May 22, 2023 at 04:58:46PM +0200, Francesco Dolcini wrote: > > > Hello all, > > > commit da9ef50f545f ("net: phy: dp83867: perform soft reset and retain > > > established link") introduces a regression on my TI AM62 based board. > > > > > > I have a working DTS with Linux TI 5.10 downstream kernel branch, while > > > testing the DTS with v6.4-rc in preparation of sending it to the mailing > > > list I noticed that ethernet is working only on a cold poweron. > > > > Do you have more details about how it does not work. > > > > Please could you use: > > > > mii-tool -vvv ethX > > please see the attached files: > > working_da9ef50f545f_reverted.txt > this is on a v6.4-rc, with da9ef50f545f reverted > > not_working.txt > v6.4-rc not working > > working.txt > v6.4-rc working > > > It looks like, even on cold boot, it's not working in a reliable way. > Not sure the exact difference when it's working and when it's not. > Using SIOCGMIIPHY=0x8947 > eth0: negotiated 1000baseT-FD flow-control, link ok > registers for MII PHY 0: > 1140 796d 2000 a231 05e1 c5e1 006f 2001 > 5806 0200 3800 0000 0000 4007 0000 3000 > 5048 ac02 ec10 0004 2bc7 0000 0000 0040 > 6150 4444 0002 0000 0000 0000 0282 0000 > 1140 796d 2000 a231 05e1 c5e1 006d 2001 > 5806 0200 3800 0000 0000 4007 0000 3000 > 5048 af02 ec10 0000 2bc7 0000 0000 0040 > 6150 4444 0002 0000 0000 0000 0282 0000 Register 6: 006f vs 006d Register 17: ac02 vs 1f02 Register 19: 0004 vs 0000 Register 6 is MII_EXPANSION. Bit 1 is #define EXPANSION_LCWP 0x0002 /* Got new RX page code word */ So that is probably not relevant here. Register 17 is MII_DP83867_PHYSTS, and bits 8 and 9 are not documented in the driver. Do you have the datasheet? Register 19 is MII_DP83867_ISR. The interrupt bits are not documented in the driver either. This driver also uses C45 registers, which are not shown here. At some point, we might need to look at those. But first it would be good to understand what these differences mean. Andrew