Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp798620pxb; Wed, 3 Feb 2021 19:15:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJeq62gRylBPimrYbG+KhfpbHJb4Fd/H1QQKY7opxC9OBh8OZlngr+cjaA1LzSr6CByB9X X-Received: by 2002:a17:906:9249:: with SMTP id c9mr6156200ejx.416.1612408552066; Wed, 03 Feb 2021 19:15:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612408552; cv=none; d=google.com; s=arc-20160816; b=F0UiKNxhJrWnyam5cOfWiAPDrsPtF7eqaNbYgAwcYxvstnK6S7VIW4vfOlJichYTLi S7CsFdAvR4ThTfayd/ig7ob9E0PeN1UY8lBhgnCV9+LOG3iNjHodP8qLcO70RTz/f72P RCk6YVyiH1WvTBM40/W1pgkuBuSP+5gwdLC6cg0Xgx+sVFYdGcNHD1EI2yIemhYLnvPC 8QuewWoMFTE4uEgvjDUF1LiG7B2/JtMZzAA13kHZ/0ozMKUgINHDVWMYGZsSROxoV4j1 JjnSGe7vDyKGhsmxoHqWBn+cMJJuCs4CrDhXZ/fmUB1Uw2UEWhEbKX2iGkP/yPla0riX YxbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=X5SP/RYZJKYSVivEWNfD0sIb8eTHHQjIvVqVxhsjpNg=; b=Bw8KRXL6AkXqx3NNSPkKUZVVXA8Czu2oz6Hon19nMDRVz7cR54kQ/uLKoZwZp2C64P jj9U1pV1yCVUokJrPkdGmM89eITmli5hXPPY4IclNyH+F8eyORuHeuoZ3vAKLqtVOEJq ItP9jJkzyl6ND2BTZemPsDjx8OWAiAS+6WxVVyVjPvBNKvxVIl9K1BD3B71v749OeW/M L56sYnMpRrp8guYUOL7cM/BYnm+aSN6aAGR4mwdg/XmN7vdEgfEIGW/y0yYG4KMaKvm4 pFxj3vlMzdEX3uZ9zxZ9/UCttA0FjZ+56k3gscEHVPb4+ZqBejNUZalEEGUCSXCDz9Ng pa5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@eero.com header.s=google header.b=lxDReiF9; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=eero.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds16si2492421ejc.101.2021.02.03.19.15.26; Wed, 03 Feb 2021 19:15:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@eero.com header.s=google header.b=lxDReiF9; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=eero.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231475AbhBDDJh (ORCPT + 99 others); Wed, 3 Feb 2021 22:09:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233533AbhBDDJc (ORCPT ); Wed, 3 Feb 2021 22:09:32 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A5D7C061573 for ; Wed, 3 Feb 2021 19:08:52 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id u15so1000455plf.1 for ; Wed, 03 Feb 2021 19:08:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eero.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=X5SP/RYZJKYSVivEWNfD0sIb8eTHHQjIvVqVxhsjpNg=; b=lxDReiF9ZKqvpQzv+XoaPGetd5FSdV1f4kSyHLXdfcb+/mN08Uf3L+QmPrKihGKe5H CoZtii394Zbd7oIE1EmEh6b97FIppxZJX8B25be6AZGHP0HfRjL5O3X3m3ND69iwC21o nt65bLUp3ciIjOQs2033B+hgGxBO57jDNVqJU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=X5SP/RYZJKYSVivEWNfD0sIb8eTHHQjIvVqVxhsjpNg=; b=FAH9Ui7odj8Oj0IrD/RgcDvynGZXBiEK/6gMtvsE2WPEU2qYN8zhC2hh++sWq4UFVG ZsktOj7fLee89cKZ2h4A7N1/OFj2rvit3JQudzzWYyStbACoN1wNkv2iznW06ZDFypxV zGoqvqva8WCjoeyaCSDj0YcmH0Pq04bQLpxySR9F6UUxDhCSwkfJpIsmo0QClJAqPcBh Q2pu/bZCMdXJEn6W/f2BJRWYo0CfQ2wZzREx9eBgS6/RGeTpgiSCCoV4NjDcdMImw5ql zIZ+gkhlFt9nZENVJiQRck0ViUWilAP1NjIotD7p6c0OX3wl9oOkIiUhYIPmeFX6cpcB AMUw== X-Gm-Message-State: AOAM533vlxOgjJ9UmDDpzd8v7gJxc01zrtZY2eWmEb8qx72lPISSG2TA oo+qYMta8TqyRDR1s14+UPqrmjRthblaSOPn X-Received: by 2002:a17:90a:b703:: with SMTP id l3mr5966492pjr.60.1612408131594; Wed, 03 Feb 2021 19:08:51 -0800 (PST) Received: from [192.168.4.200] (107-196-182-50.lightspeed.sntcca.sbcglobal.net. [107.196.182.50]) by smtp.gmail.com with ESMTPSA id v126sm1822305pfv.163.2021.02.03.19.08.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Feb 2021 19:08:51 -0800 (PST) Subject: Re: [PATCH] ath11k: Update tx descriptor search index properly To: Karthikeyan periyasamy Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org References: <1608305041-21946-1-git-send-email-periyasa@codeaurora.org> <959ea12a-e35b-5867-c55e-7f62e2956b09@eero.com> <08ef5e10-de7a-fe13-d23a-d1afa1dbd0e5@eero.com> From: Peter Oh Message-ID: Date: Wed, 3 Feb 2021 19:08:49 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2/3/21 5:08 PM, Karthikeyan periyasamy wrote: > On 2021-02-04 00:59, Peter Oh wrote: >> On 1/26/21 6:46 PM, Karthikeyan periyasamy wrote: >>> On 2020-12-19 00:53, Peter Oh wrote: >>>> On 12/18/20 7:24 AM, Karthikeyan Periyasamy wrote: >>>>> Tx descriptor search index field should be updated with hw peer id >>>>> and not by AST Hash. Incorrect search index causes throughput >>>>> degradation >>>>> in all the platforms. so updated the search index field with hw >>>>> peer id, >>>>> which is a common change applicable for all the platforms. >>>>> >>>>> Tested-on: IPQ8074 hw2.0 AHB >>>>> WLAN.HK.2.4.0.1-01492-QCAHKSWPL_SILICONZ-1 >>>>> >>>>> diff --git a/drivers/net/wireless/ath/ath11k/peer.c >>>>> b/drivers/net/wireless/ath/ath11k/peer.c >>>>> index b69e7eb..f49abefa 100644 >>>>> --- a/drivers/net/wireless/ath/ath11k/peer.c >>>>> +++ b/drivers/net/wireless/ath/ath11k/peer.c >>>>> >>>>> @@ -309,7 +310,11 @@ int ath11k_peer_create(struct ath11k *ar, >>>>> struct ath11k_vif *arvif, >>>>>         peer->pdev_idx = ar->pdev_idx; >>>>>       peer->sta = sta; >>>>> -    arvif->ast_hash = peer->ast_hash; >>>>> + >>>>> +    if (arvif->vif->type == NL80211_IFTYPE_STATION) { >>>>> +        arvif->ast_hash = peer->ast_hash; >>>>> +        arvif->ast_idx = peer->hw_peer_id; >>>>> +    } >>>> >>>> How about non STATION type? >>>> >>> >>> no need of configuring the ast_idx, ast_hash field for non station >>> type. Its recommended by HW/FW team. >>> >> Can you add this comment in commit message? >> > > sure > >> Also could you include the answer to "what conditions you observed the >> throughput degradation?" in commit message too? > > In all the scenario will see degradation. Its a general improvement. > It sounds good and it will better if you share the number before and after the patch. Thanks, Peter