From mboxrd@z Thu Jan 1 00:00:00 1970 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 76F4E42A9B; Tue, 27 May 2025 17:49:47 +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=1748368187; cv=none; b=GbmvD9N1vbCnd0MxsppBiSHD03rTI3DpRHXZD2g4a/stGIuerDggEP7KLkYFcoGRfpCVBXkdptpehx+uZr7a6xu7Bi/BxvY2bJA+qAj8qbDBI12EYreErnaZSbZPp4DvQlhrSgk9A829IkNxThjdR82Rl2+PutRWs57gZBmn320= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748368187; c=relaxed/simple; bh=E4SJb0we//xUNs+avCXnn2W4Y8FN7yRA2RxJ6iocjd4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JFWu9GU2edvZ5PRjNJqRYVaApNtyw0H7yDjh32wM1TZMfFIE/XhyriIFuWU0SoxBL45pznSjUw353QTaqhJNV4KUmlLGBnEQwEj6jKkwwtLOfxsP9lpVwbRjyzbBflFOZ8VAjD2CkJNrN2NU1NXN6oD2Z4EuelJgyLcd5j+5ZQw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eJSf/atp; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="eJSf/atp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC419C4CEE9; Tue, 27 May 2025 17:49:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748368187; bh=E4SJb0we//xUNs+avCXnn2W4Y8FN7yRA2RxJ6iocjd4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eJSf/atpv4rbuYRQysnogCEQN8Q93xXEW2rSEaaXjdIJPTQ4J5NBSvxkwpJniklQO 1aUVdEl7s3ETw96zfBQ1ZtR7vswJap+Pp8f8z15YhaH5irheIO+wLde/irYAxVOZMi IbtXODgFf5Kx5o/oh0blRNURnQrZs+Bjba1m1iGg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, P Praneesh , Jeff Johnson , Sasha Levin Subject: [PATCH 6.14 609/783] wifi: ath12k: Fix end offset bit definition in monitor ring descriptor Date: Tue, 27 May 2025 18:26:46 +0200 Message-ID: <20250527162537.952677958@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250527162513.035720581@linuxfoundation.org> References: <20250527162513.035720581@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: P Praneesh [ Upstream commit 6788a666000d600bd8f2e9f991cad9cc805e7f01 ] End offset for the monitor destination ring descriptor is defined as 16 bits, while the firmware definition specifies only 12 bits. The remaining bits (bit 12 to bit 15) are reserved and may contain junk values, leading to invalid information retrieval. Fix this issue by updating the correct genmask values. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1 Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 Signed-off-by: P Praneesh Link: https://patch.msgid.link/20241223060132.3506372-8-quic_ppranees@quicinc.com Signed-off-by: Jeff Johnson Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath12k/hal_desc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath12k/hal_desc.h b/drivers/net/wireless/ath/ath12k/hal_desc.h index 7b0403d245e59..a102d27e5785f 100644 --- a/drivers/net/wireless/ath/ath12k/hal_desc.h +++ b/drivers/net/wireless/ath/ath12k/hal_desc.h @@ -2968,7 +2968,7 @@ struct hal_mon_buf_ring { #define HAL_MON_DEST_COOKIE_BUF_ID GENMASK(17, 0) -#define HAL_MON_DEST_INFO0_END_OFFSET GENMASK(15, 0) +#define HAL_MON_DEST_INFO0_END_OFFSET GENMASK(11, 0) #define HAL_MON_DEST_INFO0_FLUSH_DETECTED BIT(16) #define HAL_MON_DEST_INFO0_END_OF_PPDU BIT(17) #define HAL_MON_DEST_INFO0_INITIATOR BIT(18) -- 2.39.5