From patchwork Thu Feb 28 15:01:29 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: 10833299 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 0CD251515 for ; Thu, 28 Feb 2019 15:02:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE2DB2F2FC for ; Thu, 28 Feb 2019 15:02:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC07A2F246; Thu, 28 Feb 2019 15:02:10 +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 9F7662F2FC for ; Thu, 28 Feb 2019 15:02:10 +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=nSMmUQxbBjqPK/1aKk6dHF4m2QFDMaCclPWkam+7rMQ=; b=XjK2YDlNbU6mtD A86SlKXhIr6Dwt+6V43Tz4xCbl2SDIEihQWo7WUAzAsgBkXfsfYnRB+vs+sj56UhsvFfmm4MrtTB3 Z2Yy2um6WhO0R/zavlO6ZYR6PQpIYoe/dCWuNPZf71EHBmr/ZwGpbfKp9GTZ2swwNdvI7aLCwN+e9 i3jJ+p/xv3NytbbKDvg+JZKZ5XH0/ZIBYglFk4hK9HrUxfv8CtB4b3DFvyto3C/gak32RwmgRCz06 lqFgsyr26vLP/Qjh0q2TEjdhrFxqSWh93Y0iNb3vnjZCUsqjNeAecP2/HBk+zeIPJNtWU2mZtbrXW MmiflHn01zor66DFxPdA==; 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 1gzNCH-00077f-Vu; Thu, 28 Feb 2019 15:02:06 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gzNBu-0006jx-QY for linux-rockchip@lists.infradead.org; Thu, 28 Feb 2019 15:01:56 +0000 Received: by mail-wm1-x341.google.com with SMTP id m1so9589867wml.2 for ; Thu, 28 Feb 2019 07:01:42 -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=tD8IiPEUqyLaYnYSU5ZSf8fFwlcOrtjRqkGoEIrGnqo=; b=ecbEwJAq1qv1y9dOgj/ZGMbN6gWhuKdHna5V35VvHtd1n6Oa+uSVHTk0kxZ9lxRlbC Xv+Ja5IDURvv6O7hl9E+y57KPJlFxcRM9PNTOhy2B9q07gFtOJwE8430sjtUfHqQ/VXf bsbE8S35hVqeHMACVgYSeEnlJwb++qSgZ5eHTm48+q8RD5Ww0BF9LsN3h04Lm90OIwyD Rg43nlPzdHp3IUJig48GAppJOZ33ST84EgP/aG8sg3ELA00TMWQEv8TDDc0pMk3VBwPP xM9tYGe8quLxOsuF+v8acFS159QvvYi/8gRcTRLLyf2PKb0tFh+5kvf+LrFh6F5LuPCz OH/w== 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=tD8IiPEUqyLaYnYSU5ZSf8fFwlcOrtjRqkGoEIrGnqo=; b=SxMLNZPEOWJAZlL6T9OCyUjU+Uy1Xom4hbtnI7RvUUPClx1cjuQ7KTizEKR498KhRy 8F53cUm6u0TAah3KcCaHIE/a0cTpZ3yQgjSdRfSLuVoZx/xVsfdj0qGqSLkQeOhl9q2q ZOCB8szOw7//8kam7Tjz5r95rEmfHzWTjnfjf3bIst+xPvRoo81HhqR+eWy+uxdA5aLu QnqH8zzgmLIF6aNji11Nb2/+8lLNuDdmWYrqkhy+VMjXeQEvJ4xgyX++bb8cdM2r+asm sh+SkbvhsA5sIz2clopVAPwn2SKPOIEQ75UEBg2ScmnXcgo8IC6+SYCjPmoVQjX/gJmo KW/w== X-Gm-Message-State: AHQUAuYx1pZPcIP8km9sd9SLMYLocMRZpcqcgwjgdzvOXT0sTbUw2L57 clxq/bdoC63Ko55+2BEGUQU= X-Google-Smtp-Source: AHgI3IYuH+dB3bygOE59BP5JCaBwGn1LL2q/2HHcAIEkM9BET02xcfKaN759VcLmezPP/rvuII/CSg== X-Received: by 2002:a1c:2097:: with SMTP id g145mr61450wmg.81.1551366100917; Thu, 28 Feb 2019 07:01:40 -0800 (PST) Received: from localhost.localdomain ([2a02:85f:151f:4500:d0f1:6c0c:33f3:2af2]) by smtp.gmail.com with ESMTPSA id n130sm6827702wma.48.2019.02.28.07.01.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Feb 2019 07:01:39 -0800 (PST) From: "Leonidas P. Papadakos" To: Levin Du Subject: [PATCH] arm64: dts: rockchip: fix rk3328-roc-cc gmac2io stability issues Date: Thu, 28 Feb 2019 17:01:29 +0200 Message-Id: <20190228150129.28637-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-20190228_070142_973202_66D348D2 X-CRM114-Status: GOOD ( 12.30 ) 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 made for the rk3328-roc-cc here https://patchwork.kernel.org/patch/10804863/ but it doesn't include the tx/rx fixes, and I fins that they help with an issue where large transfers would bring the ethernet link down, causing a reset. Signed-off-by: Leonidas P. Papadakos --- arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts | 5 +++-- 1 file changed, 3 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 99d0d9912950..0e34354b2092 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts +++ b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts @@ -104,11 +104,12 @@ phy-mode = "rgmii"; pinctrl-names = "default"; pinctrl-0 = <&rgmiim1_pins>; + snps,force_thresh_dma_mode; 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 = <0x24>; + rx_delay = <0x18>; status = "okay"; };