Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp268825img; Mon, 18 Mar 2019 02:42:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwiQOPjJH9lexL+9/wfnW9EaUGLkJpsS7wQkqaKpdMbrH8DTwwwvMSdkDdxPQhxcTUT28YW X-Received: by 2002:a62:168a:: with SMTP id 132mr18233961pfw.155.1552902160970; Mon, 18 Mar 2019 02:42:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552902160; cv=none; d=google.com; s=arc-20160816; b=Fd82plvHdo2Lj/TaHYA37nnMVDosGv5sii7Zi3TVTk7axXY0f8lxcQmPH2dhJJGhlJ Yk6CY4pqDv34VSZUuLXPB09wLI+ivNASgJPgCKwlfoZ5TGzFI0XLl2Ge7PHWHrNYm/Rk CCara0pPaaD4pH1hXRoeeexASL8MFzfBzaaIarWJM/8H+OYftExC69Vwcpulv3OzpwXg pjJ4/+VrHB7LSZEWy6jIrROh17A3kOV6iko0sGVdVFWM8dL9lS+/bACwTSGOoeumkZCz riT0zVdVEkgvfvrPxJ3UB5uAa3D3oTcAnTOlfl/IwMp5MVZix3ZxJVBlb76XcKverTgM Auqg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tfvZeBMSEgZkx+dPiCTVfcTwBv7NfCYgcpEsilhSTDY=; b=cT6bttHK2H51l9pIGX0dZBT8jEPaC3zhAS22gUsMBcpfzHpGo7W/jYl1LREhnnnxTy hA4fqUlDxRLg6m3CKM8YSNLRhkPAjVcuYCybHGYYriqSkFf+Phx6Zdi2BGu4nII1mgrS qEN0LtPRzPcnbDBTWlkJZlz4LweAA0r3U18fUuma9nw8H/a8vfikLtDoId5A/ib6HdTr Iy4nIie4OOj6f3aYvRjKI4IaY1wXf0qclN04M29SJW7HIFLbYQJ6M01uKxVHzeflGDkd uBhcAVijCt6d1lwpT78DSSXclYsYsKNW4q0jNJlOcOfJEnV5vS5mfhSCHHBE62HjgUYB uaCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nXT989ZH; 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 c2si8680529plo.272.2019.03.18.02.42.26; Mon, 18 Mar 2019 02:42:40 -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=@kernel.org header.s=default header.b=nXT989ZH; 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 S1729024AbfCRJe3 (ORCPT + 99 others); Mon, 18 Mar 2019 05:34:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:42868 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728682AbfCRJe1 (ORCPT ); Mon, 18 Mar 2019 05:34:27 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CA95321734; Mon, 18 Mar 2019 09:34:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552901666; bh=YT7A7BZguh/YyoTLGnlCyDKzsqkqj6bNczYoi5krGXA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nXT989ZHnegzdz6IOP8bEqCqUc92zQBqTGMdvx9brunioe1Gb/wk133qW+qrEG3Lk HEQfd1uY3dFFZNmYzFRpR7E9PBrW1Adt/mgIRH8hx+zVOtMKMn8lSyGJDxIGi7pLse qK5K95brqCyWaXpupvIsSOju/KAFBVJgv2mRFHC4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masaru Nagai , Kazuya Mizuguchi , Simon Horman , "David S. Miller" Subject: [PATCH 4.14 12/34] ravb: Decrease TxFIFO depth of Q3 and Q2 to one Date: Mon, 18 Mar 2019 10:25:36 +0100 Message-Id: <20190318084146.360353506@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190318084144.657740413@linuxfoundation.org> References: <20190318084144.657740413@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Masaru Nagai [ Upstream commit ae9819e339b451da7a86ab6fe38ecfcb6814e78a ] Hardware has the CBS (Credit Based Shaper) which affects only Q3 and Q2. When updating the CBS settings, even if the driver does so after waiting for Tx DMA finished, there is a possibility that frame data still remains in TxFIFO. To avoid this, decrease TxFIFO depth of Q3 and Q2 to one. This patch has been exercised this using netperf TCP_MAERTS, TCP_STREAM and UDP_STREAM tests run on an Ebisu board. No performance change was detected, outside of noise in the tests, both in terms of throughput and CPU utilisation. Fixes: c156633f1353 ("Renesas Ethernet AVB driver proper") Signed-off-by: Masaru Nagai Signed-off-by: Kazuya Mizuguchi [simon: updated changelog] Signed-off-by: Simon Horman Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/renesas/ravb_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/renesas/ravb_main.c +++ b/drivers/net/ethernet/renesas/ravb_main.c @@ -458,7 +458,7 @@ static int ravb_dmac_init(struct net_dev RCR_EFFS | RCR_ENCF | RCR_ETS0 | RCR_ESF | 0x18000000, RCR); /* Set FIFO size */ - ravb_write(ndev, TGC_TQP_AVBMODE1 | 0x00222200, TGC); + ravb_write(ndev, TGC_TQP_AVBMODE1 | 0x00112200, TGC); /* Timestamp enable */ ravb_write(ndev, TCCR_TFEN, TCCR);