Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5205108ybl; Tue, 27 Aug 2019 00:44:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjQurbB9jetgzY2zhKGnytNvcDGqzwimZX5nfP3SQiBj+9QuhJaK8xna5ggYPMPfVMyZln X-Received: by 2002:a63:c304:: with SMTP id c4mr19810648pgd.126.1566891860099; Tue, 27 Aug 2019 00:44:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566891860; cv=none; d=google.com; s=arc-20160816; b=WWVrsRKH9SRs009nPENfrZ4S+gdE1oexcP3CMyhgZd6qxe3CVEB9jxoIAEai/cz68n Sl+/qWZE7w/3LZ+RNdqMGby19zAyWd2gyCikz/rPtO8SQDzM4n91gl3vW9eOHMJiDswz YPa7PYpexRyXEkQSc3y9D2ZEaL5vg0/hWxJcohEWQRQpFSWEwjiJgFO4mMBEXBXzJvQ4 emmlYWMfioCAe6EAwxc1MV13U2Y7V+Sc9vGRTlEqfYvSqITZ11YN0aJcBa5ckD7bFITY UHf90eSnlKm+x7nkO8xmKqA4pr6xSQMtteGEA5dEhiA4ZNSDMBtyNkptqP5fD81bDDEv S0lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=GLjerTI/8s78jWdVImYHb6vDr5CKAOLKDouXj6XF4wg=; b=iaa4NA1k1etaOiDkw97EVN4X/Kag8r4bvRLHsegVcro3UrSaeP7/zRW6nKGe24YniV U0zV9cIRohlcs5HhkUsEmx0v9GC/u8cdsFqZjxABsix1nZSTW8CRVNMjVHE7oFj+Ykr2 bVRebEizBXY3cFXlSF//33dohwqGlxbUsM2DgsD+eFXRA0bC3kwtQIAGOmSobEIkpTiU YRl0UkQz9nnEa1V34CUNf2aX0G6jPVg6hfskXR/aeb4bP884kOERFRmDAAXF/XyLNW5t 3y4WWAKm0aRSxhNAwVPZp/tyJgVbyuwyhOMdVfXhmgmYRBsHeSQAvB4Y7/CllLQ2s92K 6CPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jGNOD59h; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v142si13031898pfc.67.2019.08.27.00.44.05; Tue, 27 Aug 2019 00:44:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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=@chromium.org header.s=google header.b=jGNOD59h; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726833AbfH0HnC (ORCPT + 99 others); Tue, 27 Aug 2019 03:43:02 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:36126 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725825AbfH0HnC (ORCPT ); Tue, 27 Aug 2019 03:43:02 -0400 Received: by mail-qt1-f196.google.com with SMTP id z4so20465506qtc.3 for ; Tue, 27 Aug 2019 00:43:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GLjerTI/8s78jWdVImYHb6vDr5CKAOLKDouXj6XF4wg=; b=jGNOD59hxbMEKMTEhqkr8YlB9MJm3vuCz4IefnMjfcq2rdLduQ1pV51UpLa5Y/W0k5 GBbwqcfscgSI9eI2Nnryv2mChGpXBCi74oZd7iz+QcLgDUHl/0pWC8qNu2QoVxEaUOLO A3al0Y8zUJwpEbIMJMNm/TVRlSssgaa7nj83Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GLjerTI/8s78jWdVImYHb6vDr5CKAOLKDouXj6XF4wg=; b=HPFOPzkxvCyoc8vorjjDcljFSZKdTHjrTgT4NYpXj3zm3uHPEC0N6rr2YIVN/NNjMo CetcBaN3UwG8gCYm1zIciRuX16o45FXo0ds8vxmF7DawsSP/Cdq3/1mdDBVSQFsviyLA 38DrcCnNP8qb6Sk0BCeb6Q8YfCJUmhg1oZnLSpCFhNEvjwLtPv5VMHzimS4D99jXVMxE fbb81/gOVStqfIiAOZlhHE20fkbUXZh3BRDmOt5gEeFu31Kl5Zzv/Xc+htb6HFCtlkTK Qsz2D5yyJqGr577+aolMjHOgGkv7WFLscA51aaW/CSaSw6RHk3/bDMhyDGUPr4px11Ym qxPA== X-Gm-Message-State: APjAAAXdOLo8g6OUPBdzYQVEX9maMANlDjDxL/SAMkcNT/HSqLhQUNIe 9aZakadlqNApdT28rXH3ayz5Chmu8uiAA+NgyXKCXw== X-Received: by 2002:a0c:d981:: with SMTP id y1mr7781133qvj.104.1566891781421; Tue, 27 Aug 2019 00:43:01 -0700 (PDT) MIME-Version: 1.0 References: <1566302108-18219-1-git-send-email-wgong@codeaurora.org> <1566302108-18219-3-git-send-email-wgong@codeaurora.org> In-Reply-To: <1566302108-18219-3-git-send-email-wgong@codeaurora.org> From: Nicolas Boichat Date: Tue, 27 Aug 2019 15:42:50 +0800 Message-ID: Subject: Re: [PATCH 2/7] ath10k: change max RX bundle size from 8 to 32 for sdio To: Wen Gong Cc: ath10k@lists.infradead.org, "open list:NETWORKING DRIVERS (WIRELESS)" Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, Aug 20, 2019 at 7:55 PM Wen Gong wrote: > > The max bundle size support by firmware is 32, change it from 8 to 32 > will help performance. This results in significant performance > improvement on RX path. > > Tested with QCA6174 SDIO with firmware > WLAN.RMH.4.4.1-00007-QCARMSWP-1. > > Signed-off-by: Wen Gong > --- > drivers/net/wireless/ath/ath10k/htc.h | 2 +- > drivers/net/wireless/ath/ath10k/sdio.c | 5 +++-- > drivers/net/wireless/ath/ath10k/sdio.h | 4 ++-- > 3 files changed, 6 insertions(+), 5 deletions(-) > > diff --git a/drivers/net/wireless/ath/ath10k/htc.h b/drivers/net/wireless/ath/ath10k/htc.h > index f55d3ca..8c79b9e 100644 > --- a/drivers/net/wireless/ath/ath10k/htc.h > +++ b/drivers/net/wireless/ath/ath10k/htc.h > @@ -39,7 +39,7 @@ > * 4-byte aligned. > */ > > -#define HTC_HOST_MAX_MSG_PER_RX_BUNDLE 8 > +#define HTC_HOST_MAX_MSG_PER_RX_BUNDLE 32 > > enum ath10k_htc_tx_flags { > ATH10K_HTC_FLAG_NEED_CREDIT_UPDATE = 0x01, > diff --git a/drivers/net/wireless/ath/ath10k/sdio.c b/drivers/net/wireless/ath/ath10k/sdio.c > index d9395f0..baa6051 100644 > --- a/drivers/net/wireless/ath/ath10k/sdio.c > +++ b/drivers/net/wireless/ath/ath10k/sdio.c > @@ -24,8 +24,8 @@ > #include "trace.h" > #include "sdio.h" > > -#define ATH10K_SDIO_DMA_BUF_SIZE (32 * 1024) > -#define ATH10K_SDIO_VSG_BUF_SIZE (32 * 1024) > +#define ATH10K_SDIO_DMA_BUF_SIZE (64 * 1024) > +#define ATH10K_SDIO_VSG_BUF_SIZE (64 * 1024) > > /* inlined helper functions */ > > @@ -501,6 +501,7 @@ static int ath10k_sdio_mbox_alloc_bundle(struct ath10k *ar, > int ret, i; > > *bndl_cnt = FIELD_GET(ATH10K_HTC_FLAG_BUNDLE_MASK, htc_hdr->flags); > + *bndl_cnt += (FIELD_GET(GENMASK(3, 2), htc_hdr->flags) << 4); GENMASK(3, 2): Please define this macro somewhere. Also, I'd merge the 2 lines in 1. > > if (*bndl_cnt > HTC_HOST_MAX_MSG_PER_RX_BUNDLE) { > ath10k_warn(ar, > diff --git a/drivers/net/wireless/ath/ath10k/sdio.h b/drivers/net/wireless/ath/ath10k/sdio.h > index 4896eca..3ca76c7 100644 > --- a/drivers/net/wireless/ath/ath10k/sdio.h > +++ b/drivers/net/wireless/ath/ath10k/sdio.h > @@ -89,10 +89,10 @@ > * to the maximum value (HTC_HOST_MAX_MSG_PER_RX_BUNDLE). > * > * in this case the driver must allocate > - * (HTC_HOST_MAX_MSG_PER_RX_BUNDLE * HTC_HOST_MAX_MSG_PER_RX_BUNDLE) skb's. > + * (HTC_HOST_MAX_MSG_PER_RX_BUNDLE * 2) skb's. > */ > #define ATH10K_SDIO_MAX_RX_MSGS \ > - (HTC_HOST_MAX_MSG_PER_RX_BUNDLE * HTC_HOST_MAX_MSG_PER_RX_BUNDLE) > + (HTC_HOST_MAX_MSG_PER_RX_BUNDLE * 2) > > #define ATH10K_FIFO_TIMEOUT_AND_CHIP_CONTROL 0x00000868u > #define ATH10K_FIFO_TIMEOUT_AND_CHIP_CONTROL_DISABLE_SLEEP_OFF 0xFFFEFFFF > -- > 1.9.1 >