Re: [PATCH] ath10k: use pre-allocated DMA buffer in Tx

2015-10-08 Thread Peter Oh
I did quick glance on the warning. The dma unmap warning is caused by dma_unmap_single called per every received packet in ath10k_pci_htt_tx_cb() <- ath10k_pci_htt_rx_cb(). The physical address is assigned by rx refill function for rx ring. So it looks like copy engine patchset has a bug. FYI, p

Re: [PATCH] ath10k: use pre-allocated DMA buffer in Tx

2015-10-08 Thread Kalle Valo
Peter Oh writes: > Does it happen after you applied copy engine patchset or even without > the patchset? I saw ath10k_pci_htt_tx_cb in backtrace which is not > merged to master branch yet. If it only happens after the patchset, > I'll apply them and look into it if any possibilities are there. G

Re: [PATCH] ath10k: use pre-allocated DMA buffer in Tx

2015-10-08 Thread Peter Oh
Does it happen after you applied copy engine patchset or even without the patchset? I saw ath10k_pci_htt_tx_cb in backtrace which is not merged to master branch yet. If it only happens after the patchset, I'll apply them and look into it if any possibilities are there. On 10/08/2015 04:49 AM,

Re: [PATCH] ath10k: use pre-allocated DMA buffer in Tx

2015-10-08 Thread Kalle Valo
Peter Oh writes: > ath10k driver is using dma_pool_alloc per packet and dma_pool_free > in coresponding at Tx completion. > Use of pre-allocated DMA buffer in Tx will improve saving CPU resource > by 5% while it consumes about 56KB memory more as trade off. > > Signed-off-by: Peter Oh I see ran

Re: [PATCH] ath10k: use pre-allocated DMA buffer in Tx

2015-10-06 Thread Kalle Valo
Peter Oh writes: > ath10k driver is using dma_pool_alloc per packet and dma_pool_free > in coresponding at Tx completion. > Use of pre-allocated DMA buffer in Tx will improve saving CPU resource > by 5% while it consumes about 56KB memory more as trade off. > > Signed-off-by: Peter Oh Applied,

[PATCH] ath10k: use pre-allocated DMA buffer in Tx

2015-09-24 Thread Peter Oh
ath10k driver is using dma_pool_alloc per packet and dma_pool_free in coresponding at Tx completion. Use of pre-allocated DMA buffer in Tx will improve saving CPU resource by 5% while it consumes about 56KB memory more as trade off. Signed-off-by: Peter Oh --- drivers/net/wireless/ath/ath10k/htt