Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp946089rdb; Wed, 6 Dec 2023 04:46:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHZgMkSX1p2OWObL5WVnnEncRXCimZrS5Xi88S+Z+c4H/FiEOrOFw/ozK6xwF1s57Q3hRlq X-Received: by 2002:a05:620a:136e:b0:77e:fba3:3e75 with SMTP id d14-20020a05620a136e00b0077efba33e75mr1050925qkl.62.1701866778894; Wed, 06 Dec 2023 04:46:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701866778; cv=none; d=google.com; s=arc-20160816; b=hHQZEg2qtmZQfuluv82v946rSiyGlNjocezF1C5dsOulKtaUBelOEuvJvtFCQJSyYM DpaxQL1M89wvvqO3BU9NhYAQGO5onc6DX22gfk34who5nmcqs1gTIlTnKQuqx9HcIdpl SGegDBxPef2CWJETxEQp+aZhrNgathM21lnk1ywVaAyMlElfRs0jU8ZuE2EEYcpB6xe4 6UYuemF5Du3WPQ9ZwdO3SFqUDa6RCZTNYKlA939SYxQlRh/bACIhewN74E5MDKnpLlQX tKnnGBW8vMOIpPfMIa9dzkt+S9+i00kQGpRS9G1p0M43kb2M1SAIWhZPVJHKFMsRTmOL gi/Q== 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=SLGlOHp94WH7tWGu7ok/0/p1xbOWoANUAHJgtuKV2b4=; fh=119R0DZRwIns1LRpqAK2A6izyPVjL4TEe6VydCwW0T8=; b=QFkqVD8w2hkGVrFgaofZBoYG1j69KEOInPN26u/QN7L8gf+nfv0GOjLelSC6aiUF1x AYi7OLpmBwhOs9HfCJi00/7ZlltVlIVseYFT6fDmoO0pZ3ob/QxQuHXsqsBdYi9nAiK3 MP8GyuXncjocSeP9ElRJGY4H2A+hpx2pubH1OX4TEfn4C5yYyKbrN37ftxUoA/z5bLEE +8L8SpcBaGhWmiUKhgSn090rA8+guFnLP86ljEKNJXoaAJNYOp2afKz1DRmdvB7xcKx6 w0Z5AAHAriCBKLyS6aDh+LLQYuXi7EuuOq6aDyCb64vDuzHsXn+0Cd0+xZ/g0PXgFVGz KLBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-490-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-490-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bs37-20020a05620a472500b0077dc90f19c3si14533284qkb.312.2023.12.06.04.46.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 04:46:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-490-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-490-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-490-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 27E2E1C20B93 for ; Wed, 6 Dec 2023 12:46:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 78C763454F; Wed, 6 Dec 2023 12:46:17 +0000 (UTC) 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 63CB91BD for ; Wed, 6 Dec 2023 04:46:14 -0800 (PST) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3B6CjxVU33602879, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 3B6CjxVU33602879 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 6 Dec 2023 20:45:59 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Wed, 6 Dec 2023 20:46:00 +0800 Received: from [127.0.1.1] (172.16.20.124) 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; Wed, 6 Dec 2023 20:46:00 +0800 From: Ping-Ke Shih To: CC: Subject: [PATCH 0/6] wifi: rtw89: add/modify three fw elements and related RFK log Date: Wed, 6 Dec 2023 20:44:42 +0800 Message-ID: <20231206124448.10537-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 X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback Patches 1/6 to 3/6 are to add/modify three firmware elements. First is to add an new element to add TX power track tables that helps to adjust TX power according to increasing/decreasing thermal value. Second is to modify existing element of BB MCU firmware, because we need to add a field to point out hardware version. Since we have not released firmware yet, no need to process backward compatible thing. The third patch is to add formatted string of firmware C2H events triggered by firmware RFK (RF calibration) to help debugging. When RFK is running in firmware, it sends logs with formatted string ID via C2H events, and then patch 6/6 uses the ID to find corresponding formatted string as first argument of printf() with fixed four arguments. The remaining patches are to handle the C2H events and print out RFK status or log in plain text. Ping-Ke Shih (6): wifi: rtw89: fw: load TX power track tables from fw_element wifi: rtw89: fw: add version field to BB MCU firmware element wifi: rtw89: load RFK log format string from firmware file wifi: rtw89: add C2H event handlers of RFK log and report wifi: rtw89: parse and print out RFK log from C2H events wifi: rtw89: phy: print out RFK log with formatted string drivers/net/wireless/realtek/rtw89/core.h | 6 + drivers/net/wireless/realtek/rtw89/fw.c | 110 +++++++- drivers/net/wireless/realtek/rtw89/fw.h | 144 +++++++++++ drivers/net/wireless/realtek/rtw89/phy.c | 300 ++++++++++++++++++++++ drivers/net/wireless/realtek/rtw89/phy.h | 24 +- 5 files changed, 581 insertions(+), 3 deletions(-) -- 2.25.1