Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp638158rwd; Thu, 25 May 2023 01:32:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6v9cWkCZLSpbNioS60Q2zY9JJjuovCirEE8yA5DQQ2NprAfwyYyMS6K75B4pmvxbmn07oW X-Received: by 2002:a17:90a:5894:b0:252:8698:d03b with SMTP id j20-20020a17090a589400b002528698d03bmr861430pji.14.1685003558038; Thu, 25 May 2023 01:32:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685003558; cv=none; d=google.com; s=arc-20160816; b=t1p3WCT1syw1iRR+YGDVVzL4Wc7uAeun24lSJ+d9D0qH6+6ICnVCUD79ifzUGkSt0D DPpH8ZRFNVsb5Zl4CFwFxA+XxxprFkv8N+jXYVsTdnyAs8t+Isb2auw2Wso//iPZUhpu 450Yvep8syjWgjTNupFjhZEG04G2UUWp6xxAw2M5Gum6CrWyqGHanDmSz/J/i4OCQGkf /Qerj58JCQ1AM8CuepMn7UvEqEOfRTNLZ7RMOLoeUUMWgq5KQgnNrPylXBXP5G9f2OFR AxsJGjsKpJhWCX/VDZQEXA6NVgoshTvZB/az0y5THUDrB9Cph3CU7ecXavdU4J8yM8kI tsYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature; bh=nhKc0mAgAHG1uUzY5knTrGiokdmqHJnsDHjF/RXZ8pA=; b=ezicXr/UH7cnQ0iRsRqxG40BGVaF7jAtdbEy8/wL7JyWXuLkKXzVaDV6MfiEviXW0x aKxHfeyq8XBWloghK0mG16Ll6B/hOotfDZr7CMReE1e0ZFkkrCnf5KuN+stjRlL5ZX0H FZPJjNnjSwnO0cq9Wh23H+y0QKrxpmK1cRMhIocldp9SZrx/Oe5FB9GCv9gJoiIOVOuN tyA3fFcvZWA/KcQB3xl7Dj/LUrNzEfc2iF/2NKtaSovHC3BhZpf4qWo/vw5w4XcMXr9i vSeWofUViTQHLQG0QoVTMqy9hOx+5uTNix1qO36a/NivqVwZwJqEP67G0t+XkWwhX1x2 xTYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=M7j53JGX; dkim=pass header.i=@tq-group.com header.s=key1 header.b="VOK1z3/G"; 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=tq-group.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c22-20020a17090a109600b002475bc0a186si899889pja.69.2023.05.25.01.32.23; Thu, 25 May 2023 01:32:38 -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=@tq-group.com header.s=key1 header.b=M7j53JGX; dkim=pass header.i=@tq-group.com header.s=key1 header.b="VOK1z3/G"; 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=tq-group.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230054AbjEYIS4 (ORCPT + 99 others); Thu, 25 May 2023 04:18:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbjEYISy (ORCPT ); Thu, 25 May 2023 04:18:54 -0400 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C617F122; Thu, 25 May 2023 01:18:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1685002732; x=1716538732; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nhKc0mAgAHG1uUzY5knTrGiokdmqHJnsDHjF/RXZ8pA=; b=M7j53JGXOqlxbqO0KMmksHJVRIAgO4LCcmUOoESMbllCo9RqaGdeXtQc jFROvrFgLMx08YS+tvros+cR24IxFmkCWuKQfcF7Cs9EoLdDpqBLcgUyi t0yapn31FjVThOq1CiLvsi/X3fv9GAtzA/Ti5s3rvUhnBDDnm9Xf+Aan1 9A9GlsXyPHRF+5ZXSEbEGVh72Z2A68z352Wqdv0fEXDpxfbAoHpa7nvZn /VwuNSXWVgFDLoorBpNRI6rEv8CH+2NVakbSXkwS/c6OYVW5e0w/ZthqZ b2MACtixVGWSfzHcA42xn2oCepUY1ioW9CGFAa5H5I4BBiY94KMsChmJ5 Q==; X-IronPort-AV: E=Sophos;i="6.00,190,1681164000"; d="scan'208";a="31092978" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 25 May 2023 10:18:49 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Thu, 25 May 2023 10:18:49 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Thu, 25 May 2023 10:18:49 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1685002729; x=1716538729; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nhKc0mAgAHG1uUzY5knTrGiokdmqHJnsDHjF/RXZ8pA=; b=VOK1z3/Gnea3Zf+C1yDOMmT+9IxdmOpoTtwCoimwlIjNbjQKsGB7WeCr xcw+tmJ4zYnCBXmqB3DL/gRon2ZwFKqNgdrr44zN/CsVoKb3j72aozK8Z jKWasdSAwik9LFIGVvwwNXfyaolNSBdqjRAJLFelOY7cZhwdXei0r6r5F jX3O7YHYca6OQdSPY15aI+IH3RKJesK5ydMHS4afDNEYsvAX8W9oGqGBI +3KmOdPidThpkaBFrMj0o7kqElmDrqDAUfGBDPT8v++b9S3ha0iYfF2OT 28rfOz73G4dwuynRvvTwZYAvLsLAVwGxPoSXFV685jKqcitskmKWj3uVm w==; X-IronPort-AV: E=Sophos;i="6.00,190,1681164000"; d="scan'208";a="31092977" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 25 May 2023 10:18:49 +0200 Received: from steina-w.localnet (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 689C6280082; Thu, 25 May 2023 10:18:49 +0200 (CEST) From: Alexander Stein To: Francesco Dolcini , Andrew Lunn 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 Date: Thu, 25 May 2023 10:18:49 +0200 Message-ID: <1857120.tdWV9SEqCh@steina-w> Organization: TQ-Systems GmbH In-Reply-To: <07037ce6-8d1c-4a1d-9fdd-2cd9e68c4594@lunn.ch> References: <07037ce6-8d1c-4a1d-9fdd-2cd9e68c4594@lunn.ch> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Hi, Am Montag, 22. Mai 2023, 18:15:56 CEST schrieb Andrew Lunn: > 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 ret= ain > > > > established link") introduces a regression on my TI AM62 based boar= d. > > > >=20 > > > > 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. > > >=20 > > > Do you have more details about how it does not work. > > >=20 > > > Please could you use: > > >=20 > > > mii-tool -vvv ethX > >=20 > > please see the attached files: > >=20 > > working_da9ef50f545f_reverted.txt > >=20 > > this is on a v6.4-rc, with da9ef50f545f reverted > >=20 > > not_working.txt > >=20 > > v6.4-rc not working > >=20 > > working.txt > >=20 > > v6.4-rc working > >=20 > > 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. > >=20 > > Using SIOCGMIIPHY=3D0x8947 > > eth0: negotiated 1000baseT-FD flow-control, link ok > >=20 > > 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 > > =20 > > 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 >=20 > Register 6: 006f vs 006d > Register 17: ac02 vs 1f02 > Register 19: 0004 vs 0000 >=20 > Register 6 is MII_EXPANSION. Bit 1 is >=20 > #define EXPANSION_LCWP 0x0002 /* Got new RX page code word */ >=20 > So that is probably not relevant here. >=20 > Register 17 is MII_DP83867_PHYSTS, and bits 8 and 9 are not documented > in the driver. Do you have the datasheet? Bit 8 & 9 is indicating the MDI/MDIX resolution status for lines A/B and C/= D. > Register 19 is MII_DP83867_ISR. The interrupt bits are not documented > in the driver either. I guess that's the more interesting part. Bit 2 (0x4) indicates a xGMII=20 (RGMII/SGMII) error interrupt. Best regards, Alexander > 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. >=20 > Andrew =2D-=20 TQ-Systems GmbH | M=FChlstra=DFe 2, Gut Delling | 82229 Seefeld, Germany Amtsgericht M=FCnchen, HRB 105018 Gesch=E4ftsf=FChrer: Detlef Schneider, R=FCdiger Stahl, Stefan Schneider http://www.tq-group.com/