changeset 356:984df0753560

gsmcomp.c: voice-only config partition pool sizing fixes from Citrine
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 25 Dec 2017 02:14:55 +0000
parents dc95795a34a9
children 38c284cd102b
files src/condat2/com/src/config/gsmcomp.c
diffstat 1 files changed, 17 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/condat2/com/src/config/gsmcomp.c	Mon Dec 25 00:49:54 2017 +0000
+++ b/src/condat2/com/src/config/gsmcomp.c	Mon Dec 25 02:14:55 2017 +0000
@@ -368,7 +368,7 @@
 #define PRIM_PARTITION_2_SIZE    216 /* New */
 #define PRIM_PARTITION_3_SIZE    260 /* sizeof (T_stk_cmd), do we need this? */
 #define PRIM_PARTITION_4_SIZE    432
-#define PRIM_PARTITION_5_SIZE    900 /* 1600 */
+#define PRIM_PARTITION_5_SIZE   1600 /* FreeCalypso raised from 900 */
 
 #define PRIMPOOL_0_PARTITIONS     80
 #define PRIMPOOL_1_PARTITIONS     20
@@ -380,12 +380,22 @@
 
 #define PRIMPOOL_3_PARTITIONS      6 /*  0 */ /* Number to be optimized */ 
 
-#ifdef TI_PS_UICC_CHIPSET_15
-#define PRIMPOOL_4_PARTITIONS      6 /* 10 */
-#else
-#define PRIMPOOL_4_PARTITIONS      5 /* 10 */
-#endif
-#define PRIMPOOL_5_PARTITIONS      2 /*  3 */
+/*
+ * FreeCalypso change: bumping the number of 432-byte partitions in the
+ * voice-only config from 5 or 6 to 10.  Our FreeCalypso code appears to
+ * work with the original smaller config, but this warning is seen:
+
+SYSTEM WARNING: Bigger partition allocated than requested, entity SIM, Size 288
+
+ * SIM's request for size 288 will normally be allocated out of the 432 pool,
+ * but the next size up is the rare big one (used to be 900, we bumped it up
+ * to 1600), and wasting those is bad.  So let's give it some more 432-byte
+ * partitions.  (See the FAX_AND_DATA config above for comparison.)
+ */
+
+#define PRIMPOOL_4_PARTITIONS      10
+
+#define PRIMPOOL_5_PARTITIONS      3 /* FreeCalypso raised from 2 */
 
 #endif /* else, #ifdef FAX_AND_DATA */