From ee2fa95f9e9aa5612b827a807c362465c077ffd3 Mon Sep 17 00:00:00 2001 From: Yeshwanth Sriram Guntuka Date: Wed, 4 Aug 2021 20:02:52 +0530 Subject: [PATCH] cnss2: Add prealloc slots to accommodate WLAN host DP memory Add four 8k, two 32k, six 64k, and one 128k prealloc slots to accommodate memory requirements for various WLAN host DP structures. CRs-Fixed: 3007544 Change-Id: I6f8fcb46ad84016d9ccc5ca22a9ee9d74d8bbfea Signed-off-by: Yeshwanth Sriram Guntuka Signed-off-by: Rakesh Pillai --- drivers/net/wireless/cnss_prealloc/cnss_prealloc.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/net/wireless/cnss_prealloc/cnss_prealloc.c b/drivers/net/wireless/cnss_prealloc/cnss_prealloc.c index 353321fbc5f4..a21fb9e1148f 100644 --- a/drivers/net/wireless/cnss_prealloc/cnss_prealloc.c +++ b/drivers/net/wireless/cnss_prealloc/cnss_prealloc.c @@ -55,6 +55,10 @@ static struct wcnss_prealloc wcnss_allocs[] = { {0, 8 * 1024, NULL}, {0, 8 * 1024, NULL}, {0, 8 * 1024, NULL}, + {0, 8 * 1024, NULL}, + {0, 8 * 1024, NULL}, + {0, 8 * 1024, NULL}, + {0, 8 * 1024, NULL}, {0, 16 * 1024, NULL}, {0, 16 * 1024, NULL}, {0, 16 * 1024, NULL}, @@ -77,6 +81,8 @@ static struct wcnss_prealloc wcnss_allocs[] = { {0, 32 * 1024, NULL}, {0, 32 * 1024, NULL}, {0, 32 * 1024, NULL}, + {0, 32 * 1024, NULL}, + {0, 32 * 1024, NULL}, {0, 64 * 1024, NULL}, {0, 64 * 1024, NULL}, {0, 64 * 1024, NULL}, @@ -85,6 +91,13 @@ static struct wcnss_prealloc wcnss_allocs[] = { {0, 64 * 1024, NULL}, {0, 64 * 1024, NULL}, {0, 64 * 1024, NULL}, + {0, 64 * 1024, NULL}, + {0, 64 * 1024, NULL}, + {0, 64 * 1024, NULL}, + {0, 64 * 1024, NULL}, + {0, 64 * 1024, NULL}, + {0, 64 * 1024, NULL}, + {0, 128 * 1024, NULL}, {0, 128 * 1024, NULL}, {0, 128 * 1024, NULL}, };