diff options
| author | Can Peng <pengcan@kylinos.cn> | 2026-07-24 17:25:30 +0800 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2026-08-02 18:50:14 +0200 |
| commit | f0ba5fd51ff23077ce66cb9be79d41a4b7c19c5e (patch) | |
| tree | 554bdeba9437332c20e81ffbec15ed4eae3cfb19 /tools/perf/scripts/python | |
| parent | 32856f39fefdc75bd253cab999f996750628648e (diff) | |
wifi: brcmfmac: Set DMA direction for msgbuf packet IDs
brcmf_msgbuf_init_pktids() takes the DMA direction from its callers,
but never stores it in the packet ID state. Since the state is zeroed,
pktids->direction remains DMA_BIDIRECTIONAL for both the TX and RX
packet ID pools.
All msgbuf packet ID map and unmap paths use pktids->direction. As a
result, TX buffers requested with DMA_TO_DEVICE and RX buffers requested
with DMA_FROM_DEVICE are mapped and unmapped as DMA_BIDIRECTIONAL
instead.
Store the caller-provided direction when initializing the packet ID
state.
Signed-off-by: Can Peng <pengcan@kylinos.cn>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Link: https://patch.msgid.link/20260724092530.674624-1-pengcan@kylinos.cn
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
