Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp419728lqg; Fri, 1 Mar 2024 09:02:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXTjW7aUrS0IHAKvgx/sgynJ1AGTq6KaDIz2tLJwk0jqZ4+1YoO5uiP8o++MfyaSIEMq3HPxgJwDZsY+KWXCRiD0XZgjEPEqRI/oxwf8w== X-Google-Smtp-Source: AGHT+IERvEFkPaoF+U2x7T08+4OLXZ3JZB7mwOjjKI9ed8D0CKhrqwRb5Seg4C3u4mYHIAUXBztV X-Received: by 2002:a17:903:1249:b0:1dc:a60f:57f1 with SMTP id u9-20020a170903124900b001dca60f57f1mr2686033plh.40.1709312524980; Fri, 01 Mar 2024 09:02:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709312524; cv=pass; d=google.com; s=arc-20160816; b=HIg4MIr+KFyn1SZ8m8IbspT2A9cLWf6+8Vc3OW5riOYD1Zq6wLXL40MUEbjCu7OJU9 0WMhTGD32Ejf5D8wcYXyzLtLTheD5tABPZbjuhP9s5nqYsoCLfhF/orIyuGDSO5r37ns FSYVQeyAV6hHsVGgaXZwHBKVaVegLhCEmFQizyg/WDIa4D2wWaPOs8bsRmr13jmdk3eG ufIaWIS8HZtYmBBd81juIxuDGplo333HcPa4Q4dHSfiHUb57pPBPQdDCijRPdA0D6jYX CTJxv6LxpoWFhMVs9yYacuTZ6rnqiWANcupUzvEDt+ZyGKyM0bWYa54RnbUE7MbPUfdp ZEkw== ARC-Message-Signature: i=2; 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=gSI7a+FME0r5JfS4mRlk0m3zVoz17Jebk108aGve7yY=; fh=PWuVBa6M7FrX0awFTQlab6nhilcSnkpFaq3WNsQnVnI=; b=X8j1h6hl9hRAJxAxehPZi10iqdATMnlnFfeWGzR+vGYowGj6+rpLeqRLaDpwr35wSn cmlg45wQAHS4mYqnF9eonkbF2lVRA6nY1ivg3ufgFXDxmhee/C/UAgDSPvSFMSj+sj1E 88Rg/s83Mt5EyG4B8+jfCB9yK96A9liDfnm6x5r3IOtt8R4VsEvRMmfMqahDh2AT7HPg UlxU8skhjHzUWzKiau1WgccQiIG4qaDV3uZ89MyN5EMFkPzuB3CBH+AhiiK+1Yt741uV mlYxIxYtS14BS8sUq75egTf1iZ7EO+pH2AYKRL8vmznQTrJ2yDXW0XUYPWSQhI8oU+hH U1hw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="D/1LtdOw"; 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-4302-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4302-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. [139.178.88.99]) by mx.google.com with ESMTPS id y1-20020a170902700100b001dba53ce5c0si3662111plk.524.2024.03.01.09.01.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:02:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4302-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="D/1LtdOw"; 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-4302-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4302-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 628B9289110 for ; Fri, 1 Mar 2024 16:57:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49C2037701; Fri, 1 Mar 2024 16:53:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="D/1LtdOw" 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 9C0E32F3E for ; Fri, 1 Mar 2024 16:53:20 +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=1709312002; cv=none; b=Y7UPqXLLY1IwdjPJ0wnZlMzPM02iQGdsNIrSaxd+JKd40dZWSJ7eqaGiCKPANi95rxyRPeS4w7WzWD5+fGhjufEmvjCuvXT+3oeIIGWKcSma4n8PDL7F3t5zoXFvUhW84+c5Ak3q/dghK6lUqnQZZf/oEs9ixm4xTNoigtvjxao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709312002; c=relaxed/simple; bh=x29LZAp7d38sGoPY3cRrexJU86X5m5F02452CzcwZ9s=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=m2eh/HBIaQvaKqffIwIJ2amPWKKibm1/KHpojNqiT6U6dpPr8WJpOEWffZYtUT7XIKsSZGTXXb8HlAlPajZBbg0D+ZoLmndUo8BTBiw21A7NehU5i7gCliapChu7XPvgXkau5tNi+KkJt1oVpLtnVq3MtMiDCpwwZIUMRhuKEOQ= 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=D/1LtdOw; 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 (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 421F1HWv011155; Fri, 1 Mar 2024 16:53:17 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=gSI7a+FME0r5JfS4mRlk0m3zVoz17Jebk108aGve7yY=; b=D/ 1LtdOwt/q5kRjHFOSXSxtp4OkTIEGgpIX93cHAw4OJ0rp/rma+QYp9ycAH1pSX+g rqBP/qrMveMQ8f/cUI1BvvxdFAMP8AQ0QZwIwJDn7HYnEQb4myyX4eYDsjpWt782 6sB2f9ZEBrc7KkcBcEAFBenrOFuEHmSnnbULNu9cZYUkIkY42dnefxb9/R3Ugg2V B62s1wH40G1CV1QkqCjrJQgkJQzbM8ZKqDqi5SCEikuzcSfXiPG0ev/ySM7Sckhs rW9sYSycN9MOg3YMPEz5wlDULd1lmosynkdZUqPS3q+9humEzFdhZS0HD7wHrEK0 UlJa0rncrYzwVIBgciSw== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wkh9rg8n3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 01 Mar 2024 16:53:16 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 421GrFLO020600 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 1 Mar 2024 16:53:15 GMT Received: from [10.110.42.209] (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; Fri, 1 Mar 2024 08:53:15 -0800 Message-ID: <6a91daf9-76ea-4379-8b12-1b9cb23b3869@quicinc.com> Date: Fri, 1 Mar 2024 08:53:14 -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] wifi: ath12k: remove reserve member of wbm completion structure Content-Language: en-US To: , CC: References: <20240301091936.12054-1-quic_tmariyap@quicinc.com> From: Jeff Johnson In-Reply-To: <20240301091936.12054-1-quic_tmariyap@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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: EPY_dc2vQcVFAaJkaDEmy_gLL8kYu42q X-Proofpoint-ORIG-GUID: EPY_dc2vQcVFAaJkaDEmy_gLL8kYu42q X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-01_17,2024-03-01_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 bulkscore=0 mlxlogscore=999 malwarescore=0 impostorscore=0 phishscore=0 spamscore=0 mlxscore=0 adultscore=0 clxscore=1015 lowpriorityscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2403010140 On 3/1/2024 1:19 AM, quic_tmariyap@quicinc.com wrote: > From: Thiraviyam Mariyappan > > In tx completion, status desc obtained from offsetting the address > from wbm ring. Having reserved 8 bytes in status desc offsets the > address twice and read the values from the incorrect address. > So, removing the reserved 8 bytes from wbm completion structure. Why not instead remove the addition of HTT_TX_WBM_COMP_STATUS_OFFSET in ath12k_dp_tx_process_htt_tx_complete()? That would remove an unnecessary operation in the data path. > > Also this patch is applicable for WCN7850. > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Thiraviyam Mariyappan > --- > drivers/net/wireless/ath/ath12k/dp.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/net/wireless/ath/ath12k/dp.h b/drivers/net/wireless/ath/ath12k/dp.h > index eb2dd408e081..d01fc0b0c9a5 100644 > --- a/drivers/net/wireless/ath/ath12k/dp.h > +++ b/drivers/net/wireless/ath/ath12k/dp.h > @@ -387,7 +387,6 @@ struct ath12k_dp { > #define HTT_TX_WBM_COMP_INFO2_ACK_RSSI GENMASK(31, 24) > > struct htt_tx_wbm_completion { > - __le32 rsvd0[2]; > __le32 info0; > __le32 info1; > __le32 info2;