• Zong-Zhe Yang's avatar
    wifi: rtw89: refine packet offload handling under SER · 8b21c08e
    Zong-Zhe Yang authored
    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: default avatarZong-Zhe Yang <kevin_yang@realtek.com>
    Signed-off-by: default avatarPing-Ke Shih <pkshih@realtek.com>
    Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
    Link: https://lore.kernel.org/r/20230516082441.11154-4-pkshih@realtek.com
    8b21c08e
mac.c 160 KB