Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2753827rwb; Mon, 5 Sep 2022 00:25:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR6zJnSO2dKcZLfwaeIiefu2zdniWGVYirptOJP0e83FX3AAIuRXhRe4Xb+ly9WaAn5cxChr X-Received: by 2002:a17:902:d2c4:b0:175:4064:ac72 with SMTP id n4-20020a170902d2c400b001754064ac72mr25723819plc.142.1662362718253; Mon, 05 Sep 2022 00:25:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662362718; cv=none; d=google.com; s=arc-20160816; b=c6LEQ0t5ZEHJuyZXOJGuUb27iryzNbk+K1xEIAE4FWGAbwkan4O/zLQjfgMIPL81XE QbDlBymCnZxsflSuzp6nV3vtnicisVriilpXaGIg1gqJhUsN++FeLxuA0pO9Mfw6pLHt XOtoQJFyJOOc4OZxqP01RDOwoVzbOL+vsJCf8lqM26Sus4GR2K7fgrJdESFVdDET8VUU v/3dBh+sJfSyV9ZfaGMdsG33Qa57aas+2ntIbDtmAOM5rF9eRd4S39izOzbTdqoXrMf+ wiiacMXZ2gOxKIYVUwzlrDgRO3aZ2KS5wQZZf46q/D2oXPg3ykVoesu3IEMk3vMD/EVV 0L2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uLWXwbEquNRf/qovD/zzCxV+3jSh4dEL18uj+vLHmmg=; b=n5y+GD1/GGmV0nmf1RJhyv1wUxJ1BNrBPfbbwVwApK1e5BTD90L9A6ZlGxxAIkgePU o2lhbrL2FtPLQ7/ZKrEA42YQHk5PHJQp+qKKVxD3huZ3qY3YV7nKI+hQXFERY5GgC827 VPfa+a21h4D3Ercv70j5DtICc8q9kQmLQRrrPRWucHtL9w9TwcOn7nKzKUNOJbVNVbfh 7YirDqHPc7t4VTCKiLeSvfhpwHlYeVuzSV2GRVTJwTgmn0MWdizE4MnAN6mObsjpQQJV kCMo4kAcUJoQlW6TOxIaEsplHEDzI2W97VcYNMIF0BNW0191X+NfSjzGxqbyidn3gE3u jW5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=U5r6e0Jr; 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 c9-20020a63ef49000000b0042e9fb65f7fsi9085356pgk.134.2022.09.05.00.25.09; Mon, 05 Sep 2022 00:25:18 -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=U5r6e0Jr; 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 S236858AbiIEHWm (ORCPT + 64 others); Mon, 5 Sep 2022 03:22:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237242AbiIEHVu (ORCPT ); Mon, 5 Sep 2022 03:21:50 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAAB645F5D for ; Mon, 5 Sep 2022 00:18:38 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2856AGvV005471; Mon, 5 Sep 2022 07:18:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=uLWXwbEquNRf/qovD/zzCxV+3jSh4dEL18uj+vLHmmg=; b=U5r6e0Jrn6ulyeSv2/K5DL9+zpCSMFyMezV046WXPIvS5GfSpp0PAu0T6viQNV+/GR0n IChs8ZfekSTAlrHZEArZq7QY2Vjb2pYYeb4SGzTk5MeGg3ae/HXZuvNXHfcyVD0kcVW5 PnVv5zCKHsmavjtmnlbTVFPko2amAmOSAUNw9SAvcni35wAR2ZkgIO1cy17QFGPKPhYP +CePZjXM9JCdbCXA6bOxvhRSxs4FVyGKDEbYHoMh5A9V1SWAzjHNxrm+0wxzEkwAHQKV 6avH/yWYic8pwNaE0DgEDUjGZSBM0vqpgJUxt9FZLxRjxfaokHP0ApZFop+pAmbIARBX 3w== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jc07dbb8e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 05 Sep 2022 07:18:29 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 2857ISv3032422 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 5 Sep 2022 07:18:28 GMT Received: from mpubbise-linux.qualcomm.com (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; Mon, 5 Sep 2022 00:18:27 -0700 From: Manikanta Pubbisetty To: CC: , Manikanta Pubbisetty Subject: [PATCH v2 3/3] wifi: ath11k: Increase TCL data ring size for WCN6750 Date: Mon, 5 Sep 2022 12:48:05 +0530 Message-ID: <20220905071805.31625-4-quic_mpubbise@quicinc.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220905071805.31625-1-quic_mpubbise@quicinc.com> References: <20220905071805.31625-1-quic_mpubbise@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: WO6bNaU6c16pvpmDAIIWig3OvJCsgP5i X-Proofpoint-ORIG-GUID: WO6bNaU6c16pvpmDAIIWig3OvJCsgP5i 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-05_05,2022-09-05_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 spamscore=0 suspectscore=0 malwarescore=0 mlxlogscore=996 impostorscore=0 priorityscore=1501 clxscore=1015 adultscore=0 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2209050035 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Increase TCL data ring size to 2048 for WCN6750. This is needed to meet 160 MHz TX throughput. Add a new hw_param to indicate the TX ring size for individual 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/core.c | 7 +++++++ drivers/net/wireless/ath/ath11k/dp.c | 2 +- drivers/net/wireless/ath/ath11k/dp.h | 2 ++ drivers/net/wireless/ath/ath11k/hw.h | 1 + 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/core.c b/drivers/net/wireless/ath/ath11k/core.c index 1bcc108e9a85..e054514b3b09 100644 --- a/drivers/net/wireless/ath/ath11k/core.c +++ b/drivers/net/wireless/ath/ath11k/core.c @@ -109,6 +109,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { .support_off_channel_tx = false, .supports_multi_bssid = false, .tcl_ring_retry = true, + .tx_ring_size = DP_TCL_DATA_RING_SIZE, }, { .hw_rev = ATH11K_HW_IPQ6018_HW10, @@ -183,6 +184,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { .support_off_channel_tx = false, .supports_multi_bssid = false, .tcl_ring_retry = true, + .tx_ring_size = DP_TCL_DATA_RING_SIZE, }, { .name = "qca6390 hw2.0", @@ -256,6 +258,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { .support_off_channel_tx = true, .supports_multi_bssid = true, .tcl_ring_retry = true, + .tx_ring_size = DP_TCL_DATA_RING_SIZE, }, { .name = "qcn9074 hw1.0", @@ -329,6 +332,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { .support_off_channel_tx = false, .supports_multi_bssid = false, .tcl_ring_retry = true, + .tx_ring_size = DP_TCL_DATA_RING_SIZE, }, { .name = "wcn6855 hw2.0", @@ -402,6 +406,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { .support_off_channel_tx = true, .supports_multi_bssid = true, .tcl_ring_retry = true, + .tx_ring_size = DP_TCL_DATA_RING_SIZE, }, { .name = "wcn6855 hw2.1", @@ -474,6 +479,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { .support_off_channel_tx = true, .supports_multi_bssid = true, .tcl_ring_retry = true, + .tx_ring_size = DP_TCL_DATA_RING_SIZE, }, { .name = "wcn6750 hw1.0", @@ -546,6 +552,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { .support_off_channel_tx = false, .supports_multi_bssid = true, .tcl_ring_retry = false, + .tx_ring_size = DP_TCL_DATA_RING_SIZE_WCN6750, }, }; diff --git a/drivers/net/wireless/ath/ath11k/dp.c b/drivers/net/wireless/ath/ath11k/dp.c index 4f7381719840..fff8decf311b 100644 --- a/drivers/net/wireless/ath/ath11k/dp.c +++ b/drivers/net/wireless/ath/ath11k/dp.c @@ -401,7 +401,7 @@ static int ath11k_dp_srng_common_setup(struct ath11k_base *ab) ret = ath11k_dp_srng_setup(ab, &dp->tx_ring[i].tcl_data_ring, HAL_TCL_DATA, tcl_num, 0, - DP_TCL_DATA_RING_SIZE); + ab->hw_params.tx_ring_size); if (ret) { ath11k_warn(ab, "failed to set up tcl_data ring (%d) :%d\n", i, ret); diff --git a/drivers/net/wireless/ath/ath11k/dp.h b/drivers/net/wireless/ath/ath11k/dp.h index 8af2985ca2d9..16fb536da5cf 100644 --- a/drivers/net/wireless/ath/ath11k/dp.h +++ b/drivers/net/wireless/ath/ath11k/dp.h @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: BSD-3-Clause-Clear */ /* * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. */ #ifndef ATH11K_DP_H @@ -203,6 +204,7 @@ struct ath11k_pdev_dp { #define DP_WBM_RELEASE_RING_SIZE 64 #define DP_TCL_DATA_RING_SIZE 512 +#define DP_TCL_DATA_RING_SIZE_WCN6750 2048 #define DP_TX_COMP_RING_SIZE 32768 #define DP_TX_IDR_SIZE DP_TX_COMP_RING_SIZE #define DP_TCL_CMD_RING_SIZE 32 diff --git a/drivers/net/wireless/ath/ath11k/hw.h b/drivers/net/wireless/ath/ath11k/hw.h index 5164c471da6e..06c4dc30827b 100644 --- a/drivers/net/wireless/ath/ath11k/hw.h +++ b/drivers/net/wireless/ath/ath11k/hw.h @@ -210,6 +210,7 @@ struct ath11k_hw_params { bool support_off_channel_tx; bool supports_multi_bssid; bool tcl_ring_retry; + u32 tx_ring_size; }; struct ath11k_hw_ops { -- 2.37.1