Procházet zdrojové kódy

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
Yeshwanth Sriram Guntuka před 4 roky
rodič
revize
7d4b38f4ad
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      hif/src/ce/ce_assignment.h

+ 2 - 2
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 */