Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2053349rwe; Fri, 2 Sep 2022 07:53:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR5rDLAwh59VmKbdDjVqKa2sbmszs6UwbSgpksaLjMR03/w0hKQGjrsZWd/HVbyO7OJxgucd X-Received: by 2002:a17:90a:e655:b0:1fe:4ec3:aba with SMTP id ep21-20020a17090ae65500b001fe4ec30abamr5137684pjb.182.1662130418118; Fri, 02 Sep 2022 07:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662130418; cv=none; d=google.com; s=arc-20160816; b=oVOqsFT7BM/++wjV4AH7yArDLNh52Se6Q55YZ+2OQQlS2nbZeWnbrTw/q85MXr7lnA L/gMY19mJyT8U0qI3byAAt8lqkJ+R9+iC9uKwGSGiu68RKmbJDIq+EIu28KJndLcxyj+ 5FO2LcRb1HgHYbn4Kb/mqOhmXAh5gSe9bXHrzLr3belifpAwIJmL+nBtZ9zhy/PYVOms HAWqi2MdqQ5wTs00h3lwFhs/jSaVvfXx1Lhc4st9hu3lbr5m0f/zJ4bfr4C9jsKR8obU AB3JvmjO9RTkimxvxH9rnZsq1Xm3tS26w6bFrrWq2nVnkjhuzJ3FRWTa29z0qDowLRrt 5/CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=5wlCvy1+LbEQ4mpWHex2Zcv70Ljwc9TPy0nm+LUYq8o=; b=qRtHvISztU7u/68d5DIOFLBH7XNRyUTYo9U9qxiqv4jJrU6Y1yJP0GrlCeHX++W69p TRWtWsORakODKlxk4S/NAqAOCAIWp0TxMuJYh+p1vvQtWcrrl2V/7Fm4wdw715LksdVM Qh8oQNXM/1FUzT6l590AXyH779qTYgK1FCF5XwPCBQPWHabMKYqYVOKhxMPKJ7Lz3PwK 031oVRfYI+ne43PJOlwbNstEc43GdkDp0KnEz1JgayPNA+Bljuh8Tiw1JCZ3BfCdQ8Lu 1BUf6Gyi+cqOpUT8H1g4zi96C07IpoSd3eul50/n0Z9tUNDsuII7xzCVkq4rLGPZ0B0J KXSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=N3O7SjK6; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o187-20020a625ac4000000b0053840181203si2113457pfb.117.2022.09.02.07.53.26; Fri, 02 Sep 2022 07:53:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=N3O7SjK6; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237071AbiIBOt6 (ORCPT + 64 others); Fri, 2 Sep 2022 10:49:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237091AbiIBOtZ (ORCPT ); Fri, 2 Sep 2022 10:49:25 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75B901264A3 for ; Fri, 2 Sep 2022 07:11:07 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 282AWBiG006270; Fri, 2 Sep 2022 13:42:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=5wlCvy1+LbEQ4mpWHex2Zcv70Ljwc9TPy0nm+LUYq8o=; b=N3O7SjK68BVydy5e5bBPtYU9EhufH2g5e0tzFQmlybkEqAEvPOznWPArk03sAG9+JEMy 98MVTG8iD8tW5XbVHAAPl2efr1cC3H0rDs60yjL9dpFuOk9hmKJ18r7izqDp6OKO1N6t loCWG5CWhLJvgs/OCzqo/rcny8HCQEiVmW4SfpWeLLJlf/6BqGRkZfat5+8AC2FUEiyj 648t5ZHHXkp79hx8rvg8L/vxnMK90ANQ6/3BfX7EWOSiS9HzgZt6vNNAmfT0QOronHJs P8h3t0+UnVnXKO+00B/ngxydEJKDWbGTVNDqdlpAkGYZefdUcl8lDEPuAuVXxSuTNBOG LA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jba051jg4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 02 Sep 2022 13:42:28 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 282DgRam032282 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 2 Sep 2022 13:42:27 GMT Received: from [10.216.25.75] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 2 Sep 2022 06:42:25 -0700 Message-ID: <7615c815-ca2e-c6f1-b627-6e10f1272442@quicinc.com> Date: Fri, 2 Sep 2022 19:12:22 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH 1/3] ath11k: Enable threaded NAPI on WCN6750 Content-Language: en-US To: Robert Marko CC: Kalle Valo , , References: <20220720135113.15755-1-quic_mpubbise@quicinc.com> <20220720135113.15755-2-quic_mpubbise@quicinc.com> <87czceaqng.fsf@kernel.org> From: Manikanta Pubbisetty In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 8mEWd70-uCofme-ktTEkEZgpIfW0LDEJ X-Proofpoint-ORIG-GUID: 8mEWd70-uCofme-ktTEkEZgpIfW0LDEJ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-09-02_02,2022-08-31_03,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 mlxscore=0 malwarescore=0 impostorscore=0 adultscore=0 phishscore=0 suspectscore=0 clxscore=1011 spamscore=0 mlxlogscore=999 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2209020065 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 9/2/2022 6:50 PM, Robert Marko wrote: > On Fri, Sep 2, 2022 at 3:18 PM Manikanta Pubbisetty > wrote: >> >> On 9/2/2022 6:18 PM, Kalle Valo wrote: >>> Manikanta Pubbisetty writes: >>> >>>> Enable threaded NAPI on WCN6750. Unlike traditional NAPI poll which >>>> runs in softirq context and on the core which scheduled the NAPI, >>>> threaded NAPI makes use of kernel threads which are under direct >>>> control of the scheduler and helps in balancing the NAPI processing >>>> load across multiple CPUs thereby improving throughput. >>>> >>>> In the case of WCN6750, enabling threaded NAPI has improved >>>> 160 MHz RX throughput by nearly 400 Mbps. This should give similar >>>> gains for other ath11k devices as well, therefore enable threaded >>>> NAPI on all other devices. >>>> >>>> Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00887-QCAMSLSWPLZ-1 >>>> >>>> Signed-off-by: Manikanta Pubbisetty >>>> --- >>>> drivers/net/wireless/ath/ath11k/ahb.c | 1 + >>>> drivers/net/wireless/ath/ath11k/pcic.c | 1 + >>>> 2 files changed, 2 insertions(+) >>>> >>>> diff --git a/drivers/net/wireless/ath/ath11k/ahb.c b/drivers/net/wireless/ath/ath11k/ahb.c >>>> index d7d33d5cdfc5..e44e2f29a88f 100644 >>>> --- a/drivers/net/wireless/ath/ath11k/ahb.c >>>> +++ b/drivers/net/wireless/ath/ath11k/ahb.c >>>> @@ -314,6 +314,7 @@ static void ath11k_ahb_ext_irq_enable(struct ath11k_base *ab) >>>> struct ath11k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i]; >>>> >>>> if (!irq_grp->napi_enabled) { >>>> + dev_set_threaded(&irq_grp->napi_ndev, true); >>>> napi_enable(&irq_grp->napi); >>>> irq_grp->napi_enabled = true; >>>> } >>>> diff --git a/drivers/net/wireless/ath/ath11k/pcic.c b/drivers/net/wireless/ath/ath11k/pcic.c >>>> index cf12b98c480d..c703db19de51 100644 >>>> --- a/drivers/net/wireless/ath/ath11k/pcic.c >>>> +++ b/drivers/net/wireless/ath/ath11k/pcic.c >>>> @@ -440,6 +440,7 @@ void ath11k_pcic_ext_irq_enable(struct ath11k_base *ab) >>>> struct ath11k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i]; >>>> >>>> if (!irq_grp->napi_enabled) { >>>> + dev_set_threaded(&irq_grp->napi_ndev, true); >>>> napi_enable(&irq_grp->napi); >>>> irq_grp->napi_enabled = true; >>>> } >>> >>> The commit log claims that this enabled _only_ on WCN6750 but aren't we >>> enabling it on all ath11k hardware, or am I missing something? I admit I >>> didn't check this very carefully. >>> >>> (reads the commit log one more time) >>> >>> Ah, in the last sentence you mention that it's enabled on all hardware. >>> That's quite easy to miss and the commit log is quite misleading, please >>> emphasise already in the title and the first sentence that this is for >>> all hardware. >> >> My Bad, yes you right. The patch was made initially only for WCN6750 and >> was enabled later for all devices. >> >>> >>> Also more testing would be nice. Enabling something like this with >>> testing only on one hardware family (WCN7850) can be risky. I always get >>> warm fuzzy feelings if a patch is tested with all three hardware >>> families we currently support: >>> >>> * IPQ8074 etc >>> * QCA6390 etc >>> * WCN7850 >>> >> >> WCN7850 should be an ath12k device If I'm correct. >> >> Regardless of the chip family, even I feel that the tput changes like >> these should be tested on all the chipsets. Availability of the hardware >> and time are something which are stopping me in testing the changes on >> all supported targets. >> >> As I said, I had made the changes only to WCN6750 initially (using a >> hw_param). Can we take that approach for now and enable this for other >> targets only if required & upon thorough testing? > > I can tell you that on IPQ8074 threaded NAPI really improves perfromance. > Great. Do you have any test results on IPQ8074? Thanks, Manikanta