From patchwork Mon Jun 25 12:56:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10485967 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3C3E1601D5 for ; Mon, 25 Jun 2018 12:57:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 275632883D for ; Mon, 25 Jun 2018 12:57:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1BBD028847; Mon, 25 Jun 2018 12:57:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8D2A52883D for ; Mon, 25 Jun 2018 12:57:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=SQDNQq/QstaBi/Mc00OlbZwFHvyg33JFfSzOtVPGAcw=; b=VDz Rp+vnWxW6VIrOTXiwlk7yrv7SzhQgcGuT/oE31w7X6vFmraDPhDLC4Lvnbzr4uZmojTJyBBkL+Bln HdRJ8lxyd7D+fHXUJxdUTUg4XXu57fx2xNNoQBiUEkdR2MMaiKd0O66EDgqACsKYn8n3eWRefznCq tyuG/Ba3wmmjPxkPPNVdXUOmaC/U1H7oOF5foVcKSIae2L+iDNHO7LYMk5EIR8e830zsMOz43iGfr 63HDMrb7yQIdXIL8WMKuZiSdS2Eg0jrM37J0tFJ4lt87dnH1JOcF8dtGEIoqViAyCCDZbC+oP1Naw 7suFxRNZqyvxpnAkppou6obtksitCmw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fXR3b-00066h-Lp; Mon, 25 Jun 2018 12:57:23 +0000 Received: from mail-wm0-f68.google.com ([74.125.82.68]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fXR3Q-0005zu-Rm for linux-arm-kernel@lists.infradead.org; Mon, 25 Jun 2018 12:57:21 +0000 Received: by mail-wm0-f68.google.com with SMTP id p126-v6so9184349wmb.2 for ; Mon, 25 Jun 2018 05:57:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=UCc3wHAmQeJ56mmCgytTZ4HN/sKKf/fo7z+QUtpnU1s=; b=HOG5EKb5jyl9xVRsyR8mT20kTLOBaB6fHBHc8+93qoClPy7+4rLyN0+rDYTJ8TQASI idvh3jqQONlLZFgXR3ZagaFIKi2OPdLSM/PXd7U/jJTsE0WUKZ5KJ5khtLf4XFNLoDJJ Vcoi71aIWLu+dYDp1F98oP4P66eIrZyS/lWvQif5YM5toU8ei6kp8twa/mboT0HmJYbA 6VqEEbtG8wCWn641avHbeTlYIea7Sb5+Gwhy7OcK6lUnxWjV85T63LZBamSezDtoxqNd 8PDMRbV7sGV6B42K37064t27uOmTJiyjeI+6ZAmQggHDVFwB5bYI7cd4OKPcANdcFOFq 7FnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=UCc3wHAmQeJ56mmCgytTZ4HN/sKKf/fo7z+QUtpnU1s=; b=eQuRLnkxXeghvJiFXfCY06D7Da6YPIU6Ta56ZeUKxz4WG4WqO4urp7GwgaOqxPM1aK 01Z9ZF8uwfBT4iptBUpp4AifMdVbIYpQn7cUH9lb3UxYN6qEauzL1xWjqKcoyFtAjs1G EYqZ+cF4Z73YDhSuD3acDCflriaB4JCnVTUnGEG+V4SQNJssFyZ1KV2aC0qEtsXO5m8u KJodOBQm5MY3OsCEzW0M35a5kc+qILiL6lmpGmiyChbRydMbP34nJ5lzGxaVSug8+XNP cvYWIKFIswra1GAxQ+N3nUGZbFUJn2A9wrQCoSJ3NF0jbClMp5jJf5WIY/leN9X9LRor Lrjw== X-Gm-Message-State: APt69E33eM+RSuHP/jTESis7kL+ApnctselWnp9fv5HK7pApve0pZ2ZK TJL18BaeDKjinaepSm2tfSxdeg== X-Google-Smtp-Source: ADUXVKLP4TeEYP7VJvtnLK2pyDHvUFpl98S+jDzgD/8eI8eVIjWr2e2U22ZCIignDzhX3c5ZOD6H1g== X-Received: by 2002:a1c:6e19:: with SMTP id j25-v6mr923129wmc.30.1529931419664; Mon, 25 Jun 2018 05:56:59 -0700 (PDT) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id h77-v6sm14146551wmd.9.2018.06.25.05.56.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Jun 2018 05:56:59 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione Subject: [PATCH] ARM64: dts: meson-axg: fix ethernet stability issue Date: Mon, 25 Jun 2018 14:56:53 +0200 Message-Id: <20180625125653.3404-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180625_055712_910472_BD4BC36A X-CRM114-Status: GOOD ( 13.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Like the odroid-c2 and wetek, the s400 uses the RTL8211F and seems to suffer from the kind of stability issue. Doing an iperf3 download test, we can see a significant number of LPI interrupts on the tx path. After a short while (5 to 15 seconds), the network connection dies. If using rootfs over NFS, the connection may also break during the boot sequence. We still don't have a real explanation for this problem so let's disable EEE once again. Fixes: f6f6ac914b82 ("ARM64: dts: meson-axg: enable ethernet for A113D S400 board") Signed-off-by: Jerome Brunet Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts index 4b3331fbfe39..dff9b15eb3c0 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts +++ b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts @@ -66,9 +66,22 @@ ðmac { status = "okay"; - phy-mode = "rgmii"; pinctrl-0 = <ð_rgmii_y_pins>; pinctrl-names = "default"; + phy-handle = <ð_phy0>; + phy-mode = "rgmii"; + + mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + eth_phy0: ethernet-phy@0 { + /* Realtek RTL8211F (0x001cc916) */ + reg = <0>; + eee-broken-1000t; + }; + }; }; &uart_A {