Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4669953rdh; Wed, 29 Nov 2023 07:35:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNWzLkCEa9lPtBFdfdppDY2DtlSHRiKsoG3ql4Ep4jr2bGhkVzbuPF7OE2M7kKFolCoyL0 X-Received: by 2002:a17:906:b84a:b0:a00:4162:5d98 with SMTP id ga10-20020a170906b84a00b00a0041625d98mr14677415ejb.19.1701272156987; Wed, 29 Nov 2023 07:35:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701272156; cv=none; d=google.com; s=arc-20160816; b=cPAg+8GHB1u7WveEu2imi3V9Fpui+n9CuBt92hOd4iNogsf/NGyXFokQtP/qvXftrv PKry3MWlHilfMDq/0FetzIb19+qQLwBnEx/DkyU8aRli5xSygnlEgfowQWsQdILEbAnn C1D7n2gvPgI04a65Nof0/NFI/tqghfbsxK4cCdKfSiEdUYzwqpqI1HO8N0NI6iNOhlmZ h3s0SVNA5DSAPs5LFm+fO+siyIJlPb1uVCyRPEgDBBgjrktYHDCuWUT/9t9QWxkFfyNI emx2HkcxwtxMss1fxNYJtm7mToFUpYtFYS5glbc+B/KeEBzG8aSJZUd4AmHvlU1oCbg9 O6Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=mkhB+oc/0d+2BM5+G27WFV+55X05SJeWrCNbmhBuaMU=; fh=b2YQfG9PfQSUw5xMVFyESXjrM9bXk1jv/UlzGGNeVIg=; b=fGEN+cXr/OD/pa6oCN9sobBPeJETCTi3MwdZljbvmj9LANSj6XEioqDPBzwPflj50o mNOkJLZ/t2bFQ1cVJmNq43lBRuVp3ncO9ghXDOwZA1VYDTTmHhhhUNqJRUIlxdpEy3UE pMHHnfZAn4/STzJJE61CVcp3JSBEd6gpTNM12+Tjh4HI5W5LiPbujHun4Y192Jcvrz+2 Xje4XEt6TYOeI5osN5uNgb7Hay7j+wrH1J5gAH2WEPl0xM8gIIFrjQWT1Up1hQu92v9I 7SSfTViXitF1jZn8gouVywgsSgfrnyE8cNWzkovg/po3zMBi5d/Na6WGEFk0JezIhn9k RdJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=cO5KGnyC; spf=pass (google.com: domain of linux-wireless+bounces-224-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-224-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x16-20020a170906135000b00a0ac38e8417si5726501ejb.921.2023.11.29.07.35.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 07:35:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-224-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=cO5KGnyC; spf=pass (google.com: domain of linux-wireless+bounces-224-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-224-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id AD3D71F20C96 for ; Wed, 29 Nov 2023 15:35:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CF00249F4; Wed, 29 Nov 2023 15:35:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="cO5KGnyC" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87AC9D46 for ; Wed, 29 Nov 2023 07:35:49 -0800 (PST) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3ATEQWAA031808; Wed, 29 Nov 2023 15:35:46 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=mkhB+oc/0d+2BM5+G27WFV+55X05SJeWrCNbmhBuaMU=; b=cO5KGnyCSPatQ5LdVrL0OFAHFO0AFXG5hg19f3v86Z+qGzhe7r9lT401Yr8rHUOnmTPh 3twPp4lnU98zzsP50iOt2r7252iuNCdUhJnWDDZAjGxBjdd9l9g0DouYc/upiGF72B+z 8mkrJJXrRBHYkOAjn7WmWWSIoH2QQt3p/fllvGZayP7/Vb9p9ggJOq+KmDPpIs85Rv0P e0OUvu4QH79371DfPRGpgwkXHqLuTHrCNYfR8V5TJ9pSkbSPDb0rljOlNAbqIQdB/rSd /aVqiSFRdcOqYnxzoBOsJj1rqnE//PQcOCZMdikCoKYzJc+zfB4dS33vENmEkYVm0piY EQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3unnpetnc0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Nov 2023 15:35:46 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3ATFZjPF022136 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Nov 2023 15:35:45 GMT Received: from [10.110.63.243] (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.1118.40; Wed, 29 Nov 2023 07:35:45 -0800 Message-ID: Date: Wed, 29 Nov 2023 07:35:44 -0800 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/3] wifi: ath12k: change MAC buffer ring size to 2048 Content-Language: en-US To: Baochen Qiang , CC: References: <20231129020414.56425-1-quic_bqiang@quicinc.com> <20231129020414.56425-4-quic_bqiang@quicinc.com> From: Jeff Johnson In-Reply-To: <20231129020414.56425-4-quic_bqiang@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: VhGp4JUl5GtWrK61lx_X2phg_x8y05ER X-Proofpoint-ORIG-GUID: VhGp4JUl5GtWrK61lx_X2phg_x8y05ER X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-29_13,2023-11-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 mlxscore=0 phishscore=0 mlxlogscore=846 priorityscore=1501 adultscore=0 clxscore=1015 bulkscore=0 malwarescore=0 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311290117 On 11/28/2023 6:04 PM, Baochen Qiang wrote: > For WCN7850, there is a SRNG named MAC buffer ring, i.e., > dp->rx_mac_buf_ring. During initialization, it is setup > by host and then under control of firmware. During RX > process, firmware fetches buffers from > dp->rx_refill_buf_ring to fill that MAC buffer ring, > and those buffers are taken by RXDMA to carry real WLAN > frames received from air. > > Currently a low RX throughput is observed. Checking > firmware log, lots of errors are reported by MAC buffer > ring, complaining that it is running out of buffers, > which further indicates that RXDMA is suffering from > starvation. Currently the size of dp->rx_mac_buf_ring > is configured as 1024. After changing it to 2048, those > error messages are reduced, and a 6.4% increase is seen > in peak throughput. Note that 2048 is an empirical > value. It is chosen here because the RX throughput > meets our expectation after the change. > > This change only applies to WCN7850 since other > chips don't have a MAC buffer ring. > > Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 > > Signed-off-by: Baochen Qiang Acked-by: Jeff Johnson