comparison gsm-fw/gpf/conf/gsmcomp.c @ 884:353daaa6014d

gsm-fw/gpf/conf/gsmcomp.c: increased max partition in the voice-only config The code we got from TCS211 had the maximum prim pool partition size set to 900 bytes in the voice-only config (no FAX_AND_DATA, no GPRS) and to 1600 bytes in every other config. As it turns out, this "minimized" config breaks when the AT command interface is used with %CPI enabled, as the responsible code in ATI does an ACI_MALLOC of 1012 bytes. TI may have considered this case to be unsupported usage (perhaps they didn't care about the combination of a voice-only PS with AT command control), but we do want this use case to work without crashing. Solution: I made the largest prim pool the same as it is with FAX_AND_DATA: 3 partitions of 1600 bytes.
author Space Falcon <falcon@ivan.Harhan.ORG>
date Sat, 27 Jun 2015 07:31:30 +0000
parents ae254ffeaec3
children cba11eec112a
comparison
equal deleted inserted replaced
883:18d7ced19f88 884:353daaa6014d
368 #define PRIM_PARTITION_0_SIZE 52 368 #define PRIM_PARTITION_0_SIZE 52
369 #define PRIM_PARTITION_1_SIZE 100 369 #define PRIM_PARTITION_1_SIZE 100
370 #define PRIM_PARTITION_2_SIZE 216 /* New */ 370 #define PRIM_PARTITION_2_SIZE 216 /* New */
371 #define PRIM_PARTITION_3_SIZE 260 /* sizeof (T_stk_cmd), do we need this? */ 371 #define PRIM_PARTITION_3_SIZE 260 /* sizeof (T_stk_cmd), do we need this? */
372 #define PRIM_PARTITION_4_SIZE 432 372 #define PRIM_PARTITION_4_SIZE 432
373 #define PRIM_PARTITION_5_SIZE 900 /* 1600 */ 373 #define PRIM_PARTITION_5_SIZE 1600 /* FreeCalypso raised from 900 */
374 374
375 #define PRIMPOOL_0_PARTITIONS 80 375 #define PRIMPOOL_0_PARTITIONS 80
376 #define PRIMPOOL_1_PARTITIONS 20 376 #define PRIMPOOL_1_PARTITIONS 20
377 #ifdef TI_PS_UICC_CHIPSET_15 377 #ifdef TI_PS_UICC_CHIPSET_15
378 #define PRIMPOOL_2_PARTITIONS 6 /* 0 */ 378 #define PRIMPOOL_2_PARTITIONS 6 /* 0 */
385 #ifdef TI_PS_UICC_CHIPSET_15 385 #ifdef TI_PS_UICC_CHIPSET_15
386 #define PRIMPOOL_4_PARTITIONS 6 /* 10 */ 386 #define PRIMPOOL_4_PARTITIONS 6 /* 10 */
387 #else 387 #else
388 #define PRIMPOOL_4_PARTITIONS 5 /* 10 */ 388 #define PRIMPOOL_4_PARTITIONS 5 /* 10 */
389 #endif 389 #endif
390 #define PRIMPOOL_5_PARTITIONS 2 /* 3 */ 390 #define PRIMPOOL_5_PARTITIONS 3 /* FreeCalypso raised from 2 */
391 391
392 #endif /* else, #ifdef FAX_AND_DATA */ 392 #endif /* else, #ifdef FAX_AND_DATA */
393 393
394 394
395 #ifdef FAX_AND_DATA 395 #ifdef FAX_AND_DATA
520 !defined(FF_WAP) && !defined(BT_ADAPTER) 520 !defined(FF_WAP) && !defined(BT_ADAPTER)
521 #define GO_LITE 1 521 #define GO_LITE 1
522 #endif 522 #endif
523 523
524 #if defined(_TARGET_) && defined(GO_LITE) 524 #if defined(_TARGET_) && defined(GO_LITE)
525 #define EXT_DATA_POOL_PS_BASE_SIZE 23075 525 #define EXT_DATA_POOL_PS_BASE_SIZE 28000 /* FreeCalypso bumped up from 23075 */
526 #else /* _TARGET_ && GO_LITE */ 526 #else /* _TARGET_ && GO_LITE */
527 #define EXT_DATA_POOL_PS_BASE_SIZE 50000 527 #define EXT_DATA_POOL_PS_BASE_SIZE 50000
528 #endif /* _TARGET_ && GO_LITE */ 528 #endif /* _TARGET_ && GO_LITE */
529 529
530 #undef GO_LITE /* We are not going to use this definition globally */ 530 #undef GO_LITE /* We are not going to use this definition globally */