diff options
| author | Zong-Zhe Yang <[email protected]> | 2023-05-16 16:24:40 +0800 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2023-05-25 19:10:58 +0300 |
| commit | b79a84fbbdb0a715b130ab470c241db211539dfb (patch) | |
| tree | c0fdff53871632b7315ecdf77f1ffefe27681ecb /tools/perf/scripts/python/futex-contention.py | |
| parent | cda66049bab5273c61f09a4ea8c09d1de4d64fc0 (diff) | |
wifi: rtw89: tweak H2C TX waiting function for SER
Some specific H2C (host to chip command) needs waiting until FW ACK by
C2H (chip to host event). However, during SER (system error recovery),
most interrupts are disabled, so we can't receive C2H immediately. It
causes this kind of H2C TX waits will always time out during SER.
To save time spent by SER, we don't do these redundant waits. And, to
make a difference from -ETIMEDOUT in other cases, we make the function
return 1 for SER case. When some H2C callers really catch `ret == 1` at
runtime, they can determine whether it's reasonable or not, and consider
how to resolve their flow if needed.
Signed-off-by: Zong-Zhe Yang <[email protected]>
Signed-off-by: Ping-Ke Shih <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions