From 7d4b38f4ad155356bb17fb89a6fd1e9ca6cfff21 Mon Sep 17 00:00:00 2001 From: Yeshwanth Sriram Guntuka Date: Thu, 24 Sep 2020 11:53:15 +0530 Subject: [PATCH] qcacmn: Set the CE2 buffer size to 3200 bytes Buffers attached to CE2 destination ring are of 4k bytes. skb allocation for these buffers exceed 1-page allocation due to addition bytes reserved for alignment, padding and skb shared info. Set the CE2 buffer size to 3200 bytes so that the skb memory fits into a single page. Change-Id: I97b3fc140376bb107ba23ab581a2dd5aeb833948 CRs-Fixed: 2785267 --- hif/src/ce/ce_assignment.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hif/src/ce/ce_assignment.h b/hif/src/ce/ce_assignment.h index ad066f6315b1..c6c7ec8fbe84 100644 --- a/hif/src/ce/ce_assignment.h +++ b/hif/src/ce/ce_assignment.h @@ -1262,7 +1262,7 @@ static struct CE_attr host_ce_config_wlan_qca6490[] = { /* target->host HTT + HTC control */ { /* CE1 */ CE_ATTR_FLAGS, 0, 0, 2048, 512, NULL,}, /* target->host WMI */ - { /* CE2 */ CE_ATTR_FLAGS, 0, 0, 4096, 64, NULL,}, + { /* CE2 */ CE_ATTR_FLAGS, 0, 0, 3200, 64, NULL,}, /* host->target WMI */ { /* CE3 */ CE_ATTR_FLAGS, 0, 32, 2048, 0, NULL,}, /* host->target HTT */ @@ -1286,7 +1286,7 @@ static struct CE_pipe_config target_ce_config_wlan_qca6490[] = { /* target->host HTT */ { /* CE1 */ 1, PIPEDIR_IN, 32, 2048, CE_ATTR_FLAGS, 0,}, /* target->host WMI + HTC control */ - { /* CE2 */ 2, PIPEDIR_IN, 32, 4096, CE_ATTR_FLAGS, 0,}, + { /* CE2 */ 2, PIPEDIR_IN, 32, 3200, CE_ATTR_FLAGS, 0,}, /* host->target WMI */ { /* CE3 */ 3, PIPEDIR_OUT, 32, 2048, CE_ATTR_FLAGS, 0,}, /* host->target HTT */