Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp153603lqt; Thu, 18 Apr 2024 10:53:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUHA/U2GWKoOPn8+JE4gwV3w3g8/AkJ7FBbv/KfVxE1d1odkpvBZM7KES5PlRFRiNFgZOzHcnC+OYkmYea5UZKkvbIZLHNJvXlnfTIwTQ== X-Google-Smtp-Source: AGHT+IF5mPiv8lF8GrGkSWs0l1dDy4c//MRmPGRyM+eagNTaNmD9e9CVMuMu3nNr5BEP4sNQj4Y+ X-Received: by 2002:a0c:f943:0:b0:699:23e4:8ec8 with SMTP id i3-20020a0cf943000000b0069923e48ec8mr3465399qvo.57.1713462783787; Thu, 18 Apr 2024 10:53:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713462783; cv=pass; d=google.com; s=arc-20160816; b=qEst6QVdB85qJCD3wDCAEmVI09eei+k+y5Einez4TkRwR5umVxpwR2FYWmWt34isBX g7YebmQOm76j2lL9DvDJSDlJ+YWRdWdrXD/mBj2ReVJzebGi6wwhgM+Rjhss3jGzZBMh KzZS0EK0arXJQsvotoxC1JHgtV3imyf6FDYn3nb+PM2xiynOJ8YO1lY/Yxuc/r7eKk8W qYbOYLWC9nRoUILhXxBn6KH74rEh4qvGQ3k0ZjHjmDwBGvONaQalNF5DD8mFvOqgtVhV q6BVBfwD47XTriL3h6svo1UDVMOPeyeQu3fl8eYQFOtBcGeHBF3NgGR5nOT21iqDSegQ aqbg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=dz85mNbsScx0oCTKuf5RUVtvYV+yQpkJcRmPH3pjbSk=; fh=z5fNI4Rel9StiP7Kx6v9o5HcDxef372bMCQb/2v1/SU=; b=MvoC2fbx8ViYma2sUbQBZjdVfODHYxsw1EJizLzXaC4+aav5Y4hTdipIOTcYkwWi/b idFOKDYg7TLaXDOVLKayXlW9S9GGqV5LMbxraECpvK1+UQWRxPN0PA6Oxqx2Fq104rI+ A7HbwPyu2irppGbwuF1enPrHqtTXaP2LMn9lPeizPbqaDL4hBev3X0Ol5o2phv1Hxlmz K0ZP05qeDGSUn0pdAnkT1XoWdNV7QBUBBXIY0YXtoci+aL9XJQMT8fPnYWzlrSs5GMXS EwjYDmboM4jw/9THKYQk3SNgPYxW1BdoSql4aB8C/ozfHxBRryuP9pJZGdG62VPzRcqa leuw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=j2F6Kfcx; 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-6538-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6538-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id hu6-20020a056214234600b0069b490659b0si1942372qvb.530.2024.04.18.10.53.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 10:53:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6538-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=j2F6Kfcx; 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-6538-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6538-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6995F1C20888 for ; Thu, 18 Apr 2024 17:53:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD7C716C864; Thu, 18 Apr 2024 17:53:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="j2F6Kfcx" 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 267F9839E3 for ; Thu, 18 Apr 2024 17:53:00 +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=1713462782; cv=none; b=Kc1tjb0FoD+/6T4Wpj7POpZvHQEvT4/gpkBlE8Kc86oTh4sPSF8SknUTKWLSeOJNpMlpfI8tAwmr77VNkQoIfVgz0MCF41EwjhJpBB3N1m/OMKqqneeqDLSRI+/Ok7r41fecPW0tdpe7K9ivZpBm/718Ah8JgijzGRqqPs1N4Hg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713462782; c=relaxed/simple; bh=+oBFLmYYdnYdhHrJ61MDOO559YjJWSSZMsZCsv4bCV4=; h=Message-ID:Date:MIME-Version:Subject:From:To:CC:References: In-Reply-To:Content-Type; b=QA3qFCDx7RExN/kb3wySWvkWPGF9eIX6C2JgHQow86WcBOOs1Cwim6coO9P2r5Ojhb+zj69bO0N+ckhXV04k0ZYtVaIhlLQlTdJHHdZzYK5pd960Q7BoTBvhzaoz1ugukqcx9UKrY3wrAzP3zZCrIqUMgEvf0oFx22oC38VxT2I= 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=j2F6Kfcx; 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 (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43IE0D10015491; Thu, 18 Apr 2024 17:52:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:from:to:cc:references :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=dz85mNbsScx0oCTKuf5RUVtvYV+yQpkJcRmPH3pjbSk=; b=j2 F6KfcxOq82NuooEslqsdMBMFJ8drL5fBQRN6kajPz+wMFtFgP3h51Jgl2IV94o8l cV8tdaUp3X6hlpRB964UzA+uayGk9xP9iPgp/U91k8yuAj7hRiAtn9Ys07i7/Pq6 EFHTJrliDV0G/d0w9fRai437ml2gPIEoyijIfNZ+e1oD0zLBWAto7tGhmX141Twj +mCsuOOmneVoQjw/nMxk6d4bFiBKjqhWRMx7I2pVwR8wmJeNnMyTwmJYyw70PW3e URYQGf+kBdiKgIteKQWf4FrnnYzLGsWwKhK05CoFSjnzpP8ZLiTP7ugJ9WgISd73 LMYwHqfAKzfutjFKhNRQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xk4vm8kq3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Apr 2024 17:52:55 +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 43IHqsle007957 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Apr 2024 17:52:54 GMT Received: from [10.110.20.198] (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; Thu, 18 Apr 2024 10:52:54 -0700 Message-ID: <514da0bc-f9f6-41fb-9e3e-72677394695f@quicinc.com> Date: Thu, 18 Apr 2024 10:52:53 -0700 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: Fix Tx Completion Ring(WBM2SW) Setup Failure Content-Language: en-US From: Jeff Johnson To: Nithyanantham Paramasivam , CC: References: <20240409190922.4180631-1-quic_nithp@quicinc.com> In-Reply-To: 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-ORIG-GUID: dYzQvRMXIznRtG_OfGlI_pUAiZk4Ivks X-Proofpoint-GUID: dYzQvRMXIznRtG_OfGlI_pUAiZk4Ivks 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-04-18_15,2024-04-17_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 spamscore=0 impostorscore=0 bulkscore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 mlxlogscore=769 mlxscore=0 priorityscore=1501 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404180127 On 4/10/2024 1:25 PM, Jeff Johnson wrote: > On 4/9/2024 12:09 PM, Nithyanantham Paramasivam wrote: >> We observe intermittent ping failures from the access point (AP) to >> station (STA) in any mode(AP-STA or Mesh) configured. Specifically, >> the transmission completion status is not received at Tx completion >> ring id-4(WBM2SW ring4) for the packets transmitted via TCL DATA >> ring id-3. This prevents freeing up Tx descriptors and leads >> to buffer exhaustion. >> >> Currently, during initialization of the WBM2SW ring, we are directly >> mapping the ring number to the ring mask to obtain the ring mask >> group index. This approach is causing setup failures for WBM2SW >> ring-4. Similarly, during runtime, when receiving incoming >> transmission completion status, the validation of the ring number by >> mapping the interrupted ring mask. This is resulting in >> validation failure. Thereby preventing entry into the completion >> handler(ath12k_dp_tx_completion_handler()). >> >> The existing design assumed that the ring numbers would always be >> sequential and could be directly mapped with the ring mask. However, >> this assumption does not hold true for WBM2SW ring-4. Therefore, >> modify the design such that, instead of mapping the ring number, >> the ring ID is mapped with the ring mask. >> >> According to this design: >> 1. During initialization of the WBM2SW ring, mapping the ring ID >> to the ring mask will ensure obtaining the correct ring mask group >> ID. >> 2. During runtime, validating the interrupted ring mask group ID >> within the transmission completion group is sufficient. This >> approach allows the ring ID to be derived from the interrupted ring >> mask and enables entry into the completion handler. >> >> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 >> >> Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices") >> Signed-off-by: Nithyanantham Paramasivam > Acked-by: Jeff Johnson > > Please remove my Acked-by. I've bisected a kernel crash on my laptop to this patch