Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2916506ybx; Fri, 8 Nov 2019 11:14:04 -0800 (PST) X-Google-Smtp-Source: APXvYqy1tgGJcL1duLHvwAfUuGED7sHZLjmHyLSEhAqlG/RR1oetixStsSseSaTc/LKfTGmURqxa X-Received: by 2002:a17:906:c30a:: with SMTP id s10mr3922232ejz.9.1573240444458; Fri, 08 Nov 2019 11:14:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573240444; cv=none; d=google.com; s=arc-20160816; b=VGBcA9hL/69r6hnNIJEMbuAD526Y2A2APwqRYUOFvKSCZ//U9d6OSPsFNrZRnZrXXz 1M0/gG6MZZ7Y8TwFTbQu21mY8bb9Fv296X87748CY0JGDGEgXTE6Gwa+c4jobIV58xvY noRmgZMPK51Fzpp7Zv8Al3ho6VQ5UzO+9WFEMqMhtIWQ7UYr/GoX/JVOcfrIuWPtyQFa 7dXj4qzWmvweKPhCsZtGraVYHmqJHWKPZRxNiSiK4RAG8ZFSgs5IeckcSE18J5JWXdTH Ds8xi4hePjp7JtsgDMpxffbmmEHfJF1j4IGv7kMGvVJBOV8T99AFWkrqs1dHia1qaFX6 D8VQ== 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=mNuurQfz4YQMyrZ6/W6NcTZmBHyxdaR0NB8h+AuSSHk=; b=JodtqDX49TEQWINjTm1Vsz9/hkePSjeF5Zz5r15f3ZNqdAIrGlcOftDMfZpEsRucHp o5mGAu7ALdHRt6HAcId/fTqHAjO4wcI/wTvmUKGYukTMQVJezy6RzY+kai+R/9Hqk7eo /Ud2Cz3UM8rhdIQovA4nf8rvovyAPKt4rfOH5vBXf8DDFjK1+FD5rANHFywP5W9YZlQp a22wQR1LCaBfWhGIciJHmp2RBDlSdo5UIJYHUbPZZovu61MJCU0+K5wRsCusSQ8BPvdd +SDP8jgOsMumRHi6/Cr3vVbDoJEbJUuifiFsJIt3SOIiTEhEMr4HUQys8vkclaBHUcUu pF3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1zhIbAI4; 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 a6si5205498edl.108.2019.11.08.11.13.41; Fri, 08 Nov 2019 11:14:04 -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; dkim=pass header.i=@kernel.org header.s=default header.b=1zhIbAI4; 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 S1733220AbfKHTHz (ORCPT + 99 others); Fri, 8 Nov 2019 14:07:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:38708 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391510AbfKHTHx (ORCPT ); Fri, 8 Nov 2019 14:07:53 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 E9A7B222C4; Fri, 8 Nov 2019 19:07:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573240072; bh=gaaJ8b3ZfHjytfh+NG/YwqsMU1/VL4hgRLftpVuGPLw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1zhIbAI4300oUfAiC5wyIci7+wzI4JyRvLJvt6n83rQKdSgsZpQiD9NRTY1Vg7A5R 5SRA1KQ97W3kvrD33Kzu7cpS0Ddj/S6iH6V1Z8pD3qEyRrp3Gxhk0kb1MhFcOF4NvI 33azqJqJ2lyan7ZqgP0qVynInfxnDERO1SZv1xSg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Raju Rangoju , "David S. Miller" Subject: [PATCH 5.3 080/140] cxgb4: request the TX CIDX updates to status page Date: Fri, 8 Nov 2019 19:50:08 +0100 Message-Id: <20191108174910.158668196@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191108174900.189064908@linuxfoundation.org> References: <20191108174900.189064908@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Raju Rangoju [ Upstream commit 7c3bebc3d8688b84795c11848c314a2fbfe045e0 ] For adapters which support the SGE Doorbell Queue Timer facility, we configured the Ethernet TX Queues to send CIDX Updates to the Associated Ethernet RX Response Queue with CPL_SGE_EGR_UPDATE messages to allow us to respond more quickly to the CIDX Updates. But, this was adding load to PCIe Link RX bandwidth and, potentially, resulting in higher CPU Interrupt load. This patch requests the HW to deliver the CIDX updates to the TX queue status page rather than generating an ingress queue message (as an interrupt). With this patch, the load on RX bandwidth is reduced and a substantial improvement in BW is noticed at lower IO sizes. Fixes: d429005fdf2c ("cxgb4/cxgb4vf: Add support for SGE doorbell queue timer") Signed-off-by: Raju Rangoju Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/chelsio/cxgb4/sge.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) --- a/drivers/net/ethernet/chelsio/cxgb4/sge.c +++ b/drivers/net/ethernet/chelsio/cxgb4/sge.c @@ -3791,15 +3791,11 @@ int t4_sge_alloc_eth_txq(struct adapter * write the CIDX Updates into the Status Page at the end of the * TX Queue. */ - c.autoequiqe_to_viid = htonl((dbqt - ? FW_EQ_ETH_CMD_AUTOEQUIQE_F - : FW_EQ_ETH_CMD_AUTOEQUEQE_F) | + c.autoequiqe_to_viid = htonl(FW_EQ_ETH_CMD_AUTOEQUEQE_F | FW_EQ_ETH_CMD_VIID_V(pi->viid)); c.fetchszm_to_iqid = - htonl(FW_EQ_ETH_CMD_HOSTFCMODE_V(dbqt - ? HOSTFCMODE_INGRESS_QUEUE_X - : HOSTFCMODE_STATUS_PAGE_X) | + htonl(FW_EQ_ETH_CMD_HOSTFCMODE_V(HOSTFCMODE_STATUS_PAGE_X) | FW_EQ_ETH_CMD_PCIECHN_V(pi->tx_chan) | FW_EQ_ETH_CMD_FETCHRO_F | FW_EQ_ETH_CMD_IQID_V(iqid));