Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0576c725 authored by Yue Ma's avatar Yue Ma
Browse files

cnss: Update pre-allocation table



Update pre-allocation table in order to fulfill latest WLAN host driver.
Also add WARN_ON to print trace information if memory request fails.

Change-Id: I2e73d9efcdeb9ea975c36124a718bb7e0095416a
CRs-fixed: 662637
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent 63704274
Loading
Loading
Loading
Loading
+36 −8
Original line number Diff line number Diff line
@@ -31,16 +31,44 @@ 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, 16 * 1024, NULL},
	{0, 16 * 1024, NULL},
	{0, 16 * 1024, NULL},
	{0, 16 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 16 * 1024, NULL},
	{0, 16 * 1024, NULL},
	{0, 16 * 1024, NULL},
	{0, 16 * 1024, NULL},
	{0, 24 * 1024, NULL},
	{0, 24 * 1024, NULL},
	{0, 32 * 1024, NULL},
	{0, 32 * 1024, NULL},
	{0, 32 * 1024, NULL},
@@ -51,8 +79,7 @@ static struct wcnss_prealloc wcnss_allocs[] = {
	{0, 32 * 1024, NULL},
	{0, 64 * 1024, NULL},
	{0, 64 * 1024, NULL},
	{0, 64 * 1024, NULL},
	{0, 64 * 1024, NULL},
	{0, 76 * 1024, NULL},
};

int wcnss_prealloc_init(void)
@@ -97,6 +124,7 @@ void *wcnss_prealloc_get(unsigned int size)
		}
	}
	spin_unlock_irqrestore(&alloc_lock, flags);
	WARN_ON(1);
	pr_err("wcnss: %s: prealloc not available for size: %d\n",
			__func__, size);