From patchwork Wed Apr 17 21:01:00 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: 10906135 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 0B643161F for ; Wed, 17 Apr 2019 21:01:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E330C28AC0 for ; Wed, 17 Apr 2019 21:01:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D21AB28B6E; Wed, 17 Apr 2019 21:01:42 +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 7AFB028AC0 for ; Wed, 17 Apr 2019 21:01:42 +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=+eFWUMCz6w2Dhr/ZJMtVgqxpMVgs7k+TVPki28O1R9M=; b=sYjM0VZPrvaK2X gH9tMI2qqmw4r58Zii+5mKrcDxGTRVol2+Xk58Ja0hT/s8RpERY0LFrRNf0420Ll4IR9tuRn9ZdR8 VF2AOEHHbReoDiokTay/DVwpvPK9suupxLNOqnQ1Yfz57mrVTSy5SP2CjBVrSgJ3+8T/1dn5d/0Yt nZQSmkQAuz5mmSZi+A1iEK8dlzHO3Rbx8O9A4vOj6EN3/uqXRSJlg1c00zJT0M+pwc3Ce32QedrZR T0fMLvv4MVax3SoYduoC/v/T/KWPv3irWzXTMBN87O522hcq/w7jIQn0LVrOVwzw5yuWESapMoRGP RnWCx0V4+XiOdPuygKlw==; 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 1hGrgW-0000DC-St; Wed, 17 Apr 2019 21:01:36 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGrgT-0000Ci-6c; Wed, 17 Apr 2019 21:01:34 +0000 Received: by mail-wr1-x442.google.com with SMTP id g3so118082wrx.9; Wed, 17 Apr 2019 14:01:32 -0700 (PDT) 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=JTl+CBbBfU59bHQhNFH1hnTwP63KNkyYrU6Ao/8XDq8=; b=t4qpvv9RbzZIKz1zWSfKG1FukvMa/jwXz3GUw2eoFSlnAhAVhrfzkQwVmcLRtWfJqU QgX1Cp5u1OzPI0BoC5rM7VVQlVRvWmXcJvcvOIN7vlKJktUQPFgPku1CwbDIUGzwLB5E OD2DgiEX1Z8elSruO79zdfgNmzvW0sNtbj0If9QuJYBwCc/MdifDUkidewhrv7PGTKPF Szd3oeNwSw2j9gRXe8P0PLmmVocrKARDXQrH7QoCKEanSBHki8cOynY0Ll1xsgHZEIxX 15NFyxE5d+9aVvZimJhiqrIPhGm6kUKgoeZ82p4SQ71GlMg0tH8IerhaSyyHFlBm3cnt AXDw== 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=JTl+CBbBfU59bHQhNFH1hnTwP63KNkyYrU6Ao/8XDq8=; b=elGwIWniLVOoN/ztOnABDZ5TfEwoGKuWHsujIfazXILJoO92J+VLXYkOjc8HgwVi44 RamJ/dz7DbNxPdNnzoFvDmJmlJMvSoxq3r+aA89ws/yCAoO0uxywRBJqqpERCmih9Ngh 7YdwBGlcVj4vakg7GLa7wxxEFz0prw+Y4M9A73/Pb7vARRHJk5zxB3NSESL8jnRfl7q7 aRUgAhPIXTs+iaT/YVHI9uOiac8zPuK5hhFXzHCTXREhuWg2RfIGG4Nq1bJm/j0q/Z8v 8bp3LcZjrCovSJpm49Bplcz3L9609AZqDVbj8qHjzQyP3XtkRCIk9cliIamHaq5FNcIl TXyA== X-Gm-Message-State: APjAAAUB78yAlwyVHdGQaYdsTtWfn0yMwsQOkcEMuErSdlYYjTg1Z8Ce RHP1RzxQj08qKrBdxsHZDNpZoZ/Jn34hnA== X-Google-Smtp-Source: APXvYqzXcqYkN4wCxwGmRtASErIx9/taKaxiVrMTq1brvOh4wACGZox3GtDmfmTqkRuofjtRi63kCg== X-Received: by 2002:adf:e9d0:: with SMTP id l16mr1298942wrn.323.1555534891438; Wed, 17 Apr 2019 14:01:31 -0700 (PDT) Received: from X555LD.home ([2a02:85f:1510:f300:9c95:8ff5:24e8:8afb]) by smtp.gmail.com with ESMTPSA id e1sm92770701wrw.66.2019.04.17.14.01.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Apr 2019 14:01:29 -0700 (PDT) From: "Leonidas P. Papadakos" To: Rob Herring , Heiko Stuebner , Jose Abreu , Robin Murphy Subject: [PATCH] arm64: dts: rockchip: set TX PBL for rk3328-roc-cc gmac Date: Thu, 18 Apr 2019 00:01:00 +0300 Message-Id: <20190417210059.26262-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-20190417_140133_266354_DBFA55D7 X-CRM114-Status: GOOD ( 12.43 ) 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, "Leonidas P. Papadakos" , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org 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 Some rockchip boards have issues with tx checksumming for packets larger than 1498 B. An iperf test will tell you that transmissions stop almost immediately. A workaround to this issue is disabling TX checksumming offload, and one of the ways to do that is snps,force_thresh_dma_mode. But after some discussion here it seems there is another path: https://lkml.org/lkml/2019/4/5/148 Setting txpbl is a better-performing (maybe temporary) solution compared to disabling T offload. In my testing with a Libre Computer Renegade, this was the best all-around option, and increasing the MTU doesn't cause a queue timeout anymore. Signed-off-by: Leonidas P. Papadakos --- arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts index 5d499c908..974f2dcdf 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts +++ b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts @@ -141,10 +141,10 @@ 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>; + snps,txpbl = <0x4>; tx_delay = <0x24>; rx_delay = <0x18>; status = "okay";