From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795031318; b=IdDus2R5cW6je1yHnWDPYtX2ytMzjG6yQHbOSY/nsSNfR5KptT6sJ+kcUlfgh9yFI1Kd STDxouAjT/q5ylQnhmS34g2pLfiEMwVgSkOkx8tRyIUkmAjNPtg2ytE02IzHRMgaLTY8F bwM5FrUv85WdJPdpewiQ4welQ5QFkaK0g22eDkIbv2CMZEIs7z+acJAxRjscVLzFISZwC vPEiI2i1Z0s7uknW7n71X91lZI1V8AXMRRhmouLQ7qc5W+s6fBFWo+anY3nJ4PsfogYCQ +dGhCRx0N/cc7ixgCwLy8N46T2+xaR1skj0I3jeXISFDtSkSI+YA9UU8/BNnIRS9w4g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795031318; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=lmHUdhOvTlOySw/c7idsEPcoPpnTsHyEh6SUXW/1x0I=; b=PBTCHMo0nlzCOG6k28InSreu9sCSvN2rsD7vsa4iXPqEaCEfQZwAdh+LVgx4zRvawuXn 84cSldWf983nZl3aAUBaDQcXvAPfL+dSj5dbmO+enBJvcLf1tRu5EnGdFm58r/fnwaBxC oWKtEw5qmUJjUS1A9fwUHp0+j32EGWaY6Prxoil6EKZx8lSJZVCt1ZeePATtcf5nesMXf xUSXN45mv8iPjyA27KWWu3DbcuJaT9mK6Czqan5ZzxK+hkZX5qsnabZ0QEvqiX3B6N4I3 IK47bewUj5O6a+QKBNTsgsKFqOP2cXlSXH2XSNV5k8YXyYMN2bqNQc/O3mzDJxV83Pw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=rBEWdZl1; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4246B606A325; Wed, 18 Nov 2026 19:48:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=rBEWdZl1 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9AAD51F000C4; Wed, 18 Nov 2026 19:48:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795031318; bh=lmHUdhOvTlOySw/c7idsEPcoPpnTsHyEh6SUXW/1x0I=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=rBEWdZl1rSSsOzcJAqL93Nq7XKl10FlsboYAaCKqwGHsTxiilybyaE+RMP1D4pEUO ZaPW6f6JGTYMimgXd/qT0QLCe1rfeJuFh1BukzmELFLXzt4SOtyyMT6y1/RZzm3l3F niRVt+RYK2SgvgWfzPiwIjOPM4bjUgQ4zSDCqunE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Felix Fietkau , Sasha Levin Subject: [PATCH 6.12 0974/1756] wifi: mt76: mt7996: fix PLE free page and AC queue register offsets Date: Wed, 18 Nov 2026 15:51:41 +0100 Message-ID: <20261118150048.918237420@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150007.957976754@linuxfoundation.org> References: <20261118150007.957976754@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Felix Fietkau [ Upstream commit c33af2e4622baafc56c565a13823f6b89d3f50db ] The PLE register map in the MediaTek vendor driver places the free page counter, the free page head and tail, and the HIF group page status at 0x3a0, 0x3a4 and 0x3a8. The driver reads them at 0x380, 0x384 and 0x388, and the vendor map has the band 1 TXCMD queue empty status at 0x388. The same map has 0x100 bytes per AC for the station queue empty bitmaps, with the MT7992 extension register at offset 0x80. The driver uses 0x80, which cannot hold the 34 registers per AC of MT7996, so the hw-queues file reads AC1 to AC3 of a station from the wrong register. Use the offsets of the vendor register map. Fixes: 98686cd21624 ("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices") Link: https://patch.msgid.link/20261006205936.669125-25-nbd@nbd.name Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7996/regs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/regs.h b/drivers/net/wireless/mediatek/mt76/mt7996/regs.h index 47b429d8bfbe5..5e0342dce630c 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7996/regs.h +++ b/drivers/net/wireless/mediatek/mt76/mt7996/regs.h @@ -121,12 +121,12 @@ enum offs_rev { #define MT_FL_Q2_CTRL MT_PLE(0x3e8) #define MT_FL_Q3_CTRL MT_PLE(0x3ec) -#define MT_PLE_FREEPG_CNT MT_PLE(0x380) -#define MT_PLE_FREEPG_HEAD_TAIL MT_PLE(0x384) +#define MT_PLE_FREEPG_CNT MT_PLE(0x3a0) +#define MT_PLE_FREEPG_HEAD_TAIL MT_PLE(0x3a4) #define MT_PLE_PG_HIF_GROUP MT_PLE(0x00c) -#define MT_PLE_HIF_PG_INFO MT_PLE(0x388) +#define MT_PLE_HIF_PG_INFO MT_PLE(0x3a8) -#define MT_PLE_AC_QEMPTY(ac, n) MT_PLE(0x600 + 0x80 * (ac) + ((n) << 2)) +#define MT_PLE_AC_QEMPTY(ac, n) MT_PLE(0x600 + 0x100 * (ac) + ((n) << 2)) #define MT_PLE_AMSDU_PACK_MSDU_CNT(n) MT_PLE(0x10e0 + ((n) << 2)) /* WF MDP TOP */ -- 2.53.0