Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp135184lqo; Thu, 16 May 2024 01:19:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVGe8cBBDWPJtjBzEk39SYWBw5DHgTUxJoQyKyIvJARlPSkO0XZHQkYd4Lz3WXdBBj3cGcWp7J9tM9kx+tRQxBScGrmT/HloD9HXczSDw== X-Google-Smtp-Source: AGHT+IF1Pm61T5LMXN1s4DGfo55GCaGTS3Io20EZd6F7jOclMNCxomW6boPHq4u46qsLcjsEoGgL X-Received: by 2002:a05:6a20:321b:b0:1af:b2e5:2a5e with SMTP id adf61e73a8af0-1afde1b6f98mr15923414637.49.1715847598436; Thu, 16 May 2024 01:19:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715847598; cv=pass; d=google.com; s=arc-20160816; b=A821n3Dy+/r56t3FbySb/zl+ZhRk/Y5Es1j9wtRSGDh4JB4tBVEZLlL2x5dJogQ4i2 OuPnntVVAeE60LJEp5+xg5VWRef9j96qPkp3MgjOhDKfahbOZiu6Mc7KGyfAXEVvAaMW +En7RCJ5YG/tqHPqT82GAWr9fL5uocFZy629Dp6SsngIhI5xV7v2tuVd8OffTmTUP8OT bkTeomU2AarFXhvc3ghN4lhMLCxGH/9NJtVPpHX+bmAmuH5/bsgwaJGubaWAYhkUnqvg iaWIcI3E5FrB97MQoOJ1vNL2HvfUpOyUQH4tvzAL4vg8Ru/Y+jv8pTTr7SyWFUkEA+Cd shfg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=hJr+RIgU40Rt1Ch+gpfo8tt8TXKDxuWeyN6UbgcFFP0=; fh=1MucTW8A/ZRWy8MXQChCUNCUuFuhmi1ISB0UlPSs8oc=; b=OzJ2+X4MFG+s8GuKhyUVObsgeq9VZoWyGpbUe/D8uQEHsmnHL/ZRuDn8mGu1GOXQTQ DqbQ43wZOmV/06W6oTEEbOBMgOEwtKVklQrwTWm0OeX3CcVw3okT+tJBaT/DAawCLjNw xHrCmkZWk2/hrzDk9ZfhVwIihKcQf2LxqKJMGtnfA/YOeS85ehZ45AwflyR9q6TJjG5c ttgubN6hKn2foBHw9ZpY8RaoO+dSuhczAtwsqV66nXcmVeUpmE+sN4i1gr4t6aVuS7Lg GIjwIRS3SgXia2nBivXdFv4GA7ERaWd22Ta8fS8QVBZP92B9LBnmWHYGkSt51qGyG2x1 TKMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HdTN5r8j; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7734-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7734-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b670f4e12bsi15047814a91.65.2024.05.16.01.19.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 01:19:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7734-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=@kernel.org header.s=k20201202 header.b=HdTN5r8j; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7734-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7734-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 96AFC282464 for ; Thu, 16 May 2024 08:19:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA9DD6BFBF; Thu, 16 May 2024 08:19:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HdTN5r8j" 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 969F043AD1 for ; Thu, 16 May 2024 08:19:54 +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=1715847594; cv=none; b=ahEh+Iqo3JrnCsiNc3lYdaEio3HSrkZbzsMHeE0nFIGWNJ/EPZ8ayG1YFynEb9zGRqtywn8I582q5QvtmeGtcfhWpPQIa6ZRwBdnJ0sXvdNOXSAyTV9/WLEvnVTrj9JzxHy1O/Kta9tOlHciOxHaWZH5Aaie2r0dLHX2IiBK2jw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715847594; c=relaxed/simple; bh=uKJ0ei/23sbNLAzUj5EOdb5bqG72jG0ee62qjGHzJig=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=IewuRHivBm1mhtoQS1BbsETfloveV6JWtAWWOZ28YC4J3QRyRJWZoLTmjc5ACNj2st8k956tU/bwEgyizymMRK+7AinX/+C3JLw6URKJtwUmVp2OWFKvJ4u6ZH3yE33UKdjxC8oizJCbob/K3Fw4oynRe0VU7twTFB9vym0esEY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HdTN5r8j; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F5A7C113CC; Thu, 16 May 2024 08:19:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715847594; bh=uKJ0ei/23sbNLAzUj5EOdb5bqG72jG0ee62qjGHzJig=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=HdTN5r8jkkIbGg9Dmx7hVJTK19QMOPN8j3PAUeqTyoMta/VUDoIuwVrumsXhUclNX Bj24PQ8/pEFo8QD1EJ94QEC1X0iFk1KkyD4fHsmn/hI1gg3uGsJK1V9OLzK8C1b37d Uevr9ol7rR2g0Sp3lfDUmIy94Y2Y15urZ3YcU/5yrgJC7+bEodoiKmHd9ozJzXbpp9 3WpmBOWPa5Cnz2JXrJsNyKGX4NY60hfK9Tw4139sk9CBK0IyoRBzpINUW6zpYryEv1 J8ZcTNJRFJu4iB+xk2f+IQYPQcub7XmVNaTDtVVQdgCZDEf1Sehia6xUM6kJ/r0FWT GgfkAqgYgyUBQ== From: Kalle Valo To: Jeff Johnson Cc: Nithyanantham Paramasivam , , Subject: Re: [PATCH v2] wifi: ath12k: Fix Tx Completion Ring(WBM2SW) Setup Failure References: <20240510070427.206152-1-quic_nithp@quicinc.com> <13d762da-ad16-43b4-b0ca-15e5e17af5cb@quicinc.com> Date: Thu, 16 May 2024 11:19:50 +0300 In-Reply-To: <13d762da-ad16-43b4-b0ca-15e5e17af5cb@quicinc.com> (Jeff Johnson's message of "Fri, 10 May 2024 10:01:09 -0700") Message-ID: <87zfsqgod5.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Jeff Johnson writes: > 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' Fixed. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches