OSDN Git Service

wifi: rtw89: refine packet offload handling under SER
authorZong-Zhe Yang <kevin_yang@realtek.com>
Tue, 16 May 2023 08:24:41 +0000 (16:24 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 25 May 2023 16:10:58 +0000 (19:10 +0300)
commit8b21c08ef7df41aa615439beac323a7b3b1df0e6
treebc3b31cf1b2ced0035fbeaabea92b377b663e367
parentb79a84fbbdb0a715b130ab470c241db211539dfb
wifi: rtw89: refine packet offload handling under SER

H2C of packet offload needs to wait FW ACK by C2H. But, it's possible
that packet offload happens during SER (system error recovery), e.g.
SER L2 which restarts HW. More, packet offload flow isn't deferrable.
So, the H2C wait may get `ret == 1` (unreachable).

However, the logic FW deals with packet offload is simple enough, just
clone content. It means that as long as the H2C is issued successfully,
the thing will succeed sooner or later. Therefore, after we add a debug
log when receiving ACK to packet offload, it would be acceptable that
during SER, packet offload don't really wait for ACK. And, if debugging,
we can still check its debug logs. Besides, we can expect that if we see
SER before receiving ACK to packet offload, those debug logs of the ACK
have a time difference.

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/20230516082441.11154-4-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/fw.c
drivers/net/wireless/realtek/rtw89/mac.c