Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3106724rwd; Mon, 22 May 2023 08:44:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7IHzFnJikqKwimT3WgQ403kbA6K1Umub0RbIMWn01Cl2oEhi6SGfOHnH5j4OHXCeJwqWKS X-Received: by 2002:a05:6a20:7343:b0:10a:ef63:cd15 with SMTP id v3-20020a056a20734300b0010aef63cd15mr7407025pzc.60.1684770279338; Mon, 22 May 2023 08:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684770279; cv=none; d=google.com; s=arc-20160816; b=K6Lj08W9Ujp1S9WiG478IEdpK4BEEXFzQ7BKzAu0SfO8U4z576UlG6/sudGZo6kdGU Z+vGaZlIHNc6lIghIl6UXRZxOw9XMNz2VRjNDLDMH8Rdbr6K2dMuCtdw5gLqbfMprGkT MtpJZurMaRGOoMS6L9qfpVLGsYjcuhG3HY33uXmoSTrLMOlrgGIs5iHT7O0xSCWzshOX kDfKChtNmBxi+5n3LHGr4G5pcanuQEdyE7TESto4mGhWa0S5acR1xLI4sh/9iXdCm7Ct AJqDkFwToMMURPVzfdZ3IprryBs+SO1uAq8vI9A2RZGnkP8Ajks0hxOguCWvpiqhDq++ 2SUg== 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; bh=Efl/pfUpVMLq5MbWviy0FMAqivYdSOUjqTLjVrk4ztE=; b=on/U0M8cuIGlNwJ5H+vBmo5+TiLnVzmL0GIfwIiOm78/yH8fZ1bfA3aPakZBucqZnN yHcw6V2EcqvqugXkkFTVS2Oa4Sql4H0FBvOlKXoZfEGazORXTl8trjEJ16yuEtGREqMv LdvkXFkB04Nk4yp83e8mGTUeTZbVZHMqxm6J/GvdPqsd+UkTXJEG2YYO+rMiAk4HzoRW EES7+2oi41SOXtPDElM4JZvpFRn3mWp22XLLHvdQqtdZWRMIagyoOVftO7NFuawF2v74 FGUfnD7Yg6zy1iaAfw0fMqXKXoJHHomdV8FZaL4V/SgXitTsGqgswhXwfnbHkpKLkJlu qqHg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bu26-20020a63295a000000b0051b59786e6csi5184559pgb.300.2023.05.22.08.44.27; Mon, 22 May 2023 08:44:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234261AbjEVPfl (ORCPT + 99 others); Mon, 22 May 2023 11:35:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233263AbjEVPfi (ORCPT ); Mon, 22 May 2023 11:35:38 -0400 X-Greylist: delayed 2201 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 22 May 2023 08:35:37 PDT Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0170CD; Mon, 22 May 2023 08:35:36 -0700 (PDT) Received: from francesco-nb.int.toradex.com (31-10-206-125.static.upc.ch [31.10.206.125]) by mail11.truemail.it (Postfix) with ESMTPA id 044E721334; Mon, 22 May 2023 17:35:34 +0200 (CEST) Date: Mon, 22 May 2023 17:35:33 +0200 From: Francesco Dolcini To: Andrew Lunn Cc: Francesco Dolcini , 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: References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="/zTa0TOsm9Yb+E2A" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 --/zTa0TOsm9Yb+E2A Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. > in both the good and bad state. The register values might give us a > clue. Thanks for your help, Francesco --/zTa0TOsm9Yb+E2A Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="not_working.txt" 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 product info: vendor 08:00:28, model 35 rev 1 basic mode: autonegotiation enabled basic status: autonegotiation complete, link ok capabilities: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD advertising: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control link partner: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control --/zTa0TOsm9Yb+E2A Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="working_da9ef50f545f_reverted.txt" Using SIOCGMIIPHY=0x8947 eth0: negotiated 1000baseT-FD flow-control, link ok registers for MII PHY 0: 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 product info: vendor 08:00:28, model 35 rev 1 basic mode: autonegotiation enabled basic status: autonegotiation complete, link ok capabilities: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD advertising: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control link partner: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control --/zTa0TOsm9Yb+E2A Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="working.txt" 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 0000 2bc7 0000 0000 0040 6150 4444 0002 0000 0000 0000 0282 0000 product info: vendor 08:00:28, model 35 rev 1 basic mode: autonegotiation enabled basic status: autonegotiation complete, link ok capabilities: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD advertising: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control link partner: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control --/zTa0TOsm9Yb+E2A--