Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6305636ybv; Tue, 18 Feb 2020 14:12:58 -0800 (PST) X-Google-Smtp-Source: APXvYqybxXRMASY1d34gynOYO7PzuSmFmgMK1ZgOhCujLLnVjUi0dtKpyy7x3zSH3ioLPanEQZyC X-Received: by 2002:a9d:20c1:: with SMTP id x59mr18049558ota.286.1582063978698; Tue, 18 Feb 2020 14:12:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582063978; cv=none; d=google.com; s=arc-20160816; b=mdJyc6egVUZr6QNfgZ5Ycyl2BZffp0f00A198LqPGcdLjHdoMiyfGnhH2b/IWIS6E0 7H5W3kL/eGp8mALYLM5O9x1IOjtGbVAsavn/vpDjev8ZULapN8iY8r5nVZHiZLos0RFE JkOwAd4X4c44ntd/wwu/1T7lJfUG3GDtJcR0fBEE/jPCVx3a1wtTA7DDa1MRx3TXwDmS QVca88mrP7f7RzQPxf0YB28RQdf4RMNqeqlQ98Nweg2rgG6ai98ol9TFGvFGT3Znf+bg dROrawybq+zQulFjlDy2++XJM/s02H0TIQOTZmXUziTC0Ag93UznfV8sd2wJ3/OsRujx dLOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=SexCyhtG++Ew70oYHNDjxWHTtm2YNgcLBPVDPrQlosM=; b=kBM4Mg+YQUGaMeuJWaudT3gaVaosbOVBqYbsFNAYXnd0/P0XzHIH0xzAfnCG+DW1Dq 0ouQfcc9a0tWfZ7OJg/NQPSx+yvari3pE3HOYRct1O7AAuGX3L5pWvDbiQes5pU4ODua 6t0DJZ/5uTHce226zrmdOjuCZY6NBcccksUIqTLX5mX3XBzlmS3F4Yq72y17d5LwFS9p ugkTF9s7+iz2iHfesA5YLP70PZQcf3GaYkOT3KABvMUbN7tFbj7v/o7lDgn+vodZK5lJ hVC+jIEs0ixvfEnKZyYXPnzG26eOgrAth7J4KppEpF9E7We9wM1vJ8N3xagTwVhy0cBH f7SA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8si54281otf.32.2020.02.18.14.12.46; Tue, 18 Feb 2020 14:12:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726461AbgBRWLg (ORCPT + 99 others); Tue, 18 Feb 2020 17:11:36 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:33895 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726352AbgBRWLg (ORCPT ); Tue, 18 Feb 2020 17:11:36 -0500 Received: by mail-qk1-f194.google.com with SMTP id c20so21184081qkm.1; Tue, 18 Feb 2020 14:11:35 -0800 (PST) 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=SexCyhtG++Ew70oYHNDjxWHTtm2YNgcLBPVDPrQlosM=; b=M6WgOTSsB2eroVtH/gNW4Np4t84zmB52a5fVaCOmSnLGmkgoqlQUQmPn/mJnfXB7v+ EPwEJHZBvPqa6i9u9VpItKK06JobPftiaVM4Kdrvrlup7tV2iJy78hen7Msb6c295mNc Skok3pKk1n8R3mUPYXW2L3NpmyfHoUgB2qN1gwhR7t2sSHnVxyC6GO+ofGYAKss/SXWh gUuKke+mMbfYYDIrxBI7ACN+cKWBVgsSo2eyhZzFsOurffhRw5VhW00p3vlZS4je2BZU kH80heuV3N5tobDmudFrcIieMj2d4BnWj2TpwEAU4aiW8JdEk2Qxttx2oGtY0CA1ydDu YOYQ== X-Gm-Message-State: APjAAAXJIHeyechw2FWNLWCoRlLt2yc1DKUT+OoFtRJXU9t4G77KWP1L AWL8cmnjer1zx/UzeHQy8Bw= X-Received: by 2002:a37:6197:: with SMTP id v145mr20336585qkb.443.1582063895017; Tue, 18 Feb 2020 14:11:35 -0800 (PST) Received: from localhost.localdomain (189-18-27-64.dsl.telesp.net.br. [189.18.27.64]) by smtp.googlemail.com with ESMTPSA id 85sm5415qko.49.2020.02.18.14.11.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Feb 2020 14:11:34 -0800 (PST) From: Carlos de Paula Cc: papadakospan@gmail.com, jose.abreu@synopsys.com, Carlos de Paula , Rob Herring , Mark Rutland , Heiko Stuebner , Robin Murphy , Jonas Karlman , Peter Geis , Katsuhiro Suzuki , Johan Jonker , Philipp Tomsich , Christoph Muellner , Enric Balletbo i Serra , Daniel Lezcano , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: rockchip: Add txpbl node for RK3399/RK3328 Date: Tue, 18 Feb 2020 17:10:37 -0500 Message-Id: <20200218221040.10955-1-me@carlosedp.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some rockchip SoCs like the RK3399 and RK3328 exhibit an issue where tx checksumming does not work with packets larger than 1498. The default Programmable Buffer Length for TX in these GMAC's is not suitable for MTUs higher than 1498. The workaround is to disable TX offloading with 'ethtool -K eth0 tx off rx off' causing performance impacts as it disables hardware checksumming. This patch sets snps,txpbl to 0x4 which is a safe number tested ok for the most popular MTU value of 1500. For reference, see https://lkml.org/lkml/2019/4/1/1382. Signed-off-by: Carlos de Paula --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 2 ++ arch/arm64/boot/dts/rockchip/rk3399.dtsi | 1 + 2 files changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi index 1f53ead52c7f..b7f1de4b7fd0 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi @@ -906,6 +906,7 @@ resets = <&cru SRST_GMAC2IO_A>; reset-names = "stmmaceth"; rockchip,grf = <&grf>; + snps,txpbl = <0x4>; status = "disabled"; }; @@ -913,6 +914,7 @@ compatible = "rockchip,rk3328-gmac"; reg = <0x0 0xff550000 0x0 0x10000>; rockchip,grf = <&grf>; + snps,txpbl = <0x4>; interrupts = ; interrupt-names = "macirq"; clocks = <&cru SCLK_MAC2PHY_SRC>, <&cru SCLK_MAC2PHY_RXTX>, diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 33cc21fcf4c1..cd5415d7e559 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -288,6 +288,7 @@ resets = <&cru SRST_A_GMAC>; reset-names = "stmmaceth"; rockchip,grf = <&grf>; + snps,txpbl = <0x4>; status = "disabled"; }; -- 2.20.1