Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6553168ybc; Thu, 28 Nov 2019 01:13:24 -0800 (PST) X-Google-Smtp-Source: APXvYqzot7P3P2MiaQ7xgFZBgrmZilQVs1r6/KGJ+rx1j++4HomVe0/2RZ8PiqWml9r4SleXAvIb X-Received: by 2002:a17:906:1f98:: with SMTP id t24mr51799041ejr.143.1574932403934; Thu, 28 Nov 2019 01:13:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574932403; cv=none; d=google.com; s=arc-20160816; b=ITDl6BN6SkyC9ZpQOFc3PzpB0SBPtyrUji5gwAa/DCEH6kECgbad6Dcv8KKuSBiXii TE0oLPly29HekYw+lfNDpNupZXmYTpzKBUaWbFIAS1W9otb4S/lnn/Dve8nqBuk3LDEu epl7DIN4SWOenj7DGAYuBLzvDoWGJ1qzsOHLD0IUT1LLi/2BF7tC0E4Tco8xcQYqfyPJ bbjarvPTGQW2iCzXX6W7L34g8KPQbmYTbObaJnHIj7z6ORaBm1C6ClvXJuRiBpAKt6p8 wAmUhbYsp+iGzHx0HsA7HivMZbhtQNkrt75C6Pyv7cS17FC/PpRx5Hov3aYx/Sn8a6jT mp7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Fc//UInfHPoIKyWPi85ZNKUjRkZq6MiEaJhQJmuxLoc=; b=Zq1N3vC45+DGYegtoVNvaVux3Mkhx1qmriW6W7ncIITHJLiSJPTmabLkKzo2mhSKMx n2BbVLe0JZxtouMlQu0UVkW5ReA8Q1CTPtT8dtyYAjhDH0c5gGQ4LRrkGFykHIsRA84I 7cadX1UMp4JOfImd+ADOiprSkmDtfjuMwM4jCEszrKKmuI/diddh0ACWHZZz2kUpW5nG ocoo6OAzoRR4idm/9kddd7+A2QfRcrFSHInxRY6NPMyVmsS2olyq3xLBqyhafFPIXb9r df/bxlQf0St6mCWlV+p+RiYp9ESuD9BqLOPbhv3U6Sm3Oh8GzYEx0jSc4WuouT8TOpok NbuQ== 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 pw17si11840635ejb.45.2019.11.28.01.12.59; Thu, 28 Nov 2019 01:13:23 -0800 (PST) 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 S1726778AbfK1JLy (ORCPT + 99 others); Thu, 28 Nov 2019 04:11:54 -0500 Received: from ns.iliad.fr ([212.27.33.1]:48048 "EHLO ns.iliad.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725789AbfK1JLx (ORCPT ); Thu, 28 Nov 2019 04:11:53 -0500 Received: from ns.iliad.fr (localhost [127.0.0.1]) by ns.iliad.fr (Postfix) with ESMTP id 136C42056B; Thu, 28 Nov 2019 10:11:52 +0100 (CET) Received: from [192.168.108.51] (freebox.vlq16.iliad.fr [213.36.7.13]) by ns.iliad.fr (Postfix) with ESMTP id E3DF120234; Thu, 28 Nov 2019 10:11:51 +0100 (CET) Subject: Re: [PATCH] arm64: defconfig: Change CONFIG_AT803X_PHY from m to y To: Oliver Graute Cc: Andrew Lunn , Peng Fan , Florian Fainelli , Anson Huang , =?UTF-8?Q?Andr=c3=a9_Draszik?= , LKML , Russell King , dl-linux-imx , Linux ARM , Heiner Kallweit , Fabio Estevam References: <20191127124638.GC5108@optiplex> From: Marc Gonzalez Message-ID: <1ed54a69-c29f-6008-02ae-11d16f68b265@free.fr> Date: Thu, 28 Nov 2019 10:11:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191127124638.GC5108@optiplex> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP ; ns.iliad.fr ; Thu Nov 28 10:11:52 2019 +0100 (CET) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/11/2019 13:46, Oliver Graute wrote: > On 27/11/19, Marc Gonzalez wrote: > >> On 26/11/2019 15:54, Oliver Graute wrote: >> >>> this patch broke my imx8qm nfs setup. With the generic phy driver my >>> board is booting fine. But with the AT803X_PHY=y enabled I'm running >>> into the following phy issue. So on my side it looks inverse as on >>> yours. What is the best proposal to fix this? >>> >>> [ 5.550442] fec 5b040000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off >>> [ 5.573206] Sending DHCP requests ...... timed out! >>> [ 95.339702] IP-Config: Retrying forever (NFS root)... >>> [ 95.348873] Atheros 8035 ethernet 5b040000.ethernet-1:06: attached PHY driver [Atheros 8035 ethernet] (mii_bus:phy_addr=5b040000.ethernet-1:06, irq=POLL) >>> [ 99.438443] fec 5b040000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off >>> [ 99.461206] Sending DHCP requests ...... timed out! >> >> Which DTS are you using? > > I'am using this DTS which I'am currently working on: > > https://lists.infradead.org/pipermail/linux-arm-kernel/2019-October/689501.html >> >> I bet one dollar that 6d4cd041f0af triggered a latent bug in the DTS. > > So what should I fix in my device tree? In the board DTS I used to work on, I had this: ð0 { phy-connection-type = "rgmii-id"; phy-handle = <ð0_phy>; #address-cells = <1>; #size-cells = <0>; /* Atheros AR8035 */ eth0_phy: ethernet-phy@4 { compatible = "ethernet-phy-id004d.d072", "ethernet-phy-ieee802.3-c22"; interrupts = <37 IRQ_TYPE_EDGE_RISING>; reg = <4>; }; }; In your DTS, you #include "imx8qm.dtsi" I found no such file: $ git ls-files | grep imx8qm drivers/pinctrl/freescale/pinctrl-imx8qm.c include/dt-bindings/pinctrl/pads-imx8qm.h In your patch: https://patchwork.kernel.org/patch/11211567/ +&fec1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_fec1>; + phy-mode = "rgmii-txid"; + phy-handle = <ðphy0>; + fsl,magic-packet; + fsl,rgmii_rxc_dly; + status = "okay"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethphy0: ethernet-phy@0 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <4>; + at803x,eee-disabled; + at803x,vddio-1p8v; + }; + }; +}; Try all possible 'phy-mode' (rgmii, rgmii-id, rgmii-rxid, rgmii-txid) Investigate 'fsl,rgmii_rxc_dly' (it's not a standard Linux DT prop) Documentation/devicetree/bindings/net/ethernet-controller.yaml Regards.