Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp137433lqo; Thu, 16 May 2024 01:26:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCURwCVlBt+vyNzxKWNPgaXY3XPdsoUGwdEWtUb+h8eo6RkFGZ4lQiB2p7AbhTH8vnGu4v+mdcUY03coftXX+5QQvI4gM+5Pr3wI+MYTHg== X-Google-Smtp-Source: AGHT+IGOe7/cWRbJcXdN5G7BPbd6CCkoN3qwGDv00o+Oso+JJf/0T+QsaBcU7ZB2G6XHtvhiFbJQ X-Received: by 2002:a17:902:f552:b0:1ed:1d37:267e with SMTP id d9443c01a7336-1ef43e281b0mr234141685ad.16.1715847960844; Thu, 16 May 2024 01:26:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715847960; cv=pass; d=google.com; s=arc-20160816; b=tV2rb8PlIA5+7gwH/jtnUn7g1gyRfamZ9fAn/xWFsQpcaovzR04DHLZ4dC2VbwB3Sw iAN7W19D4zkNtxlHnYqx20NlA3Kwu215dYD1iErsv8lyJKTgeAyiY5yRnL+lLiumyRvr 68/HvvynCvmP29waGHLcG7p4nklwdYJ7Pye2dZO5WkBmC4ZYNOsR7ZsfCFCAbCB5Dg4X BQ2Blh53z/Rgo2zNEX5c2/xbPPmuMyrEjsDEXS4qJNffpdHYcMGiDN1PbkZc2xO0t46Z 1DHNJaj07voHxjfyXsJDdu7Ae+2fV3xrxY0UqUjxyHR0jbESVc1VHWmq/O6UIri9ThvL 7+uQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=KM2qjXkjGXIYQgaqQPDuQFLrz8u1ucJBKrSSjRc+Tds=; fh=ivqXpgfaq2UIDoyL0DxrV9kv7OBs8x0QrTrs4/gBsMg=; b=qn5rC0r4xjgoEUx9r2BaqWjuc+Jn7tqE/7OBU1f484+dZ9nTWNI8Y0D+SBY7wyZNnX S9RbUHQkTa8s6m6Ckw8pxn+tBShqBhFnZInBL0RkWDBwucMC4AOoygjDnEtNjnARQ2+8 7Deo0wyL/sWByDnDBfF5qLZRCDVmla89Lt5vVKY/oI6Oip8r14Itj/gwiFCrg5NE1UL3 AzRRnGKtQBDVJWlfniSvtXZstQoCjBDBob7m0oXy+SWXfAIWPrwrtuu5oswJagvMlXTp z2Bxfr3x5J6UXvVMIl0L+dDApv2neWwaqMjMdY29Qsdf+OZRznACkBVeF7N8W79evitw 5Hgg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F7UoYMLo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7735-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7735-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c26a0d8si160729405ad.594.2024.05.16.01.26.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 01:26:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7735-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=@kernel.org header.s=k20201202 header.b=F7UoYMLo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7735-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7735-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 87470283128 for ; Thu, 16 May 2024 08:25:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1B8C27269; Thu, 16 May 2024 08:25:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="F7UoYMLo" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 9CC7D80031 for ; Thu, 16 May 2024 08:25:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715847918; cv=none; b=AiEe5I0IqAhqfblpaL2ylll1fGwdC0NU6zECeHNCkQpb/nvrO5+lJ4TDKTK48/FfD0Vg+n+tzLNDlE8OYcsbwj6eKYv4tfQr3xgQM6Ug8Rf18LpaLZEmTt8t2l4bMR8T8O6ppLvgW2KrSm8BytxrXESy7g4ltdbl4jmKXANLo/4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715847918; c=relaxed/simple; bh=6FvXY67QijEXcpeNfgnrirFNHmtBhw7HjQZnfRwkU0Q=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=gHCnRQ2ayqbbZIzvZCe5U9BiYMMLEmdkQElIOZTl2FGayJlQZ3JR5t752ooUh4HTSjqANBClsP3aCZUozp2x2HyqpDJyco1qDw05WGTw9z4BuEhnTCrPhFOjHKzax42AaWUWa+nG37uXR77h8Ij2UlTm/Eh09odCB9wT/xmDPms= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=F7UoYMLo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 821F7C113CC; Thu, 16 May 2024 08:25:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715847918; bh=6FvXY67QijEXcpeNfgnrirFNHmtBhw7HjQZnfRwkU0Q=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=F7UoYMLoQC/wmnVWcHSCuF7ry1RkiLRgZ95wPAEVWBgbb+mv2bnMqEvzTivY3rKpP F4X5CnmsypB8q03QoMDR8jBpFGaRmLPkzMl8tRYhR/s49fRqD89pPQQvP243UgDHHE WddvU2NcOY3AlflgL6HKFol5zPpqn/+Bh0Jp13YAf/lh8VhuGsgmBAZcTX2jC0oqoX xTqfZxGtpfr9dIAG2nnOTVAI9NI6Ylcg9BhhCrhpfCN0vnT6zn56KzcjiyFoiw5NmE tQoWE/HA+DiIXWiwleoXJOa4eiGLdByzgAvVA92BtC8FlGeROCo58z7ywL1nFMI4K3 zlQcoM2ZULitA== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2] wifi: ath12k: Fix Tx Completion Ring(WBM2SW) Setup Failure From: Kalle Valo In-Reply-To: <20240510070427.206152-1-quic_nithp@quicinc.com> References: <20240510070427.206152-1-quic_nithp@quicinc.com> To: Nithyanantham Paramasivam Cc: , , Nithyanantham Paramasivam User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <171584791537.2781522.14910135960105060836.kvalo@kernel.org> Date: Thu, 16 May 2024 08:25:17 +0000 (UTC) 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: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 > > Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices") > Signed-off-by: Nithyanantham Paramasivam > Acked-by: Jeff Johnson > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 0ce9ab2785e4 wifi: ath12k: Fix tx completion ring (WBM2SW) setup failure -- https://patchwork.kernel.org/project/linux-wireless/patch/20240510070427.206152-1-quic_nithp@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches