From 8d17532e58ac4e9c95c52cb74b589609abfadd7e Mon Sep 17 00:00:00 2001 From: Mohit Khanna Date: Mon, 3 Aug 2020 18:43:02 -0700 Subject: [PATCH] qcacld-3.0: Add more DP rings to prealloc Add RXDMA_DST, SW2WBM_RELEASE and RXDMA_BUF rings to DP prealloc infrastructure. CRs-Fixed: 2747089 Change-Id: Ic744fde5b5ebccc6b344e60722d03a0da02c5cf6 --- core/dp/txrx3.0/dp_txrx.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/dp/txrx3.0/dp_txrx.c b/core/dp/txrx3.0/dp_txrx.c index 1af956da2927..94cd7182cbd2 100644 --- a/core/dp/txrx3.0/dp_txrx.c +++ b/core/dp/txrx3.0/dp_txrx.c @@ -133,6 +133,7 @@ int dp_rx_tm_get_pending(ol_txrx_soc_handle soc) #endif #ifdef DP_MEM_PRE_ALLOC + /* Num elements in REO ring */ #define REO_DST_RING_SIZE 1024 @@ -182,8 +183,16 @@ static struct dp_consistent_prealloc g_dp_consistent_allocs[] = { {WBM2SW_RELEASE, (sizeof(struct wbm_release_ring)) * WBM2SW_RELEASE_RING_SIZE, 0, NULL, NULL, 0, 0}, {WBM2SW_RELEASE, (sizeof(struct wbm_release_ring)) * WBM2SW_RELEASE_RING_SIZE, 0, NULL, NULL, 0, 0}, {WBM2SW_RELEASE, (sizeof(struct wbm_release_ring)) * WBM2SW_RELEASE_RING_SIZE, 0, NULL, 0, 0}, + /* SW2WBM link descriptor return ring */ + {SW2WBM_RELEASE, (sizeof(struct wbm_release_ring)) * WLAN_CFG_WBM_RELEASE_RING_SIZE, 0, NULL, 0, 0}, /* 1 WBM idle link desc ring */ {WBM_IDLE_LINK, (sizeof(struct wbm_link_descriptor_ring)) * WBM_IDLE_LINK_RING_SIZE, 0, NULL, NULL, 0, 0}, + /* 2 RXDMA DST ERR rings */ + {RXDMA_DST, (sizeof(struct reo_entrance_ring)) * WLAN_CFG_RXDMA_ERR_DST_RING_SIZE, 0, NULL, NULL, 0, 0}, + {RXDMA_DST, (sizeof(struct reo_entrance_ring)) * WLAN_CFG_RXDMA_ERR_DST_RING_SIZE, 0, NULL, NULL, 0, 0}, + /* REFILL ring 0 */ + {RXDMA_BUF, (sizeof(struct wbm_buffer_ring)) * WLAN_CFG_RXDMA_REFILL_RING_SIZE, 0, NULL, NULL, 0, 0}, + }; void dp_prealloc_deinit(void)