* Merging v5.1
@ 2019-05-14 4:28 Kalle Valo
2019-05-14 11:30 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Kalle Valo @ 2019-05-14 4:28 UTC (permalink / raw)
To: ath11k
Hi,
I'm planning today to merge v5.1 into ath11k-bringup. There's one API
change DMA allocations, patch below how I'm planning to fix that. If
there are any issues with this merge please let me know ASAP.
Kalle
diff --git a/drivers/net/wireless/ath/ath11k/ce.c b/drivers/net/wireless/ath/ath11k/ce.c
index e66e5308def3..fa2c7d13b2f5 100644
--- a/drivers/net/wireless/ath/ath11k/ce.c
+++ b/drivers/net/wireless/ath/ath11k/ce.c
@@ -420,9 +420,9 @@ ath11k_ce_alloc_ring(struct ath11k_base *sc, int nentries, int desc_sz)
* coherent DMA are unsupported
*/
ce_ring->base_addr_owner_space_unaligned =
- dma_zalloc_coherent(sc->dev,
- nentries * desc_sz + CE_DESC_RING_ALIGN,
- &base_addr, GFP_KERNEL);
+ dma_alloc_coherent(sc->dev,
+ nentries * desc_sz + CE_DESC_RING_ALIGN,
+ &base_addr, GFP_KERNEL);
if (!ce_ring->base_addr_owner_space_unaligned) {
kfree(ce_ring);
return ERR_PTR(-ENOMEM);
diff --git a/drivers/net/wireless/ath/ath11k/dp.c b/drivers/net/wireless/ath/ath11k/dp.c
index 2fddbef1b172..5d30fc231ab0 100644
--- a/drivers/net/wireless/ath/ath11k/dp.c
+++ b/drivers/net/wireless/ath/ath11k/dp.c
@@ -103,9 +103,9 @@ int ath11k_dp_srng_setup(struct ath11k_base *ab, struct dp_srng *ring,
num_entries = max_entries;
ring->size = (num_entries * entry_sz) + HAL_RING_BASE_ALIGN - 1;
- ring->vaddr_unaligned = dma_zalloc_coherent(ab->dev, ring->size,
- &ring->paddr_unaligned,
- GFP_KERNEL);
+ ring->vaddr_unaligned = dma_alloc_coherent(ab->dev, ring->size,
+ &ring->paddr_unaligned,
+ GFP_KERNEL);
if (!ring->vaddr_unaligned)
return -ENOMEM;
@@ -353,10 +353,9 @@ static int ath11k_dp_scatter_idle_link_desc_setup(struct ath11k_base *ab,
return -EINVAL;
for (i = 0; i < num_scatter_buf; i++) {
- slist[i].vaddr = dma_zalloc_coherent(
- ab->dev,
- HAL_WBM_IDLE_SCATTER_BUF_SIZE_MAX,
- &slist[i].paddr, GFP_KERNEL);
+ slist[i].vaddr = dma_alloc_coherent(ab->dev,
+ HAL_WBM_IDLE_SCATTER_BUF_SIZE_MAX,
+ &slist[i].paddr, GFP_KERNEL);
if (!slist[i].vaddr) {
ret = -ENOMEM;
goto err;
@@ -436,10 +435,9 @@ static int ath11k_dp_link_desc_bank_alloc(struct ath11k_base *ab,
if (i == (n_link_desc_bank - 1) && last_bank_sz)
desc_sz = last_bank_sz;
- desc_bank[i].vaddr_unaligned = dma_zalloc_coherent(
- ab->dev, desc_sz,
- &desc_bank[i].paddr_unaligned,
- GFP_KERNEL);
+ desc_bank[i].vaddr_unaligned = dma_alloc_coherent(ab->dev, desc_sz,
+ &desc_bank[i].paddr_unaligned,
+ GFP_KERNEL);
if (!desc_bank[i].vaddr_unaligned) {
ret = -ENOMEM;
goto err;
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: Merging v5.1
2019-05-14 4:28 Merging v5.1 Kalle Valo
@ 2019-05-14 11:30 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2019-05-14 11:30 UTC (permalink / raw)
To: ath11k
Kalle Valo <kvalo@codeaurora.org> writes:
> I'm planning today to merge v5.1 into ath11k-bringup. There's one API
> change DMA allocations, patch below how I'm planning to fix that. If
> there are any issues with this merge please let me know ASAP.
I merged it now:
https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=ath11k-bringup&id=d93d992c092c72566e6bc37d4393bf0295cb8a4a
--
Kalle Valo
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-14 11:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-14 4:28 Merging v5.1 Kalle Valo
2019-05-14 11:30 ` Kalle Valo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.