Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp800293pxb; Wed, 3 Feb 2021 19:20:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJznDYHQCog0tcQHsyMd2JTYUxYOeuI+3G3uICRFhQbe8mD5NA9AqbO12d7VhJRr4Qc4/evM X-Received: by 2002:a17:907:3da0:: with SMTP id he32mr6019325ejc.265.1612408803689; Wed, 03 Feb 2021 19:20:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612408803; cv=none; d=google.com; s=arc-20160816; b=A9isUp/JT1CFZU2ijhe08tuJ2W1lJYNv5C+YqZInDB+dtWMThUIy2wIJJ4+R/P3wQF XrltAbvOJQi5y5w8Fc3RkCPTPOZ3++Vylx/jvOEWVoAsJfWzeBu98ZqYDvVCFuy27rFH 7LH1OeoVLoXbBfM50g0TQD7tQkBw/d8o+zyxM+dTbL+SN0tnP8LY4NFgn0yv92A/kvnl K5mnmRzyoZ6yLAJjfSC/2w/yRwRwRnCZwyuQDd9NCQXP7O1GBzAA1fyjBjhGrP8K2vm1 gWh9mWChy9ZisuvIHeOc57gJwVf8rlDez2dgQVN/GMNY3WU+CGZ3z1aHTNZAMKEKiN/x LCQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=VFXxTOfbCxVF5SughVd88GETR8yjPQq5C6S35tQhjPI=; b=ZWWie+RyyKIbTc/ZMe+B9Zw8e005OZhNzU5gagtxStAH+kDjTtJJaJZrjFrD2gor2K juD5S8NPB+tsPUlsGzXmXIvAQ/IP7sigj7hDuSbHgcVuuJLA1pip9zlegh9t2bNBFPCd O2on8lvp+EVbjY6JAMw38UjHxRwCkcgH9q2DS/F42DJyjl+ifWyzWHZxI87ZbdxHgyZP TPO3KC+fxjQ7ai4LWon+zUA4iiG6cRSHrfba3Qxn020XBa68FDNEertZ3V7xOHj4RTNi 6z0DWqdy917XYDq8c/l9s1UmulUgc+FiHeDmPnp9+HTBqsAadrrjz+ZQdPiB9K7/LUYK HoVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=tR4GjnpQ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce20si2732989edb.138.2021.02.03.19.19.39; Wed, 03 Feb 2021 19:20:03 -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=@mg.codeaurora.org header.s=smtp header.b=tR4GjnpQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233627AbhBDDS0 (ORCPT + 99 others); Wed, 3 Feb 2021 22:18:26 -0500 Received: from so15.mailgun.net ([198.61.254.15]:10428 "EHLO so15.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233533AbhBDDSZ (ORCPT ); Wed, 3 Feb 2021 22:18:25 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1612408679; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=VFXxTOfbCxVF5SughVd88GETR8yjPQq5C6S35tQhjPI=; b=tR4GjnpQJSpJDn89su5+MiFMwm/5xOi6rev1SB6RZCypyOPMIqOq9U6YNI3s9+ZnQZ0fjHwe xejw7BQErRAnDFtsGsR98JCDVGp298WpkK792z2GgcZFEhMPlXbIlJx5C5Gd9tL5pQ8ZIv+I yvHpFq2C7LWKN2BOEgn6CG3FWxE= X-Mailgun-Sending-Ip: 198.61.254.15 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n07.prod.us-east-1.postgun.com with SMTP id 601b674a7e4e6c9dfeb70637 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 04 Feb 2021 03:17:30 GMT Sender: periyasa=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 1B947C433CA; Thu, 4 Feb 2021 03:17:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: periyasa) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8D87BC433C6; Thu, 4 Feb 2021 03:17:28 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 04 Feb 2021 08:47:28 +0530 From: Karthikeyan periyasamy To: Peter Oh Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org Subject: Re: [PATCH] ath11k: Update tx descriptor search index properly In-Reply-To: References: <1608305041-21946-1-git-send-email-periyasa@codeaurora.org> <959ea12a-e35b-5867-c55e-7f62e2956b09@eero.com> <08ef5e10-de7a-fe13-d23a-d1afa1dbd0e5@eero.com> Message-ID: <7e3bae2db30d90963f96bb9be82951f0@codeaurora.org> X-Sender: periyasa@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2021-02-04 08:38, Peter Oh wrote: > 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. I have seen 10% increase in WDS scenario. Thanks, Karthikeyan P