]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: rtw89: debug: support SER L0 simulation
authorZong-Zhe Yang <kevin_yang@realtek.com>
Mon, 15 Sep 2025 06:53:29 +0000 (14:53 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Thu, 18 Sep 2025 01:15:30 +0000 (09:15 +0800)
commite6badd999a87fd48d17929fdd594d016989202e8
treede1afc8957dd0e6367a13941bb447d0f1a88acdf
parent298f39f0d9c3ee381793e7a4ba1f54755e4687eb
wifi: rtw89: debug: support SER L0 simulation

SER (system error recovery) can deal with different crash types by
different levels of processes. Now, add a debug function to trigger
MAC error in purpose for SER L0 simulation/verification. And, extend
dbgfs fw_crash to accept different parameters.

    # simulate MAC error (one kind of SER L0)
    echo 3 > fw_crash

Normally, FW won't report SER L0 cases to driver. Instead, they will
be handled by FW directly. If unfortunately FW handling fails, SER
will rise to L1 and be reported to driver.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250915065329.38911-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/debug.c
drivers/net/wireless/realtek/rtw89/reg.h