Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp639140lqo; Fri, 10 May 2024 10:01:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXER1RAC6xsA+4zQd2b5F6fb4wNnY8IMo4wYvJXdD6WcgN1QTDk1EDxVGYWZDk36jjP089BnrQPYwp+g33+6wrXzUhjWENt0RCPsXGPpQ== X-Google-Smtp-Source: AGHT+IG/TwGg0UyAS7CpB5XNXco3c96g+f2AUP7LHjjGzbfi/U4z0oYgtAouABP/ROG0k18A1nDo X-Received: by 2002:a05:6870:2101:b0:23c:1597:5dc1 with SMTP id 586e51a60fabf-24172daaf07mr3585454fac.58.1715360488583; Fri, 10 May 2024 10:01:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715360488; cv=pass; d=google.com; s=arc-20160816; b=dn9sWr+o+AV7hxea1YhRjhak3MQzadkRvqLJxaDXvACN6XChdNqhYVNCcd0QLJw2nE T+8QdN50SX2oCW9pQAyc4jyCJaUUEINR7w7hecpcSzZqeEV51MvEZ6JKMpNFE+z/UNcA r0KEtrIUS5rWqvtq6pNlv+8lZATvenH2bt9ZZv1qvBjLsekkepVRz9c/79aBU8zQcMQ8 EsDeIXuCNjhJ1EDsI3ftwk+02eWmP9ckYmy1IN7i31El/gGwckzEfrFQf5bmkgQ0SAOK yR2QhpuGdDPbOUeXql1rmG1EJpYPnhTsbJI05UkLV9MQNqdAZopOk8d0Tur0xQRHw5MW TeOQ== 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=bKvhM2KsP1CPn8UJOwwaRkdLOt3sclXUyfmhEi5+xI0=; fh=z5fNI4Rel9StiP7Kx6v9o5HcDxef372bMCQb/2v1/SU=; b=gDgO51GoeZl+UJNRJjAUvjWHHpu2bylbGmpOFQX4WjXwvWw+Mp59HHPi6yo7D8E+aD 6xkIR+F3JF9hbKHUt0ezwueg0lQWaf8CkSe8ofIUwXnsH3Mm1/lCtpSeBQbqEouZAMtk Vm0a8JwXRy46Si4m2Om2nWZ2229TYjuOsz7mlB1LscWSm48tX4QPGlgYtvu4wLC89aLf 1NOfZ0X6CIbSumyhYS8NJpDyrjfdaHOcAujWHcStAjf4Z1dJhLhXdN3Ccv+2LA7i56Qq G7OPxZvKOn99lwvP6oXVGlq0ilZ/BiDCrsNX/YC3MI0N/YBeNNM5zYv8aSxr7Zsbfzs8 w62A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=oIFlHJl2; 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-7482-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7482-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 586e51a60fabf-2412acd687csi1654475fac.197.2024.05.10.10.01.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 10:01:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7482-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=oIFlHJl2; 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-7482-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7482-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 E020D282AE9 for ; Fri, 10 May 2024 17:01:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D99761FB4; Fri, 10 May 2024 17:01:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="oIFlHJl2" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 53175EAF6 for ; Fri, 10 May 2024 17:01:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715360483; cv=none; b=q15mQYA5oc61uDuFuLpF2Ecm6JOtnRAmBHRxLUehI5rt9iL9NtM8NeB+95m19wNQL+YfUhtpMufFnjWIHLjTTfU/nzN1urgwOX8QdVImhY5XUo7cA4ZLhBYRIGaijgOgN6f9WC8/9fYMQp4dlW30sfqeia+dHDtwdZCNClOqQcE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715360483; c=relaxed/simple; bh=ePeOkf/iOciOJOFG7RLM6eLA9+vuAP5zP3ymOhJKa80=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=HXCgRYCk2lkvuj9RFugwY0z3C9VPFVT06EdbpN54kytl4jm3OXmTq2WPUVHgSvfP+3XC/mUvJQy7H342be+Fv353oAEbNa5ZTQ2tSPJDR9ciXha8G/m5CPDNj3Tqd9HQaFr/ZMra/2XqfSHcFeIxczPctZfEwUjGWGWE2fVcthM= 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=oIFlHJl2; arc=none smtp.client-ip=205.220.168.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 (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44AF0Spf029589; Fri, 10 May 2024 17:01:12 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=bKvhM2KsP1CPn8UJOwwaRkdLOt3sclXUyfmhEi5+xI0=; b=oI FlHJl2PlW7A8fPOAQtYMx0BBPzFKQHY3vhFOAYHd0xvVE7/c6bxHzbt23hVT2B0M 0aNqs0f3cip3xKMhOdmMFRxAKLfttKnA+8B5SxQ23AaGa89qLoUQZGnYllunIHh1 8c0dRit+dGZiDcmHKl4qqusqGaXp205Brn+G1i2YYp9a4AAG2I8m90/sbDCOkJlV EjfbtrncnCGbk3aflacHk/CHzzFmio/uQGmNyBBEwPDk1qksq5kL9B+BaBHnkjui BRa0jDHiZ3NcTSO3uV/UM9a0rT/oXcNM/qSih3F+/FhTrsIruqDNAN8oyoWmpVoy ucNgp2oz3+vLxx8qpwIA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3y16w1a3c5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 May 2024 17:01:11 +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 44AH1AGt003556 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 May 2024 17:01:10 GMT Received: from [10.110.100.57] (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; Fri, 10 May 2024 10:01:09 -0700 Message-ID: <13d762da-ad16-43b4-b0ca-15e5e17af5cb@quicinc.com> Date: Fri, 10 May 2024 10:01:09 -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 v2] wifi: ath12k: Fix Tx Completion Ring(WBM2SW) Setup Failure Content-Language: en-US To: Nithyanantham Paramasivam , CC: References: <20240510070427.206152-1-quic_nithp@quicinc.com> From: Jeff Johnson In-Reply-To: <20240510070427.206152-1-quic_nithp@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: OkWJzsiKVG3Wt6YXFZPLAUbhrQ_VxsQw X-Proofpoint-ORIG-GUID: OkWJzsiKVG3Wt6YXFZPLAUbhrQ_VxsQw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-10_12,2024-05-10_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 impostorscore=0 lowpriorityscore=0 spamscore=0 mlxscore=0 bulkscore=0 priorityscore=1501 adultscore=0 phishscore=0 mlxlogscore=876 malwarescore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405100122 On 5/10/2024 12:04 AM, 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 > Tested-on: WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 should be Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 Kalle can fix this in 'pending' > > Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices") > Signed-off-by: Nithyanantham Paramasivam Acked-by: Jeff Johnson