mbox series

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

Message ID 20250119164219.647059-1-quic_ppranees@quicinc.com
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

Comments

Jeff Johnson Jan. 22, 2025, 6:36 p.m. UTC | #1
On Sun, 19 Jan 2025 22:12:17 +0530, P Praneesh wrote:
> 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.
> 
> [...]

Applied, thanks!

[1/2] wifi: ath11k: Fix DMA buffer allocation to resolve SWIOTLB issues
      commit: 1bcd20981834928ccc5d981aacb806bb523d8b29
[2/2] wifi: ath11k: Use dma_alloc_noncoherent for rx_tid buffer allocation
      commit: eeadc6baf8b3dcd32787cc84f0473dc2a2850370

Best regards,