Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5014274rdb; Tue, 12 Dec 2023 16:52:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IGuybDH/jQ5MWtUERM1W4+QSaaTnlvI69DYF0zVJkMcoQzgqteEnSl9SWNPBImw95BQH+KZ X-Received: by 2002:a05:6e02:219d:b0:35d:66dd:ca6b with SMTP id j29-20020a056e02219d00b0035d66ddca6bmr11315660ila.7.1702428748394; Tue, 12 Dec 2023 16:52:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702428748; cv=none; d=google.com; s=arc-20160816; b=ZVFGcxRSpeJDFAb9ku6KdhCjUJYuBNOF/vPLEGIrwdnurHKdinPFsvYWPcNA4529jv wJ8I/baM6rxKNnBVY+Bv1aixlBxoxJCVmrYGd4725iQ4yTcZIgyBo3yPytAJybVLmoSK XBOUo0cZuQ8YMhCab4IKKMIo3+NqHE+T+nPQfVzSbA9n3EC613j4cVHmqy51B9gVR1oq xIAWw50n7ceGCoR11PXwwTx5aKIshrYEh4Xr0j3mqMwDjAQnkFghQ/XoT/mct1QLu+4O 6IC3pajEN1sjZwYJIvddlZmXw9ed4Ha5pPEr3K10Q7z4v4H9euJmVOi2l0QA9ujgrkYp OgfA== 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=wpU2uJMvO7J3HHsdkw5t+Nk9c24fP47oM4ldSWB6z84=; fh=119R0DZRwIns1LRpqAK2A6izyPVjL4TEe6VydCwW0T8=; b=x7gKp2mINgbbMRQbUo1VAdVdOsoZ7tCt+eIfqkq6wBEO9GsUNw3MNyKdKt8mzzvFr7 kxu/LPsVzw/S9Ij66OF9G2ZCdJfrIzQ8tDFFPlCh0pO64WFaH2sopTcKrc2q9hzTF3mJ xhemtTWAfAQ5UovkIDLm+ZZ3CfbIPkMHfZ7iU5al9gs6FK2FpEc55zUKAVApODBl6yND cVnyM9744NbRAR312sFAROXmnqzmgqYDhVsvSH/vH2rdlOP0jDNnZmKYyzCA0C1gc6DO krphl9izwfhd9ulmCXpn+gIyvpsIMpdd4k4gSOF2JaDaCYxDvuHnwZ9o8k/EFyZ1tJcW X7Sg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-719-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-719-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 v12-20020a65568c000000b0057942bfab4dsi8244434pgs.395.2023.12.12.16.52.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 16:52:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-719-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-719-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-719-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 455DFB20E7B for ; Wed, 13 Dec 2023 00:52:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 13DCFA50; Wed, 13 Dec 2023 00:52:20 +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 3FA90A0 for ; Tue, 12 Dec 2023 16:52:15 -0800 (PST) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3BD0q7IR13838288, 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 3BD0q7IR13838288 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Dec 2023 08:52:07 +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; Wed, 13 Dec 2023 08:52:07 +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; Wed, 13 Dec 2023 08:52:07 +0800 From: Ping-Ke Shih To: CC: Subject: [PATCH v2 0/6] wifi: rtw89: add/modify three fw elements and related RFK log Date: Wed, 13 Dec 2023 08:50:48 +0800 Message-ID: <20231213005054.10568-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 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. v2: - rebase to top of wireless-next to avoid conflict of patch 5/6, because another patchset change fw.h nearby. 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