Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933016AbcK1Nms (ORCPT ); Mon, 28 Nov 2016 08:42:48 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:36538 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932716AbcK1Nmj (ORCPT ); Mon, 28 Nov 2016 08:42:39 -0500 Subject: Re: [PATCH net-next v3 0/4] Fix OdroidC2 Gigabit Tx link issue To: Jerome Brunet , netdev@vger.kernel.org, devicetree@vger.kernel.org, Florian Fainelli References: <1480326409-25419-1-git-send-email-jbrunet@baylibre.com> Cc: Carlo Caione , Kevin Hilman , Giuseppe Cavallaro , Alexandre TORGUE , Martin Blumenstingl , Andre Roth , Andrew Lunn , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org From: Neil Armstrong Organization: Baylibre Message-ID: <47182829-240d-e4d3-420e-7ee9f08a3dcf@baylibre.com> Date: Mon, 28 Nov 2016 14:42:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <1480326409-25419-1-git-send-email-jbrunet@baylibre.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2336 Lines: 50 On 11/28/2016 10:46 AM, Jerome Brunet wrote: > This patchset fixes an issue with the OdroidC2 board (DWMAC + RTL8211F). > The platform seems to enter LPI on the Rx path too often while performing > relatively high TX transfer. This eventually break the link (both Tx and > Rx), and require to bring the interface down and up again to get the Rx > path working again. > > The root cause of this issue is not fully understood yet but disabling EEE > advertisement on the PHY prevent this feature to be negotiated. > With this change, the link is stable and reliable, with the expected > throughput performance. > > The patchset adds options in the generic phy driver to disable EEE > advertisement, through device tree. The way it is done is very similar > to the handling of the max-speed property. > > Changes since V2: [2] > - Rename "eee-advert-disable" to "eee-broken-modes" to make the intended > purpose of this option clear (flag broken configuration, not a > configuration option) > - Add DT bindings constants so the DT configuration is more user friendly > - Submit to net-next instead of net. > > Changes since V1: [1] > - Disable the advertisement of EEE in the generic code instead of the > realtek driver. > > [1] : http://lkml.kernel.org/r/1479220154-25851-1-git-send-email-jbrunet@baylibre.com > [2] : http://lkml.kernel.org/r/1479742524-30222-1-git-send-email-jbrunet@baylibre.com > > > Jerome Brunet (4): > net: phy: add an option to disable EEE advertisement > dt-bindings: net: add EEE capability constants > dt: bindings: add ethernet phy eee-broken-modes option documentation > ARM64: dts: meson: odroidc2: disable advertisement EEE for GbE. > > Documentation/devicetree/bindings/net/phy.txt | 2 + > .../arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 16 +++++ > drivers/net/phy/phy.c | 3 + > drivers/net/phy/phy_device.c | 80 +++++++++++++++++++--- > include/dt-bindings/net/mdio.h | 19 +++++ > include/linux/phy.h | 3 + > 6 files changed, 114 insertions(+), 9 deletions(-) > create mode 100644 include/dt-bindings/net/mdio.h > Tested using Nexbox A1 (S912) and Amlogic P230 (S905D) devices (DWMAC + RTL8211F). Tested-by: Neil Armstrong