# HG changeset patch # User Mychaela Falconia # Date 1514168095 0 # Node ID 984df0753560b0dee6da39307d800a5a5090fdb3 # Parent dc95795a34a97bae17396ea9544c5851186b865b gsmcomp.c: voice-only config partition pool sizing fixes from Citrine diff -r dc95795a34a9 -r 984df0753560 src/condat2/com/src/config/gsmcomp.c --- 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 */