mbox series

[v2,0/6] wifi: rtw89: add/modify three fw elements and related RFK log

Message ID 20231213005054.10568-1-pkshih@realtek.com
Headers show
Series wifi: rtw89: add/modify three fw elements and related RFK log | expand

Message

Ping-Ke Shih Dec. 13, 2023, 12:50 a.m. UTC
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(-)