Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp540555yba; Mon, 1 Apr 2019 11:23:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhgNyJ79bfDC6rkMjECrs7E1HMkpkNqEb5XLxohfuCqFhKvAeDc4dOLqJR9M0LAyoh+Ptw X-Received: by 2002:aa7:8083:: with SMTP id v3mr47660678pff.135.1554142990007; Mon, 01 Apr 2019 11:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554142989; cv=none; d=google.com; s=arc-20160816; b=xqgD4g2Z1GUeBlsUHPomK49wkSAQKEM5k8dxRPsQ235ZVaKOgqS0Q9HWfuQnjA5IHb 0KgW13/RRJO+pTTwF3HZxzLe2Fnsk7F3Nop+RW5rvhJQrnputF1WtiKK9Fu4WK6yg7I4 XBsdo/ovWNdO3IlEYuwSow8C83MinaKnI459DKdb2Zs5i6UQ3MBh6yk8UK/sX1NmVjni XPSnFHoMSKZwoatByBjnwRysJjz/qhGKDftXtIqVNVmBity8JuSVTGMm4FXQMR2Xh04r AC6fPohlvMBj2Nz7kDxD7kjnk9KbRDimZ+P6dzAtX6vy7aYtGyME81zEwOHQcOfX+R/l 8Cnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=rSh5VVkG9WipijbhAmyfU9722WPS5gvQw5koNSuFkG0=; b=tVtAYC5/3sg6ziKOUGA9cmqRHUkBFVEg+1HxLlycuL1uiKe2yjO6evXFPGx4uu/CaC 7d0BYSPl4umsWMt8HeWFYX7HBa3BSj9T9YI0iVpZ7aljm30l18X45DMmdQhSX5scFhtp dlK6ziiA+ESVd8yoYXsbfn0IaUogUhAohxsUH6oMRsTP4aCuN+Xgcp+cNWZ670WQ026l 6sSmA+tjD+azPlGXOANtkXW9wwhHBzJN1aqNhNcprTa3CgjjVyPfCUZdeZF1+C4+vtJf ipRglzknetCj6dV0/8tsHyYBgXZlJI97NpEVL582y0JSMhq7b/dfWhFwZ4DVsCmdAmPX G4mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GYU6vlIc; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si9598514plx.386.2019.04.01.11.22.54; Mon, 01 Apr 2019 11:23:09 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GYU6vlIc; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729197AbfDASUp (ORCPT + 99 others); Mon, 1 Apr 2019 14:20:45 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:40930 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728670AbfDASUo (ORCPT ); Mon, 1 Apr 2019 14:20:44 -0400 Received: by mail-wm1-f66.google.com with SMTP id z24so452213wmi.5 for ; Mon, 01 Apr 2019 11:20:43 -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=rSh5VVkG9WipijbhAmyfU9722WPS5gvQw5koNSuFkG0=; b=GYU6vlIcs5FpHcGpqJxeul7ekQGSiEZ7VXOdwyXb0idZrG2JOVbgtju4qj6U1sDp87 95cjAv3oUhfC8aw1Ae8UacYGOOoSMBLiw50ppzcLVU+Igslr0j0dPRYGzwmTnv+WXpAA BdI/kRI+4nPdg/a3A6w6f7EPcn8vgmVdhbTmdzI1WPqxd03FD+0rS7XavIWzmhphlH50 fgronN4aYU3U+9RjF5HH1jYL4Fh7iPJWiUyX+4iN/4hHHEV80TjRfSS4S3lPRk/jlWsI AFVr85takNEhloZPPgU3IdYvfi9SFEkg/Ghkbpm41twdkPzlKDzUigD9/9w59XzZjDbC raWw== 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=rSh5VVkG9WipijbhAmyfU9722WPS5gvQw5koNSuFkG0=; b=Qx+xIcViYWKMKgW42lYDGv9TpCiLvfuARrxxWFSG3o6+d3dX/hY5u/gB2GCok8aYzm nCuNVcMFNxvT/u2C+kfcZ6dB7hZm3smQJYfE6CsWzibHxVLstXrzFkAg8Wcr2nvCQrmW Qb8SViWHD9O9/c/kUd0S+0cB6NhbSqQy1C/ZzQoD/KChl1yEps112+l0x/BbeZNMOMMf 0MKEzcV2z35c/9n+6RjHjleyO8yslyJOBWdr+NFs/Lw/vouMeUUwmQ3xnxM7J9xETwCn MG5H2T7w1sISGimrBxGd9iIlOll02k4m3PW2sHeiiVpkMSsAaDWO1mbWdv8cXkCb0+BX GUvg== X-Gm-Message-State: APjAAAUFOMlLwC4MbKeFn2dJJrDM1sY7AeATk0+WNmJl/xdDnnplY1B5 f9260nQR2keUzuuB4uq0xBA= X-Received: by 2002:a1c:a8d3:: with SMTP id r202mr670490wme.106.1554142843173; Mon, 01 Apr 2019 11:20:43 -0700 (PDT) Received: from X555LD.home ([2a02:85f:510:b900:c095:2934:58ba:cfa6]) by smtp.gmail.com with ESMTPSA id t15sm16353558wmt.2.2019.04.01.11.20.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 11:20:42 -0700 (PDT) From: "Leonidas P. Papadakos" To: Maxime Coquelin , Alexandre Torgue , Heiko Stuebner Cc: Rob Herring , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, "Leonidas P. Papadakos" Subject: [PATCH 2/2] arm64: dts: rockchip: disable TX offload for mtu bigger than 1498 for some SoCs Date: Mon, 1 Apr 2019 21:20:29 +0300 Message-Id: <20190401182029.31362-1-papadakospan@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: =?UTF-8?q?Kamil=20Trzci=C5=84ski?= Some rockchip boards (like the rock64, and the renegade) exhibit an issue where tx checksuming does not work with packets larger than 1498. This is bad for network stability. The previous approach was using force_thresh_dma_mode, which does more than disable TX offload, something we do not need this patch depends on patch: stmmac: introduce flag to dynamically disable TX offload for rockchip devices Signed-off-by: Leonidas P. Papadakos --- arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts | 2 +- arch/arm64/boot/dts/rockchip/rk3328-rock64.dts | 2 +- arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts | 1 + 3 files 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 c213ad74d..16ced107d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts +++ b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts @@ -136,7 +136,7 @@ phy-mode = "rgmii"; pinctrl-names = "default"; pinctrl-0 = <&rgmiim1_pins>; - snps,force_thresh_dma_mode; + rockchip,bugged_tx_coe; snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>; snps,reset-active-low; snps,reset-delays-us = <0 10000 50000>; diff --git a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts index 7cfd5ca6c..cab2e1da6 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts +++ b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts @@ -150,7 +150,7 @@ phy-mode = "rgmii"; pinctrl-names = "default"; pinctrl-0 = <&rgmiim1_pins>; - snps,force_thresh_dma_mode; + rockchip,bugged_tx_coe; snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>; snps,reset-active-low; snps,reset-delays-us = <0 10000 50000>; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts index 791fb0ee9..a1221dca1 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts @@ -207,6 +207,7 @@ phy-mode = "rgmii"; pinctrl-names = "default"; pinctrl-0 = <&rgmii_pins>; + rockchip,bugged_tx_coe; snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; snps,reset-active-low; snps,reset-delays-us = <0 10000 50000>; -- 2.21.0