]> www.infradead.org Git - linux.git/commit
wifi: rtw89: 8922a: dump MAC registers when SER occurs
authorChia-Yuan Li <leo.li@realtek.com>
Mon, 4 Dec 2023 08:07:50 +0000 (16:07 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 7 Dec 2023 16:22:12 +0000 (18:22 +0200)
commit6f8d36552bab7dc83d8aba89311d6039c53eb6a1
treedcba81ca3761ec038f80c1c43b11aae200ed53f6
parenteeb8cbb58b82904442a6c05832b97d7d27b3c48b
wifi: rtw89: 8922a: dump MAC registers when SER occurs

To diagnose the reason why firmware or hardware get abnormal, add to dump
MAC registers related to counters and interrupt masks. With these values,
people can classify problems and check if registers values are unexpected,
and then correct them. However, it could possible false alarm because
firmware triggers this SER event by wrong conditions that we should
correct it at firmware or register settings.

In field, SER might happen under special conditions, and very hard to
happen again, so dump lots of registers to provide rich information to
catch the problem.

Signed-off-by: Chia-Yuan Li <leo.li@realtek.com>
Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231204080751.15354-5-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/mac.c
drivers/net/wireless/realtek/rtw89/mac.h
drivers/net/wireless/realtek/rtw89/mac_be.c
drivers/net/wireless/realtek/rtw89/pci.c
drivers/net/wireless/realtek/rtw89/pci.h
drivers/net/wireless/realtek/rtw89/reg.h