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: 10485983 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 2952460230 for ; Mon, 25 Jun 2018 13:02:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 147D728DC3 for ; Mon, 25 Jun 2018 13:02:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1108128DC5; Mon, 25 Jun 2018 13:02:21 +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 28CB028E2D for ; Mon, 25 Jun 2018 13:01:11 +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=8J6Fs2zCYr0SA/ZAove3X5Dc/jODNrDVtpJdIQYnsjk=; b=R89 3wQv3IjSu+y22NKPpGdl/naMYauMm0+S/zvEfebBJOOfriolaoVKPNsxZQeyRtCSKnHYuxoF2pam+ vGydB9Xm7zLXOluPNpXkNkFKQIh+uwEnsZvDT0vo610PzddFRO3PfH33+vGTLDR71tQ9mH5JoQbql NgAKtW3QEngrtqd4Q3nVb07+Wmjrym9Kd8A5E5tkdOtypnWkqcgW5t/tdoaak9nlVZvdJcYdhnU4H QUylxO8SNauzNxem0pm2AQKf1wh5nxkZCWJox/gM9L/LEgEeOViw7ycA391nZu2qJSI3kbBPLWRQQ 1Fwx7WSkqKTyce2DJiHXI+kBW6neCmw==; 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 1fXR7A-0000Ht-AS; Mon, 25 Jun 2018 13:01:04 +0000 Received: from casper.infradead.org ([85.118.1.10]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fXR4F-0006SU-MH for linux-amlogic@bombadil.infradead.org; Mon, 25 Jun 2018 12:58:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=UCc3wHAmQeJ56mmCgytTZ4HN/sKKf/fo7z+QUtpnU1s=; b=g2ZmfxN75PC8fneP5jomLp6bw NDVx0lQtLux77M2/GrXVwzhyG6ipUUMuz/wP07tz0nHjePNgfpArSisql8h1DPMS2z9teFL5FcEfM kPJ2rAtJwO+Mp7D51r2k5t0HiHUta6GwSjP7alb2vU4URvJax4XxnVZxS4wTBisZonUi5u1EnMCrW HQk5nhncIl4WX9377u15YECk6ttBQUUyb6JqJ88uX/tS1XF+xi4iD+XSRToFjn/V8Fp4joZ6duHn0 Zbnm6hFHt0r7jGRV5aGFf6ANT5ddPhbFo/yZ4g3j1erl1EsyxMPxji5HLMZH/PPy6f+bWNH2h4XGn vjI9wZ+7w==; Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fXR3Q-0001Fi-8G for linux-amlogic@lists.infradead.org; Mon, 25 Jun 2018 12:58:01 +0000 Received: by mail-wm0-x244.google.com with SMTP id x6-v6so9136496wmc.3 for ; Mon, 25 Jun 2018 05:57:00 -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=E65+H4YVWiNBJKPyM7lINTTqB6eKt506YdmQV/c5DT4WRCbDLdBuoqW9jMFYeQNcIY GTJNcHIsBQZrSquJedYvTYzE7eLromC818zVv9lg22+iLf22PSRxputmZ28iROzniS3c nBVBgJRzIM5YFu0kbGuLDFslCNqZQbikMjMur2f8qlenMPnIvNkuHszasrOus+IqqWQ7 Xc8GN6fUBJCs/3dAQm2zCIdzCoTkGFqctfOeOR3fxmAY6PtPgn+7P5pJSUpcTirKnl0T eeLgO7ka0pKsMxjLFr+utzURGIITbIYlEc8cxRZBu27tUfgW81d/W65m95gEZ7Z2vnPk 0Fmg== X-Gm-Message-State: APt69E1wWpQuqMwuwQbsL9GevbdPD+w99KltsSwBjBfL4oT9fDywRVq8 o34pZokVDl/ASyLTCUWbMSMITSP+ 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_135753_256411_88D20005 X-CRM114-Status: GOOD ( 10.92 ) X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=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 {