Add a debugfs entry to trigger firmware reset manually, and then SER (System Error Recovery) will catch the error and dump memory and backtrace before calling ieee80211_restart_hw(). During development of this feature, we found some issues related to SER, so fix them in this patchset as well. Zong-Zhe Yang (8): rtw89: ser: fix CAM leaks occurring in L2 reset rtw89: mac: move table of mem base addr to common rtw89: mac: correct decision on error status by scenario rtw89: ser: control hci interrupts on/off by state rtw89: ser: dump memory for fw payload engine while L2 reset rtw89: ser: dump fw backtrace while L2 reset rtw89: reconstruct fw feature rtw89: support FW crash simulation drivers/net/wireless/realtek/rtw89/cam.c | 14 +- drivers/net/wireless/realtek/rtw89/core.c | 5 +- drivers/net/wireless/realtek/rtw89/core.h | 38 ++- drivers/net/wireless/realtek/rtw89/debug.c | 70 +++-- drivers/net/wireless/realtek/rtw89/fw.c | 89 ++++++- drivers/net/wireless/realtek/rtw89/fw.h | 23 ++ drivers/net/wireless/realtek/rtw89/mac.c | 32 ++- drivers/net/wireless/realtek/rtw89/mac.h | 10 + drivers/net/wireless/realtek/rtw89/mac80211.c | 4 +- drivers/net/wireless/realtek/rtw89/pci.c | 29 +++ drivers/net/wireless/realtek/rtw89/pci.h | 1 + drivers/net/wireless/realtek/rtw89/phy.c | 2 +- drivers/net/wireless/realtek/rtw89/rtw8852a.c | 1 + drivers/net/wireless/realtek/rtw89/ser.c | 245 +++++++++++++++++- 14 files changed, 516 insertions(+), 47 deletions(-) -- 2.25.1