X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fmt%2Fmt_ss.h;h=4c002560cb22c182fe72368968823f772a32a9ed;hb=refs%2Fchanges%2F15%2F9315%2F5;hp=cf9c32519630636adaefe3e6e861af88a5b2deb5;hpb=def50dc175cebc67238db5f1acd5ff322a2279bd;p=o-du%2Fl2.git diff --git a/src/mt/mt_ss.h b/src/mt/mt_ss.h index cf9c32519..4c002560c 100755 --- a/src/mt/mt_ss.h +++ b/src/mt/mt_ss.h @@ -63,7 +63,11 @@ #define SS_MAX_STSKS 5 #endif #else -#define SS_MAX_STSKS 5 +#ifndef INTEL_WLS_MEM +#define SS_MAX_STSKS 8 +#else +#define SS_MAX_STSKS 7 +#endif #endif #endif /* SS_MULTICORE_SUPPORT */ @@ -90,7 +94,7 @@ #ifdef SS_MULTICORE_SUPPORT #define SS_MAX_REGS SS_MAX_STSKS #else -#define SS_MAX_REGS 5 +#define SS_MAX_REGS 7 #endif #ifdef CMM_MAX_BKT_ENT @@ -133,8 +137,10 @@ #ifndef TENB_RTLIN_CHANGES #define SInitLock(l, t) pthread_mutex_init(l, NULL) #endif -/*extern uint32_t gt[128]; */ -/*#define SLock(l) (((gt[0x000000FF &((uint32_t)pthread_self())]=MacGetTick())&&pthread_mutex_lock(l)&&MLogTask(30340, RESOURCE_LINL2, gt[0x000000FF &((uint32_t)pthread_self())], MacGetTick()))?0:0)*/ +/*uint32_t gt[128]; */ +/*#define SLock(l) (((gt[0x000000FF + * &((uint32_t)pthread_self())]=MacGetTick())&&pthread_mutex_lock(l)&&MLogTask(30340, RESOURCE_LINL2, gt[0x000000FF + * &((uint32_t)pthread_self())], MacGetTick()))?0:0)*/ #define SLock(l) pthread_mutex_lock(l) #define SUnlock(l) pthread_mutex_unlock(l) #define SDestroyLock(l) pthread_mutex_destroy(l) @@ -209,8 +215,12 @@ that are configured below. #ifdef XEON_SPECIFIC_CHANGES #define MT_BKT_0_NUMBLKS 5248 /* 10500 Modified from 3500 to 10500 */ #else +#ifdef SS_USE_WLS_MEM +#define MT_BKT_0_NUMBLKS 200704 /* 10500 Modified from 3500 to 10500 */ +#else #define MT_BKT_0_NUMBLKS 10000 /* 10500 Modified from 3500 to 10500 */ #endif +#endif #else #define MT_BKT_0_NUMBLKS 10000 #endif @@ -223,7 +233,11 @@ that are configured below. #else #define MT_BKT_1_DSIZE 1280 /* Modified from 256 to 4096 */ #endif +#ifdef SS_USE_WLS_MEM +#define MT_BKT_1_NUMBLKS 310720 /* 1000*/ +#else #define MT_BKT_1_NUMBLKS 10496 /* 1000*/ +#endif #else /*mt010.301*/ #define MT_BKT_1_DSIZE 256 @@ -256,11 +270,14 @@ that are configured below. #define MT_BKT_3_DSIZE 4224 /* Fill in this value as required */ #define MT_BKT_3_NUMBLKS 5248 /*10496 */ /* Fill in this value as required */ #else -#define MT_BKT_3_DSIZE 12000 /* Fill in this value as required */ +#define MT_BKT_3_DSIZE 12200 /* Fill in this value as required */ #define MT_BKT_3_NUMBLKS 1000 /*10496 */ /* Fill in this value as required */ #endif #endif +#define MT_BKT_4_DSIZE 65000 +#define MT_BKT_4_NUMBLKS 2000 + /* For Non-Sharable regions/static regions */ #ifdef XEON_SPECIFIC_CHANGES #define MT_BKT_0_STATIC_NUMBLKS 500000 /* Fill in this value as required */ @@ -273,16 +290,18 @@ that are configured below. #define MT_BKT_1_STATIC_NUMBLKS 15000 /* Fill in this value as required */ #define MT_BKT_2_STATIC_NUMBLKS 500 /* Fill in this value as required */ #define MT_BKT_3_STATIC_NUMBLKS 1600 /* Fill in this value as required */ +#define MT_BKT_4_STATIC_NUMBLKS 1000 /* Fill in this value as required */ #endif /*mt010.301*/ #ifdef RGL_SPECIFIC_CHANGES #define MT_MAX_BKTS 5 #else -#define MT_MAX_BKTS 4 +#define MT_MAX_BKTS 5 #endif /* mt029.201 corrected typos */ /* memory pool data size definitions for pool-to-size mapping table */ +#define MT_POOL_4_DSIZE (MT_BKT_4_DSIZE-(sizeof(SsMblk)+sizeof(SsDblk))) #define MT_POOL_3_DSIZE (MT_BKT_3_DSIZE-(sizeof(SsMblk)+sizeof(SsDblk))) #define MT_POOL_2_DSIZE (MT_BKT_2_DSIZE-(sizeof(SsMblk)+sizeof(SsDblk))) #define MT_POOL_1_DSIZE (MT_BKT_1_DSIZE-(sizeof(SsMblk)+sizeof(SsDblk))) @@ -371,6 +390,7 @@ that are configured below. #endif #endif +#define WLS_MEM_SIZE 0x7ec00000 /* Total size of WLS memory configured */ #endif /* __MTSSH__ */