diff options
| author | Ping-Ke Shih <pkshih@realtek.com> | 2024-01-21 10:18:25 +0300 |
|---|---|---|
| committer | Kalle Valo <kvalo@kernel.org> | 2024-02-01 13:15:42 +0300 |
| commit | 0bc7d1d4e63cf31ff1b4396b0e2f0e3c76828d26 (patch) | |
| tree | 04a75a77e01263029617080323adbc4c6c64b8b9 /scripts/stackusage | |
| parent | 26cdaee43dc5f9c9d0c5429b365b8f094afad717 (diff) | |
| download | linux-0bc7d1d4e63cf31ff1b4396b0e2f0e3c76828d26.tar.xz | |
wifi: rtw89: pci: validate RX tag for RXQ and RPQ
PCI RX ring is a kind of read/write index ring, and DMA and ring index are
asynchronous, so suddenly driver gets newer index ahead before DMA. To
resolve this rare situation, we use a RX tag as helpers to make sure DMA
is done.
The RX tag is a 13-bit value, and range is from 1 ~ 0x1FFF, but 0 isn't
used so should be skipped.
Only enable this validation to coming WiFi 7 chips, because existing
chips use different design and don't really meet this situation.
Add missed rx_ring_eq_is_full for 8851BE by the way.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240121071826.10159-4-pkshih@realtek.com
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
