@brief APIs related to Downlink HARQ for the scheduler.
*/
-static const char* RLOG_MODULE_NAME="MAC";
-static int RLOG_FILE_ID=242;
-static int RLOG_MODULE_ID=4096;
/* header include files -- defines (.h) */
#include "common_def.h"
#include "rg_sch_inf.h" /* typedefs for Scheduler */
#include "rg_sch.h"
#include "rg_sch_cmn.h"
-#include "rl_interface.h"
-#include "rl_common.h"
/* header/extern include files (.x) */
#include "lrg.x"
/* Init the HARQ data structure */
if (rgSCHUtlAllocSBuf(inst, (Data **)&hqE, sizeof(RgSchDlHqEnt)) != ROK)
{
- RLOG_ARG0(L_DEBUG,DBG_CELLID,cell->cellId,
- "rgSCHDhmHqEntInit hqE alloc fail");
+ DU_LOG("\nERROR --> SCH: rgSCHDhmHqEntInit hqE alloc fail");
return (NULLP);
}
#ifdef LTE_TDD
if (rgSCHUtlAllocSBuf(inst, (Data **)&hqE->procs,
hqE->numHqPrcs * sizeof(RgSchDlHqProcCb)) != ROK)
{
- RLOG_ARG0(L_DEBUG,DBG_CELLID,cell->cellId,
- "rgSCHDhmHqEntInit hqP alloc fail in hqE");
+ DU_LOG("\nERROR --> SCH: rgSCHDhmHqEntInit hqP alloc fail in hqE");
return (NULLP);
}
#else
if (hqE == NULLP)
{
- RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "rgSCHDhmGetAvlHqProc hqE NULL ue %d"
+ DU_LOG("\nERROR --> SCH : rgSCHDhmGetAvlHqProc hqE NULL ue %d"
, ue->ueId);
return RFAILED;
}
if (NULLP == tmp)
{
- RLOG_ARG3(L_ERROR,DBG_CELLID,cell->cellId,
- "rgSCHDhmGetAvlHqProc free %ld inUse %ld ue %d"
+ DU_LOG("\nERROR --> SCH : rgSCHDhmGetAvlHqProc free %d inUse %d ue %d"
, hqE->free.count, hqE->inUse.count, ue->ueId);
/* No Harq Process available in the free queue. */
return RFAILED;
if (hqE->free.count > 8)
{
int *p = NULL;
- printf("Crashing invalid hq count after free \n");
- printf("Crashing %d \n", *p);
+ printf("\nDEBUG --> SCH: Crashing invalid hq count after free \n");
+ printf("\nDEBUG --> SCH: Crashing %d \n", *p);
*p = 10;
}
#endif
else
{
#ifdef DEBUGP
- RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "Trying to add CRNTI:%d into TA"
+ DU_LOG("\nERROR --> SCH : Trying to add CRNTI:%d into TA"
"ACK List twice", ueCb->ueId);
#endif
}
hqP->hqE->ue->dl.taCb.state = RGSCH_TA_IDLE;
rgSCHUtlReTxTa(cell, ueCb);
- RLOG_ARG0(L_DEBUG,DBG_CELLID,cell->cellId,
- "Nack Rcvd for TA. Max Tries Attempted");
+ DU_LOG("\nERROR --> SCH : Nack Rcvd for TA. Max Tries Attempted");
}
break;
case TFU_HQFDB_DTX:
#ifdef RGR_V1
if(hqP->hqE->raCb->expiryTime.sfn == RGSCH_CONTRES_EXP)
{
- RLOG_ARG1(L_DEBUG,DBG_CELLID,cell->cellId,
- "rgSCHDhmHqTbTrnsFail contRes exp(): tmpCRNTI = %u",
+ DU_LOG("\nDEBUG --> SCH : rgSCHDhmHqTbTrnsFail contRes exp(): tmpCRNTI = %u",
hqP->hqE->raCb->tmpCrnti);
rgSCHRamMsg4Done(cell, (RgSchRaCb *)hqP->hqE->raCb);
return;
#endif
/* Perform RAM MSG4 done processing */
- RLOG_ARG1(L_DEBUG,DBG_CELLID,cell->cellId,
- "rgSCHDhmHqTbTrnsFail(): hq max retx fail: tmpCRNTI = %u",
+ DU_LOG("\nDEBUG --> SCH : rgSCHDhmHqTbTrnsFail(): hq max retx fail: tmpCRNTI = %u",
hqP->hqE->raCb->tmpCrnti);
rgSCHRamMsg4Done(cell, (RgSchRaCb *)hqP->hqE->raCb);
}
if ( found == FALSE )
{
RGSCH_NULL_CHECK(cellCb->instIdx, ue);
- RLOG_ARG3(L_ERROR,DBG_CELLID,cellCb->cellId,"CRNTI:%d"
- " NO HARQ proc available for feedback:timeInfo:snf %d,slot %d",
+ DU_LOG("\nERROR --> SCH : NO HARQ proc available for feedback:timeInfo:snf %d,slot %d",
ue->ueId,timeInfo.sfn, timeInfo.slot);
err->errType = RGSCHERR_DHM_FDBK_IND;
err->errCause = RGSCHERR_DHM_FDBK_IND_INVALID_CB;
{
raCb = rgSCHDbmGetRaCb(cell, rnti);
}
- RGSCHDBGINFO(cell->instIdx,
- (rgSchPBuf(cell->instIdx), "Ack Rcvd. FdbkInd for Msg4Done\n"));
+ DU_LOG("\nDEBUG --> SCH: Ack Rcvd. FdbkInd for Msg4Done\n");
/* Inform Random Access Module regarding the ack received */
if (raCb != NULLP)
{
/*RRC Connection Setup failure issue where RRC connection
* setup was not reaching UE due to message 4 HARQ failure */
- printf("\nMSG4 Ack ,calling rgSCHRamMsg4Done\n");
+ printf("\nDEBUG --> SCH: MSG4 Ack ,calling rgSCHRamMsg4Done\n");
ret = rgSCHRamMsg4Done(cell, raCb);
hqFreed = TRUE;
}
else
{
- printf("\nraCb is NULLP\n");
+ printf("\nDEBUG --> SCH: raCb is NULLP\n");
}
}
else /*ccpu00114124- HARQ Release for Msg4 */
{
if (!sf->relPdcch)
{
- RLOG_ARG3(L_ERROR,DBG_CELLID,cell->cellId,
- "CRNTI:%d NO HARQ proc available for feedback: TimingInfo: "
+ DU_LOG("\nERROR --> SCH : CRNTI:%d NO HARQ proc available for feedback: TimingInfo: "
"sfn %d slot %d", ue->ueId, timingInfo.sfn,
timingInfo.slot);
return RFAILED;
rgSCHUtlReTxTa(cellCb, ue);
- RLOG_ARG0(L_DEBUG,DBG_CELLID,cellCb->cellId,
- "Nack/DTX Rcvd for TA. Max Tries Attempted");
+ DU_LOG("\nDEBUG --> SCH : Nack/DTX Rcvd for TA. Max Tries Attempted");
}
}
}
ue->dl.taCb.state = RGSCH_TA_IDLE;
rgSCHUtlReTxTa(cellCb, ue);
- RLOG_ARG0(L_DEBUG,DBG_CELLID,cellCb->cellId,
- "Nack/DTX Rcvd for TA. Max Tries Attempted");
+ DU_LOG("\nDEBUG --> SCH : Nack/DTX Rcvd for TA. Max Tries Attempted");
}
}
ueDl->laCb[tbCnt].deltaiTbs = ueDl->laCb[tbCnt].deltaiTbs - DL_LA_STEPDOWN;
}
/*
- printf("deltaiTbs[%d] cqibasediTbs[%d] iTbs[%d] tbCnt[%d]\n",
+ printf("\nDEBUG --> SCH: deltaiTbs[%d] cqibasediTbs[%d] iTbs[%d] tbCnt[%d]\n",
ueDl->laCb[tbCnt].deltaiTbs, ueDl->laCb[tbCnt].cqiBasediTbs,
(ueDl->laCb[tbCnt].deltaiTbs + ueDl->laCb[tbCnt].cqiBasediTbs)/100,
tbCnt);
if (hqP->hqPLst)
{
int *p = NULL;
- printf("Crashing already part of free lst\n");
- printf("Crashing %d \n", *p);
+ printf("\nDEBUG --> SCH: Crashing already part of free lst\n");
+ printf("\nDEBUG --> SCH: Crashing %d \n", *p);
*p = 10;
}
#endif
if (hqP->hqE->free.count > 8)
{
int *p = NULL;
- printf("Crashing invalid hq count\n");
- printf("Crashing %d \n", *p);
+ printf("\nDEBUG --> SCH: Crashing invalid hq count\n");
+ printf("\nDEBUG --> SCH: Crashing %d \n", *p);
*p = 10;
}
#endif
if (hqP->hqPLst)
{
int *p = NULL;
- printf("Crashing already part of inuse lst\n");
- printf("Crashing %d \n", *p);
+ printf("\nDEBUG --> SCH: Crashing already part of inuse lst\n");
+ printf("\nDEBUG --> SCH: Crashing %d \n", *p);
*p = 10;
}
#endif
if (hqP->hqE->inUse.count > 8)
{
int *p = NULL;
- printf("Crashing invalid hq count \n");
- printf("Crashing %d \n", *p);
+ printf("\nDEBUG --> SCH: Crashing invalid hq count \n");
+ printf("\nDEBUG --> SCH: Crashing %d \n", *p);
*p = 10;
}
#endif
if (!hqP->hqPLst)
{
int *p = NULL;
- printf("Crashing not part of any lst\n");
- printf("Crashing %d \n", *p);
+ printf("\nDEBUG --> SCH: Crashing not part of any lst\n");
+ printf("\nDEBUG --> SCH: Crashing %d \n", *p);
*p = 10;
}
#endif
if (hqP->hqPLst != &hqP->hqE->free)
{
int *p = NULL;
- printf("Crashing del from wrong lst\n");
- printf("Crashing %d \n", *p);
+ printf("\nDEBUG --> SCH: Crashing del from wrong lst\n");
+ printf("\nDEBUG --> SCH: Crashing %d \n", *p);
*p = 10;
}
#endif
if (hqP->hqE->free.count > 8)
{
int *p = NULL;
- printf("Crashing invalid hq count\n");
- printf("Crashing %d \n", *p);
+ printf("\nDEBUG --> SCH: Crashing invalid hq count\n");
+ printf("\nDEBUG --> SCH: Crashing %d \n", *p);
*p = 10;
}
#endif
if (!hqP->hqPLst)
{
int *p = NULL;
- printf("Crashing not part of any lst\n");
- printf("Crashing %d \n", *p);
+ printf("\nDEBUG --> SCH: Crashing not part of any lst\n");
+ printf("\nDEBUG --> SCH: Crashing %d \n", *p);
*p = 10;
}
if (hqP->hqPLst != &hqP->hqE->inUse)
{
int *p = NULL;
- printf("Crashing del from wrong lst\n");
- printf("Crashing %d \n", *p);
+ printf("\nDEBUG --> SCH: Crashing del from wrong lst\n");
+ printf("\nDEBUG --> SCH: Crashing %d \n", *p);
*p = 10;
}
#endif
if (hqP->hqE->inUse.count > 8)
{
int *p = NULL;
- printf("Crashing invalid hq count\n");
- printf("Crashing %d \n", *p);
+ printf("\nDEBUG --> SCH: Crashing invalid hq count\n");
+ printf("\nDEBUG --> SCH: Crashing %d \n", *p);
*p = 10;
}
#endif