Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp409852lqh; Tue, 7 May 2024 03:00:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWstoywT4o2e6dbmr+IS/4aRaptmAuaABi4n1DWpUtkPsCWiIFm9SZq6LArwbSHkyJCmnr1mi8BcKwI9MNSHMwkm7DeaT+dIVO2LX2YFw== X-Google-Smtp-Source: AGHT+IHMPKSV0vvid54XRZd0AJ7EyObqy7uMul4gn0MJ96E7gRvFV2BeGgzTWzZsZysuMHDHt0Oq X-Received: by 2002:a17:902:bd94:b0:1eb:16c9:ba34 with SMTP id q20-20020a170902bd9400b001eb16c9ba34mr11225803pls.40.1715076058628; Tue, 07 May 2024 03:00:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715076058; cv=pass; d=google.com; s=arc-20160816; b=I+6h1KYDV6N/eVyFNKNfupmk3YzGIOucyESi8QhDPzEpgp5pj9KGmARI4Jtqs5aXHa Ble3Xwd/XLJy+S96yAySa84IQzw6CUeJQKFoz8N/72RQIeL7OYfvOov0Zpi0VprInBcW 3VI4Y7Fet/XMrmWPehCXKgHJaNAtjIWDxhrGWLM8BNm+yoy/hNTJxq5Qjrs97T921kOn HlRHYSiPalXyZhrzZfFqgl3bnOZKIWWM1yMv8lf3061HZ0St13Ch8tJnhpsEtlyzJsIl zT4BUDJApYbUiWOSMkbmPVE2qiJnqESsdmFCa3IaAghUAJzwHNjbSjaWVfKFmDGzrK51 pJ0g== 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=Xfs8N4U+vT2MI2nsmlNvcKvzNGT9xPUHbYLxWy/r4hs=; fh=qUO6ZzWofHgXCdGoOoroX8j6OnFZhbBM1wPSwXvEWvk=; b=cTNXD6ZAAoJS0dwNi4HTJBx3Ro/U458tyMA2n/m/t5egFlzyJ8I/sJpBekoJhT46JY nc87e7VkOAY6Wi1N1Za/w2BUelJzLGuvxjHGgHStLtFhmqlFnkzhjsqRBaJT3R71yqhd z/E6hXoDiB2BlXAARB8+0kGzDzCTCj1nqTRVwPrYjUrP0xTw10IxQ+oG1i2r5DopG9pJ 8Uh5AVB7bLe5Oc/xV+M3brurmTAxeyFGN7cwhA7+Xc1wmynRvrz76fPgA41rG2M4ftBz ixx0JLbNX+6VOgxYvjx9xuaBA5fIufep9NoIjan+1rAqJfFvF+YEvDJOos+LMM+FwSkA ugmw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o8MamacX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7275-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7275-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 k8-20020a170902d58800b001e3e41b9f2csi10203325plh.15.2024.05.07.03.00.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 03:00:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7275-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=o8MamacX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7275-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7275-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 AEC51281DE7 for ; Tue, 7 May 2024 10:00:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 12EB8149C6F; Tue, 7 May 2024 10:00:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="o8MamacX" 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 E345114D71E for ; Tue, 7 May 2024 10:00: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=1715076019; cv=none; b=abP5Ql/ORaglRYQfwaQdBhytp1OnXCAlEnmd5VC5nUxSyy708qjLYztDO5WQhuaGoYt4UA4m9/D5M6YdWzB6/AvjrlNWOd1qcz501xldisQzBnvASQNgSGmo6yhNSoAJ+gYyTh7VTDOou6IoHlJrV2suOdxpUk1CbqHmW5viRyc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715076019; c=relaxed/simple; bh=OcSKTZStAaD9u1j/juI/j/X8r7AGIVvhSWiWUCvhUaA=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=tH/RciSYWy8C0DsifwS9W1hFBP4rSj3ms77LWA1tam9EoLL8qsReFsNmfKy+khlAemZzxf3uoJ88mGaOuTqT5AYqaO/9liw+NowcOIexCa4hXdNlXl8Sz2bLMvcVv5ajC/cwYzUq59SYIypJGnMiNqdrqIABJ4Px1BwY57FRmno= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=o8MamacX; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 606F0C2BBFC; Tue, 7 May 2024 10:00:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715076018; bh=OcSKTZStAaD9u1j/juI/j/X8r7AGIVvhSWiWUCvhUaA=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=o8MamacXrpNlPFoEPNXuwJC3ch1F7W7FNc//rfB4KfTBxilGqX/3ovdoirwA5/817 TXRzwR7RX1eUBC5/SW0pgBfWn1gQOxMJTp/0hWtz2MojfA9C839czYOgBKMoGNaUYK PqDbWLsHpjleGnSrzsM0PKi8outTTKOMHFUUT5vTUA5v2xTTmVWuXLhPTO35sEVTR/ 9H5d/X/sZ32A7DiG8s+keYE/dYcEiOvG+pUrLynizeigt9N05r0wLeZbmrZQLAdjy/ 3ksw6PQuveMe1hdp9EbYpYTYHwwSsxcMLbNIBdyksqHBM88eA2IRNiL5RLW0vWpmm3 VpxLFHyb16OmQ== 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: [PATCHv5] wifi: ath11k: skip status ring entry processing From: Kalle Valo In-Reply-To: <20240429073624.736147-1-quic_tamizhr@quicinc.com> References: <20240429073624.736147-1-quic_tamizhr@quicinc.com> To: Tamizh Chelvam Raja Cc: , , Venkateswara Naralasetty , Tamizh Chelvam Raja User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <171507601530.3751691.1245928656021241727.kvalo@kernel.org> Date: Tue, 7 May 2024 10:00:17 +0000 (UTC) Tamizh Chelvam Raja wrote: > If STATUS_BUFFER_DONE is not set for a monitor status ring entry, > we don't process the status ring until STATUS_BUFFER_DONE set > for that status ring entry. > > During LMAC reset it may happen that hardware will not write > STATUS_BUFFER_DONE tlv in status buffer, in that case we end up > waiting for STATUS_BUFFER_DONE leading to backpressure on monitor > status ring. > > To fix the issue, when HP (Head Pointer) + 1 entry is peeked and if DMA is not > done and if HP + 2 entry's DMA done is set, replenish HP + 1 entry and start > processing in next interrupt. If HP + 2 entry's DMA done is not set, poll onto > HP + 1 entry DMA done to be set. > > Also, during monitor attach HP points to the end of the ring and TP (Tail > Pointer) points to the start of the ring. Using ath11k_hal_srng_src_peek() may > result in processing invalid buffer for the very first interrupt. Since, HW > starts writing buffer from TP. > > To avoid this issue call ath11k_hal_srng_src_next_peek() instead of > calling ath11k_hal_srng_src_peek(). > > Tested-on: IPQ5018 hw1.0 AHB WLAN.HK.2.6.0.1-00861-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Venkateswara Naralasetty > Co-developed-by: Tamizh Chelvam Raja > Signed-off-by: Tamizh Chelvam Raja > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 4c2b796be3a1 wifi: ath11k: skip status ring entry processing -- https://patchwork.kernel.org/project/linux-wireless/patch/20240429073624.736147-1-quic_tamizhr@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches