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 935DC1A3029; Tue, 12 Aug 2025 19:10:09 +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=1755025809; cv=none; b=CiutndRhKRhBIKZOyCWnu23WbOd0894gBvKwafgVkWpvmAL+ROAgsm4gVo0clRKF4cNretXlA8QJ2WBMVzbAI3FCwcYELOzSowShvAMe02c8ExBqVg+3qEdsmoyNKNQBuH/7DnB2t7h5VoOIe9eJeDZlkQH0FLugpU+NiWu+gTo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755025809; c=relaxed/simple; bh=+QnU+4RYyCI9xsf0f+5rFFgHIfBsgVaBniTVtGO+els=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nu8MbVCYTfGAogfF1iqRZBNmdWo0oizVyrM+Bry8aSMCX9zyzh0KY0eEchdMtBfw0Mhg2UKf1uPgrXFVkbYwCfC+Z/ahfxAbYa5OsQ/HrI01JVUb1sHWtCA7FAcFmLxMkCDtU8ryDNaKTPhhEMJGhSg+n91z83STGOYzIvsai2g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BCeLk8dL; 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="BCeLk8dL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03AA2C4CEF0; Tue, 12 Aug 2025 19:10:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755025809; bh=+QnU+4RYyCI9xsf0f+5rFFgHIfBsgVaBniTVtGO+els=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BCeLk8dL4y4xC7ItstPDs6ACHNYUPlTkYREr/tcpvS2w3yQWaz3SGvwk0rG/U40zU iSC32v3y2GX4GDZDmL7u8RzXE6aKUWVOLEOm6t8ybK/WINNAi5lpAWLT+ENXD7Qd/Q 7uRLKXTAuYyiJMqN7mk1rVJDxrF04oRHU2H3Nvg0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, P Praneesh , Vasanthakumar Thiagarajan , Jeff Johnson , Sasha Levin Subject: [PATCH 6.15 117/480] wifi: ath12k: Fix double budget decrement while reaping monitor ring Date: Tue, 12 Aug 2025 19:45:25 +0200 Message-ID: <20250812174402.334905970@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250812174357.281828096@linuxfoundation.org> References: <20250812174357.281828096@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: P Praneesh [ Upstream commit 54c350055b1da2767f18a49c11e4fcc42cf33ff8 ] Currently, the budget for monitor ring is reduced during each ring entry reaping and again when the end reason is HAL_MON_END_OF_PPDU, leading to inefficient budget use. The below mentioned commit intended to decrement the budget only for HAL_MON_END_OF_PPDU but did not remove the other decrement. Fix this by eliminating the budget decrement for each ring entry reaping, ensuring the driver always reaps one full PPDU worth of entries from the monitor destination ring. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.4.1-00199-QCAHKSWPL_SILICONZ-1 Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 Fixes: 394a3fa7c538 ("wifi: ath12k: Optimize NAPI budget by adjusting PPDU processing") Signed-off-by: P Praneesh Reviewed-by: Vasanthakumar Thiagarajan Link: https://patch.msgid.link/20250603103542.1164713-1-praneesh.p@oss.qualcomm.com Signed-off-by: Jeff Johnson Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath12k/dp_mon.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath12k/dp_mon.c b/drivers/net/wireless/ath/ath12k/dp_mon.c index 826c9723a7a6..340a7b3474b1 100644 --- a/drivers/net/wireless/ath/ath12k/dp_mon.c +++ b/drivers/net/wireless/ath/ath12k/dp_mon.c @@ -3528,7 +3528,6 @@ int ath12k_dp_mon_srng_process(struct ath12k *ar, int *budget, ath12k_hal_srng_access_begin(ab, srng); while (likely(*budget)) { - *budget -= 1; mon_dst_desc = ath12k_hal_srng_dst_peek(ab, srng); if (unlikely(!mon_dst_desc)) break; -- 2.39.5