From patchwork Wed Mar 6 22:34:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leonidas P. Papadakos" X-Patchwork-Id: 10841869 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 40F511575 for ; Wed, 6 Mar 2019 22:35:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1BA362DFFF for ; Wed, 6 Mar 2019 22:35:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0FA462E0DF; Wed, 6 Mar 2019 22:35:14 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 958F12DFFF for ; Wed, 6 Mar 2019 22:35:13 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=C/DEaEA/s173SBHGHvqXYUDCWGKKWxJbhtbv27RzfFc=; b=hw2c3Td50g3/zC CAmJ9CUczr3q+OFfdveNnHTgDmqEmezbfh9Bta1fL2zuxCK1CjAR6J2xkSfJISmm3QOfX3CX1/OoL NKgFbZv8nsbybwhwZ3bRtUpLrICqq0bSxIL3OW6vMIDyeY4RXpFEK7aHb/1M14Lu1wLmIjeib6LLV zSkq22Bysxw0WyPiOKuqIzA6IsM1uu3bHRlkqJyC+G1Wa8kTvfS9e5P7A9FrhCqDpTQYukA3KkY52 kzS3dO1sqoQhWX+8Fs7UsFRq9Nqr2iSvDdPt9qywpWf11RPHCUnru7Ep3Nvb/wsW7H2mAEzBdifsT iFQoAxhH2COJd/Vb4Tfw==; 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 1h1f7x-0008Pj-DC; Wed, 06 Mar 2019 22:35:05 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1f7u-0007sq-1Z for linux-rockchip@lists.infradead.org; Wed, 06 Mar 2019 22:35:03 +0000 Received: by mail-wm1-x342.google.com with SMTP id a188so7373803wmf.3 for ; Wed, 06 Mar 2019 14:35:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=T6psOWgT7TlO/7/EeToxDiHlY/mhtuGwlUTUVGjRFlo=; b=PlPYOewP3Fl1p2bVSQV0CqsXWwq6VR5aN2n9vXpPV1UM65bKsd5Azr5X8PdaeaImRy dF3QyAyAsdsDtppOc2R9HtPkNgUXWWXqq2DnLLHg1/Xo5laWsaxB6yNDoRE1Ml2UO7ki sgx92wmqojQeGKGbJMpzxJKrWlIxdUY+RqWy30pfGgqgNonCMeLfPVYOZr6J6joTI2Td smNS3Y7OxQ3PGboADPIfYyvQ2+/bE/REcviHtIYIzJ/soFK7lVd86B3Bb9AuQtktMCB2 3pSJvkV8qurkwfZB/9nxxFXu8Tuc7X8DDjjZQYmsTKoFIUeuFoRiXZ1MxtBZCAH/IS0C a7JQ== 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:mime-version :content-transfer-encoding; bh=T6psOWgT7TlO/7/EeToxDiHlY/mhtuGwlUTUVGjRFlo=; b=lkwRiEY7Es5cB0rpV67XjULIJMg6VQHEOmXC5jgD6r+JzneclJrVa4qSYITaYj77z/ n643zty13V2qbiWd3Kgt5Keghn2/2dhcLPynet2aFYHzq23fPbWIhPYRt4T3yRQtmUV0 tAFkW4DKUz8pFYmQfysMwKhwB+JEe9+rh/2WILM5X6DlFA7vovUOCZoy6L3BTkw7iyHQ UWxtrddjWWN/G6JV4UWhT0z1yPId+7RnKS8Wh4gbPllZxqfv843XNhNYMExtNm5I1V7G W0U0tiLem4jGLzvuWMvMZ49o8ZZK2sV61Sc6Hd6pqalLpTd/d3ZF6AfEoqCutNQK2Yf8 FgJw== X-Gm-Message-State: APjAAAWDJ0+CidmcUE0xyCcQKTMuDeqsMnxsD0Xvs487YV8xTDXhspll 3nzsZedLgfmwUzSmgQ5izBo= X-Google-Smtp-Source: APXvYqxG62bpKlBUuAU6H/Fvnx/2q+TtAc8iAaOYDW4BbNHFqlm3g/QCAqfT4gAsYXzKACHSpqNNkw== X-Received: by 2002:a1c:7903:: with SMTP id l3mr3973831wme.22.1551911699870; Wed, 06 Mar 2019 14:34:59 -0800 (PST) Received: from X555LD.local ([2a02:85f:1503:3100:9165:59e3:51c1:ae10]) by smtp.gmail.com with ESMTPSA id v9sm1572201wru.83.2019.03.06.14.34.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Mar 2019 14:34:58 -0800 (PST) From: "Leonidas P. Papadakos" To: Rob Herring Subject: [PATCH v2] arm64: dts: rockchip: fix rk3328-roc-cc gmac2io tx/rx_delay Date: Thu, 7 Mar 2019 00:34:54 +0200 Message-Id: <20190306223454.2959-1-papadakospan@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190306_143502_122297_B9A64590 X-CRM114-Status: GOOD ( 11.00 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, Heiko Stuebner , "Leonidas P. Papadakos" Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The rk3328-roc-cc board exhibits tx stability issues with large packets, as does the rock64 board, which was fixed with this patch https://patchwork.kernel.org/patch/10178969/ A similar patch was merged for the rk3328-roc-cc here https://patchwork.kernel.org/patch/10804863/ but it doesn't include the tx/rx_delay tweaks, and I find that they help with an issue where large transfers would bring the ethernet link down, causing a link reset regularly. These values are better for the Renegade specifically, borrowed from the armbian rk3328-roc-cc.dts: https://github.com/armbian/build/blob/master/patch/kernel/rockchip64-default/Add_dts_rk3328-roc-cc.patch Signed-off-by: Leonidas P. Papadakos --- arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts index 33c44e857..ec5454028 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts +++ b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts @@ -108,8 +108,8 @@ snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>; snps,reset-active-low; snps,reset-delays-us = <0 10000 50000>; - tx_delay = <0x25>; - rx_delay = <0x11>; + tx_delay = <0x28>; + rx_delay = <0x16>; status = "okay"; };