From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9CFCFC982D0 for ; Thu, 17 Sep 2026 06:48:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:content-type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=38XCC3pzzBeGcbj7BSYYe61HHKXklyzXx0gZrWcUPq4=; b=aNNpHLKL0PkeoYz20WsHkIk8iT b0y2Hl58HQfh1zWWNBzGgyDJ+8oxn602gmQYlpSH5bSekHs/v7eE0RAmFabw13eUbkkih9lzoeGZw AsM6RVrhJ0n0fYGieYylC5Jx+bHKsBvJMHH3n3j3laIwNhYeQpY0BV546w3+By1KN8s55Mm3b41sz GSCMaDM6RsBXJ30Onq9x8+nBiuMWsFnf3fxnWYud6Ou1wlS+kNczGwSbcUAt+7t1AtydaLr9Dle0t Cye8hpQNd1F0TpEwnPImj1GAada0ZWO2dJx2TFKUOgNZzf7FIQp5QbeMFymUT1qFFEK98JDEZY1sG +P0TdOpw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x75vJ-0000000AhGK-1vYZ; Thu, 17 Sep 2026 06:48:45 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x75vG-0000000AhF1-4BFI for ath11k@lists.infradead.org; Thu, 17 Sep 2026 06:48:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1789627721; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=38XCC3pzzBeGcbj7BSYYe61HHKXklyzXx0gZrWcUPq4=; b=Jzobo6Fuy5KPl6qWm7eL4sMSW3FqLGpnreIn+x/AO9Y9qSrupK1/4EAdq0W6fmw6nPFrwD /KLY41DsBYCQGTiYl341uvptMoYjaqenLD5c6u+ivDURPq8n8IJG0zLTR9fYrUTqSzyxWI h65TeyOXtcYOqm3ZDXKY4lPBhDtUsqs= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-623-L0mNYR8MM02UZed6OsDEtA-1; Thu, 17 Sep 2026 02:48:38 -0400 X-MC-Unique: L0mNYR8MM02UZed6OsDEtA-1 X-Mimecast-MFC-AGG-ID: L0mNYR8MM02UZed6OsDEtA_1789627717 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id F405E18CD2FA; Thu, 17 Sep 2026 06:48:30 +0000 (UTC) Received: from fedora.redhat.corp (headnet05.pony-001.prod.iad2.dc.redhat.com [10.2.32.117]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B8AA23003EED; Thu, 17 Sep 2026 06:48:28 +0000 (UTC) From: Jose Ignacio Tornos Martinez To: jjohnson@kernel.org Cc: ath11k@lists.infradead.org, ath12k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Jose Ignacio Tornos Martinez Subject: [PATCH v7 0/4] ath11k/ath12k: implement TX flow control Date: Thu, 17 Sep 2026 08:48:21 +0200 Message-ID: <20260917064825.12747-1-jtornosm@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-MFC-PROC-ID: aH7iGslWOTG6fCySwFjod5z36VIP3nR1YiaVJ_96mqU_1789627717 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260916_234843_113762_2E323651 X-CRM114-Status: UNSURE ( 5.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath11k" Errors-To: ath11k-bounces+ath11k=archiver.kernel.org@lists.infradead.org This series implements custom wake_tx_queue operations for ath11k and ath12k drivers to prevent hardware ring overflow issues under heavy traffic. Without proper flow control, both drivers experience -ENOMEM errors ("failed to transmit frame -12") when the hardware TCL ring fills up. Additionally, ath12k can hang under sustained high throughput. These issues are more commonly observed in VMs with PCIe passthrough but also occur on bare metal systems. The implementation follows the pattern used in the iwlwifi driver, adapted for ath11k/ath12k hardware ring architecture, checking hardware ring space before dequeuing packets from mac80211. Testing shows stable operation with eliminated -ENOMEM errors, no hangs, and improved throughput under heavy traffic conditions. Jose Ignacio Tornos Martinez (4): wifi: ath11k: use queue mapping for WCN6750 ring selection wifi: ath11k/ath12k: remove skb parameter from get_ring_selector wifi: ath11k: implement custom wake_tx_queue with flow control wifi: ath12k: implement custom wake_tx_queue with flow control v7: No modification in patches 1 and 2 Address comments from Jeff Johnson: Patch 3: Add the defensive pattern _bh in both spinlocks (ath11k) Patch 4: Add the defensive pattern _bh in both spinlocks (ath12k) v6: https://lore.kernel.org/all/20260811172435.616200-1-jtornosm@redhat.com/ -- 2.49.0