mbox series

[0/2] wifi: ath11k: Fix SWIOTLB issues with DMA buffer allocation

Message ID 20250119164219.647059-1-quic_ppranees@quicinc.com (mailing list archive)
Headers show
Series wifi: ath11k: Fix SWIOTLB issues with DMA buffer allocation | expand

Message

P Praneesh Jan. 19, 2025, 4:42 p.m. UTC
This patch series addresses issues related to DMA buffer allocation in
the driver, specifically targeting systems without IOMMU that use
SWIOTLB. The current implementation leads to "swiotlb buffer is full"
errors and driver initialization failures. The patches aim to resolve
these issues by replacing the flawed buffer allocation mechanism with
the appropriate DMA API.

Note: This issue was reported on the ath11k public mailing list
(Re: ath11k swiotlb buffer is full on IMX8M with 4GiB DRAM). Although I
couldn't get a local setup with swiotlb configuration similar to the
reporter's, I have validated the ring setup and peer TID setup where these
changes are present.

P Praneesh (2):
  wifi: ath11k: Fix DMA buffer allocation to resolve SWIOTLB issues
  wifi: ath11k: Use dma_alloc_noncoherent for rx_tid buffer allocation

 drivers/net/wireless/ath/ath11k/dp.c    |  35 +++----
 drivers/net/wireless/ath/ath11k/dp.h    |   6 +-
 drivers/net/wireless/ath/ath11k/dp_rx.c | 117 +++++++++++-------------
 3 files changed, 69 insertions(+), 89 deletions(-)


base-commit: 6a5fe6aaedcfadf8e32dd703ec20b1460523c22d