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 <ysriramg@codeaurora.org>
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
This commit is contained in:
Yeshwanth Sriram Guntuka 2021-08-04 20:02:52 +05:30 • committed by Gerrit - the friendly Code Review server
commit ee2fa95f9e

View file

@ -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},
};