Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1191562lqa; Mon, 29 Apr 2024 00:21:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXa0cyRFNRZSNqbCGEi5ZkeFN7cKG1iLhHtZ6oU/QGCb3HAenOJRHmkOwF+m7T+MR1Ie4Pdm6ZEEApOdmqZRgKIHC+7FqqjNfFofDQByQ== X-Google-Smtp-Source: AGHT+IG32EpJ9Mqsa/ydqizzuqnOv0hfn8CftuXfWuEthL5m/hstfgo+1gGDGiePEQVeTv2KPIBC X-Received: by 2002:a17:902:f70a:b0:1e2:9aa7:fd21 with SMTP id h10-20020a170902f70a00b001e29aa7fd21mr7262524plo.54.1714375286804; Mon, 29 Apr 2024 00:21:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714375286; cv=pass; d=google.com; s=arc-20160816; b=sCyKLBnLLafGoHxbcaYlsg9frQQuHYRZVdBb03ViwdWEiEEwJnxofx8nKYmiAA6MC0 hRjSHtF0Z9pUHqBaMxd40BqLo9QmT3WCr9wNqWgjmKEn5Po1Bl3sU4kkowIIFOD/hNne /b3dmE2YqxlW1vx9RmQeblcuGKJDmwZEdKKnY3yrT1pofGF3YugKisnKVO73j8DZWc7n 6VT0hQ3LJgP88SKDEIknnhQL8cj3lp1PIVg912zpIGTFp+b5tkQmf5naBOB3WbBgUWV7 DOdoAV29pkBwBohAYHPxg1+cAmgNSp8VhB4utUPDgNl3Xti2rimOPFkNwJJHVFmbtkY5 Hfeg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xoG6O88QwWOX2mC7RY8Vl2PhxJ61CVCdrGl5iBudFXE=; fh=B/BVsH0uMnPPzXCP+L8WXJkzl9zKARwPb71thbch1Ho=; b=0hTYa5YT8XiejABDknFIjxP/wQvw1pipSCRTKMODrQ+CAp47Z2pjLEBchdgBvgAky0 fyYzpko4BhxGFMal/tvj2h1FK/S/UXem8sf9yvsqIiP+v2Ie864Un9gvr/5BhZjYo2O3 J3DiAQbwwbonhGnBBwL4Z+cRiCSahyo7kdBDebjb8cJeyCgrCUhfedsGzLTVH8J6Gszn XAAuybettCeWjeJKNmXLH5v0Mdf/Jcqtpx+414dRnXZvjQiWkoG0GOslqYaLZv9N3hH2 PWgZiIKkFDf4wEOH8oK2ir7XR/YUJCPzGm1z04qDOtpJU59c/fCAaGNmOEYePm9bLPNb qPhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=jzD6z5U4; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-6966-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6966-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d23-20020a170902b71700b001e4398b9244si15728674pls.133.2024.04.29.00.21.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 00:21:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6966-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=jzD6z5U4; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-6966-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6966-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6EC5E28119D for ; Mon, 29 Apr 2024 07:21:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 421AF14003; Mon, 29 Apr 2024 07:21:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="jzD6z5U4" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A064615E85 for ; Mon, 29 Apr 2024 07:21:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714375277; cv=none; b=Ivrv16lQenKMukZkxNhH21QwUbZWpXEGiX/dQRttz2rJExv03hRGc2YGUiaf4+EVum4G+c2M9kFwWbI9y3HB09tH+obNGFPdHA0drLWoWs4zyMZalajKvhqPQb9wUSeILtEVQvJfSHAEJxsHF+WrEY3ggkB9Q0nNU66KA0G1k0Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714375277; c=relaxed/simple; bh=T8YIVeYYJhZlE8zlXEKAzcyDwG7It05YF7jlYEpiLmQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=aJHMn2M4UbMiSFwMg72sYp07K0fzTC3UlJrVMCYDW9+Iu70hfeDTEdI2yT5lUS1NOgYCmEMVDzDCC7pNdFPNT8ZTLifnYjNDcqDoMKC5s5mbvGWO3BCcQR6nkClv52lScaQGDeGSsgGRE6RqxjvD4tklZH+Rph2fKHViBNXCRm0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=jzD6z5U4; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43T3Kw9S016555; Mon, 29 Apr 2024 07:21:12 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=xoG6O88QwWOX2mC7RY8Vl2PhxJ61CVCdrGl5iBudFXE=; b=jz D6z5U4QdjFPsGQ6/a4c8H70xt+GViHiwuvt04ANCzBLlgChoPHtudKWP9fgmJHND jVyIIrySSo97wPfCJb0MIlNWs8vaVoxSIkHL1RjjNIfNZXiMTggORp7GR3JJ1ZLG obGImqXfHiGT/NGhjpBoUcL/tSzfsRJeh/EC743PweUvm8CN8J2Etr++TARO7EdE LJ0wj6PXDS/k5Oj7f2qTbQK41QHffZ+YWdPSHFf+fupDOh8HiTThrZPLimioXyvF hhgSA/IPzn9heSVWSB3JhlYzkmg9zy7ZqUcy88lwbOdemIIujLfRbVzRGn5JXghi HYXa0VFYHNcedP9vT9Xw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xrrcck32t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Apr 2024 07:21:12 +0000 (GMT) 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 43T7LBsp009459 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Apr 2024 07:21:11 GMT Received: from hu-tamizhr-blr.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.1544.9; Mon, 29 Apr 2024 00:21:09 -0700 From: Tamizh Chelvam Raja To: CC: , Tamizh Chelvam Raja Subject: [PATCHv3 3/3] wifi: ath12k: Remove unused tcl_*_ring configuration Date: Mon, 29 Apr 2024 12:50:39 +0530 Message-ID: <20240429072039.711706-4-quic_tamizhr@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240429072039.711706-1-quic_tamizhr@quicinc.com> References: <20240429072039.711706-1-quic_tamizhr@quicinc.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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-ORIG-GUID: DfqYTIfn-gIa52U-VYjPcS2f2dPRiYaH X-Proofpoint-GUID: DfqYTIfn-gIa52U-VYjPcS2f2dPRiYaH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-29_04,2024-04-26_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 adultscore=1 suspectscore=0 malwarescore=0 lowpriorityscore=0 priorityscore=1501 impostorscore=0 mlxlogscore=954 clxscore=1015 bulkscore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404290046 Currently memory allocation for multiple hardware rings done in host as these memory will be used by firmware/hardware. But in case of tcl_cmd_ring and tcl_status_ring neither firmware nor hardware uses host allocated memory and it uses memory allocated by firmware itself. So avoid tcl_cmd_ring and tcl_status_ring setup in host. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 Signed-off-by: Tamizh Chelvam Raja --- drivers/net/wireless/ath/ath12k/dp.c | 16 ---------------- drivers/net/wireless/ath/ath12k/dp.h | 2 -- 2 files changed, 18 deletions(-) diff --git a/drivers/net/wireless/ath/ath12k/dp.c b/drivers/net/wireless/ath/ath12k/dp.c index 963b9ad4dc82..d91d5c308210 100644 --- a/drivers/net/wireless/ath/ath12k/dp.c +++ b/drivers/net/wireless/ath/ath12k/dp.c @@ -457,8 +457,6 @@ static void ath12k_dp_srng_common_cleanup(struct ath12k_base *ab) ath12k_dp_srng_cleanup(ab, &dp->tx_ring[i].tcl_comp_ring); ath12k_dp_srng_cleanup(ab, &dp->tx_ring[i].tcl_data_ring); } - ath12k_dp_srng_cleanup(ab, &dp->tcl_status_ring); - ath12k_dp_srng_cleanup(ab, &dp->tcl_cmd_ring); ath12k_dp_srng_cleanup(ab, &dp->wbm_desc_rel_ring); } @@ -479,20 +477,6 @@ static int ath12k_dp_srng_common_setup(struct ath12k_base *ab) goto err; } - ret = ath12k_dp_srng_setup(ab, &dp->tcl_cmd_ring, HAL_TCL_CMD, 0, 0, - DP_TCL_CMD_RING_SIZE); - if (ret) { - ath12k_warn(ab, "failed to set up tcl_cmd ring :%d\n", ret); - goto err; - } - - ret = ath12k_dp_srng_setup(ab, &dp->tcl_status_ring, HAL_TCL_STATUS, - 0, 0, DP_TCL_STATUS_RING_SIZE); - if (ret) { - ath12k_warn(ab, "failed to set up tcl_status ring :%d\n", ret); - goto err; - } - for (i = 0; i < ab->hw_params->max_tx_ring; i++) { map = ab->hw_params->hal_ops->tcl_to_wbm_rbm_map; tx_comp_ring_num = map[i].wbm_ring_num; diff --git a/drivers/net/wireless/ath/ath12k/dp.h b/drivers/net/wireless/ath/ath12k/dp.h index 5cf0d21ef184..21afdb51b6e6 100644 --- a/drivers/net/wireless/ath/ath12k/dp.h +++ b/drivers/net/wireless/ath/ath12k/dp.h @@ -327,8 +327,6 @@ struct ath12k_dp { struct dp_link_desc_bank link_desc_banks[DP_LINK_DESC_BANKS_MAX]; struct dp_srng wbm_idle_ring; struct dp_srng wbm_desc_rel_ring; - struct dp_srng tcl_cmd_ring; - struct dp_srng tcl_status_ring; struct dp_srng reo_reinject_ring; struct dp_srng rx_rel_ring; struct dp_srng reo_except_ring; -- 2.34.1