mbox series

[0/8] wifi: rtw89: support firmware secure boot for WiFi 6 chips

Message ID 20241030022135.11688-1-pkshih@realtek.com (mailing list archive)
Headers show
Series wifi: rtw89: support firmware secure boot for WiFi 6 chips | expand

Message

Ping-Ke Shih Oct. 30, 2024, 2:21 a.m. UTC
rtw89 has supported firmware secure boot for WiFi 7 chip, and this
patchset is to support WiFi 6 chips.

Basically flow of firmware secure boot is:
1. read efuse to determine if hardware module need firmware secure boot
   (Patches 1~3 adjust existing code and add new foramt)
2. select key data and relocate firmware content
   (Patches 4, 6 and 7 adjust existing code to support new format)
3. download firmware

Remaining patches 5 and 8 are to set and unset registers for the case of
firmware secure boot. Both don't affect original behavior.

Ping-Ke Shih (8):
  wifi: rtw89: efuse: move reading efuse of fw secure info to common
  wifi: rtw89: efuse: move recognize firmware MSS info v1 to common
  wifi: rtw89: efuse: read firmware secure info v0 from efuse for WiFi 6
    chips
  wifi: rtw89: fw: shrink download size of security section for RTL8852B
  wifi: rtw89: fw: set recorded IDMEM share mode in firmware header to
    register
  wifi: rtw89: fw: move v1 MSSC out of __parse_security_section() to
    share with v0
  wifi: rtw89: fw: use common function to parse security section for
    WiFi 6 chips
  wifi: rtw89: mac: no configure CMAC/DMAC tables for firmware secure
    boot

 drivers/net/wireless/realtek/rtw89/core.h     |   5 +-
 drivers/net/wireless/realtek/rtw89/efuse.c    | 150 ++++++++++++++++++
 drivers/net/wireless/realtek/rtw89/efuse.h    |   2 +
 drivers/net/wireless/realtek/rtw89/efuse_be.c |  52 +-----
 drivers/net/wireless/realtek/rtw89/fw.c       | 109 ++++++++++---
 drivers/net/wireless/realtek/rtw89/fw.h       |   5 +
 drivers/net/wireless/realtek/rtw89/mac.c      |  27 +++-
 drivers/net/wireless/realtek/rtw89/mac.h      |  12 ++
 drivers/net/wireless/realtek/rtw89/mac_be.c   |   2 +
 drivers/net/wireless/realtek/rtw89/reg.h      |   2 +
 drivers/net/wireless/realtek/rtw89/rtw8922a.c |   3 -
 11 files changed, 291 insertions(+), 78 deletions(-)