diff options
Diffstat (limited to 'dp/wifi3.0/dp_rx.c')
-rw-r--r-- | dp/wifi3.0/dp_rx.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/dp/wifi3.0/dp_rx.c b/dp/wifi3.0/dp_rx.c index 5fe9cfb67..13a9cc5e0 100644 --- a/dp/wifi3.0/dp_rx.c +++ b/dp/wifi3.0/dp_rx.c @@ -219,7 +219,8 @@ QDF_STATUS __dp_rx_buffers_replenish(struct dp_soc *dp_soc, uint32_t mac_id, paddr = qdf_nbuf_get_frag_paddr(rx_netbuf, 0); - dp_ipa_handle_rx_buf_smmu_mapping(dp_soc, rx_netbuf, true); + dp_ipa_handle_rx_buf_smmu_mapping(dp_soc, rx_netbuf, + RX_BUFFER_SIZE, true); /* * check if the physical address of nbuf->data is * less then 0x50000000 then free the nbuf and try @@ -1931,8 +1932,11 @@ more_data: * move unmap after scattered msdu waiting break logic * in case double skb unmap happened. */ + dp_ipa_handle_rx_buf_smmu_mapping(soc, rx_desc->nbuf, + RX_BUFFER_SIZE, false); qdf_nbuf_unmap_single(soc->osdev, rx_desc->nbuf, QDF_DMA_FROM_DEVICE); + rx_desc->unmapped = 1; core_id = smp_processor_id(); @@ -2519,7 +2523,8 @@ dp_pdev_rx_buffers_attach(struct dp_soc *dp_soc, uint32_t mac_id, desc_list->rx_desc.cookie, rx_desc_pool->owner); - dp_ipa_handle_rx_buf_smmu_mapping(dp_soc, nbuf, true); + dp_ipa_handle_rx_buf_smmu_mapping(dp_soc, nbuf, + RX_BUFFER_SIZE, true); desc_list = next; } |