Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp876573rdh; Thu, 23 Nov 2023 23:18:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCPhwx2ao2JiuJiCSaWZOUFug9QqGfU3eo7jPnf8CYEdVMuZGKV/PI+Ty9CAQPAzLzhhXi X-Received: by 2002:a17:90a:ea15:b0:285:25ab:257e with SMTP id w21-20020a17090aea1500b0028525ab257emr2467164pjy.12.1700810303705; Thu, 23 Nov 2023 23:18:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700810303; cv=none; d=google.com; s=arc-20160816; b=FT23Gps/saUVhMlmljQoY1+2q/Y8Cz6oHbI37ThqzMU5zFfRidACH9sYEWyXjeu8zM ibWG/qroCHM/FOXXdbEs9mN/4UgQnM3lQTJt1SUyT+c4geuOw1nPaESKQlmbFjsa2faL ME5gZ3B2rvHkUyLU+lhoAedoWbuKFPqPnBlVHCS1Fr3jxVfupk3jRgJvmyP2MV62C53n be7APpxopPdJT1HdsEnVVzlN4sC+fuJQovqYxeuL0d8fVkxpX3kwQk3srsFVxCSQSRYH zNdCs1NzoJfZHA/tjZv/VbmqZlVF0hCGGq9nENCVvsIJCNG7uXGCbEPQydG0rEinlKeX /t5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=8uNhNh6lXGZYXftVUMYV6ef7s8XzZw1JD6HLN0FJIw0=; fh=TSuyMlfOTyCx0zt3ucDyTttlN37QPvmvgk5pf20rBgY=; b=il1TNNyvkUYjI55sQMK6alft17/ERZlZUkxACpwIDIk7mFJbP9YwyW42tHwQUNKCgj +I6cQ6kakebVl5YwvTZ089W+TNhO9HBuDpRyQjAqyNWFflOZ4jHcy0CMhj8LWrlBILuk KB1XeF9Z+gSR1T1HbcsKuBI+jUMpm3PPdPf6QSSpKerY8UH48OJykOSbNm0Hb32R9cUe cHaZGAAU5K4Nz/KnvowIAL3wpFvMBpAZ0WsxTIiyYuGWBgLLNE3E8NifYyKytj0cPKgi SqAnN1DMN7Ve+fcUydEnnYswAkIpz4hcXNHf4j5qv4YAfN9/oTXvB5qMRA3YfVwTg638 6CBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-25-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-25-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id u13-20020a17090adb4d00b0028528a3aab7si3465189pjx.178.2023.11.23.23.18.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 23:18:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-25-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-25-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-25-linux.lists.archive=gmail.com@vger.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A83E0B20C0D for ; Fri, 24 Nov 2023 07:18:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 849B863A5; Fri, 24 Nov 2023 07:18:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=none X-Original-To: linux-wireless@vger.kernel.org Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3F7BD6C for ; Thu, 23 Nov 2023 23:18:11 -0800 (PST) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3AO7I3Vv83551102, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 3AO7I3Vv83551102 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 24 Nov 2023 15:18:03 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Fri, 24 Nov 2023 15:18:03 +0800 Received: from [127.0.1.1] (172.21.69.94) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Fri, 24 Nov 2023 15:18:03 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH 0/8] wifi: rtw89: 8922a: configure hardware engines and quota Date: Fri, 24 Nov 2023 15:16:55 +0800 Message-ID: <20231124071703.132549-1-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback The quota is allocation of chip internal buffer size assigned to certain hardware engines, such DLE (data link engine), PLE (payload engine) and so on. Configure the quota according to operation modes, for example, download firmware and normal mode. In the future, we will add more one operation mode to support MLO for WiFi 7 chip. To support that mode, we need more works to adjust code, so defer to add quota along with that work. Ping-Ke Shih (6): wifi: rtw89: 8922a: extend and add quota number wifi: rtw89: mac: add to get DLE reserved quota wifi: rtw89: add reserved size as factor of DLE used size wifi: rtw89: mac: move code related to hardware engine to individual functions wifi: rtw89: mac: use pointer to access functions of hardware engine and quota wifi: rtw89: mac: functions to configure hardware engine and quota for WiFi 7 chips Zong-Zhe Yang (2): wifi: rtw89: refine element naming used by queue empty check wifi: rtw89: mac: check queue empty according to chip gen drivers/net/wireless/realtek/rtw89/core.h | 32 +- drivers/net/wireless/realtek/rtw89/debug.c | 5 +- drivers/net/wireless/realtek/rtw89/mac.c | 267 ++++++++--- drivers/net/wireless/realtek/rtw89/mac.h | 64 ++- drivers/net/wireless/realtek/rtw89/mac_be.c | 437 ++++++++++++++++++ drivers/net/wireless/realtek/rtw89/reg.h | 294 ++++++++++++ drivers/net/wireless/realtek/rtw89/rtw8851b.c | 4 +- drivers/net/wireless/realtek/rtw89/rtw8852a.c | 4 +- drivers/net/wireless/realtek/rtw89/rtw8852b.c | 4 +- drivers/net/wireless/realtek/rtw89/rtw8852c.c | 4 +- drivers/net/wireless/realtek/rtw89/rtw8922a.c | 52 +++ 11 files changed, 1085 insertions(+), 82 deletions(-) -- 2.25.1