From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34A12C43381 for ; Mon, 18 Mar 2019 09:26:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 02BB9214D8 for ; Mon, 18 Mar 2019 09:26:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552901199; bh=cpPqq37kpddxf94Hiu0xyO+FvSwSawstROJv30g/r8g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=LInMZh8j6wve7XE0BiqDJpdZyL9wwqLFoLIvYKASQ8rIZyUKA8hai04kinKm7u8nv W6p/c/YqhwlwZlvWciLAo4v8iKsRaqNvZ9neRHp2bAriYRY2vWom6KTTrBKej6qFd2 EUjIBnAPUY8t5H9c+2HVIECiqgLq/A6/Zv80hcBA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727552AbfCRJ0h (ORCPT ); Mon, 18 Mar 2019 05:26:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:59534 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727514AbfCRJ0e (ORCPT ); Mon, 18 Mar 2019 05:26:34 -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 7F05F2075C; Mon, 18 Mar 2019 09:26:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552901193; bh=cpPqq37kpddxf94Hiu0xyO+FvSwSawstROJv30g/r8g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wF4uiI1xc2B17JdcIPjnWNFrdhkHiVW5S8SgLlg0lOmpmMEzHDpkPCvta37ZxkP4a hzBWaH9N6zZDB+GFR8eGApEmW/Hfw7kmukHeV4+ekpl3o46GfoQMx60QWt5ETU3GEd x7jPk+5AfHQfJwj/QJbamrt6FIvloINHSza4FH6U= 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 5.0 15/43] ravb: Decrease TxFIFO depth of Q3 and Q2 to one Date: Mon, 18 Mar 2019 10:24:07 +0100 Message-Id: <20190318083716.322021714@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190318083715.877441740@linuxfoundation.org> References: <20190318083715.877441740@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 5.0-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);