Commit fd67b1bb authored by Cedric Roux's avatar Cedric Roux

remove verbose logs

parent 1c7795d6
...@@ -2018,7 +2018,9 @@ void process_HARQ_feedback(uint8_t UE_id, ...@@ -2018,7 +2018,9 @@ void process_HARQ_feedback(uint8_t UE_id,
ack0 = phy_vars_eNB->ulsch_eNB[(uint8_t)UE_id]->harq_processes[harq_pid]->o_ACK[0]; ack0 = phy_vars_eNB->ulsch_eNB[(uint8_t)UE_id]->harq_processes[harq_pid]->o_ACK[0];
else else
ack0 = pucch_payload[0]; ack0 = pucch_payload[0];
#if MEGALOG
printf("ACKNACK **** fr/subfr %d/%d pCC %d ack %d\n", frame, subframe, phy_vars_eNB->CC_id, ack0); printf("ACKNACK **** fr/subfr %d/%d pCC %d ack %d\n", frame, subframe, phy_vars_eNB->CC_id, ack0);
#endif
} }
/* is there an ACK/NACK on the secondary CC? */ /* is there an ACK/NACK on the secondary CC? */
if (dlsch->dlsch_s[0][0]->subframe_tx[subframe_m4] > 0) { if (dlsch->dlsch_s[0][0]->subframe_tx[subframe_m4] > 0) {
...@@ -2029,7 +2031,9 @@ printf("ACKNACK **** fr/subfr %d/%d pCC %d ack %d\n", frame, subframe, phy_vars_ ...@@ -2029,7 +2031,9 @@ printf("ACKNACK **** fr/subfr %d/%d pCC %d ack %d\n", frame, subframe, phy_vars_
ack1 = phy_vars_eNB->ulsch_eNB[(uint8_t)UE_id]->harq_processes[harq_pid]->o_ACK[i]; ack1 = phy_vars_eNB->ulsch_eNB[(uint8_t)UE_id]->harq_processes[harq_pid]->o_ACK[i];
else else
ack1 = pucch_payload[1]; /* this is 1, not i */ ack1 = pucch_payload[1]; /* this is 1, not i */
#if MEGALOG
printf("ACKNACK **** fr/subfr %d/%d sCC %d ack %d\n", frame, subframe, phy_vars_eNB->sCC_id[UE_id][0], ack1); printf("ACKNACK **** fr/subfr %d/%d sCC %d ack %d\n", frame, subframe, phy_vars_eNB->sCC_id[UE_id][0], ack1);
#endif
} }
/* process ACK/NACK for primary CC */ /* process ACK/NACK for primary CC */
if (pcarrier) { if (pcarrier) {
...@@ -2268,7 +2272,9 @@ if (harq_pid == 8) *n1_pucch1 = -1; else { ...@@ -2268,7 +2272,9 @@ if (harq_pid == 8) *n1_pucch1 = -1; else {
*n1_pucch1 = phy_vars_eNB->pucch_config_dedicated[UE_id].n1PUCCH_AN_CS_list[dlsch0_harq->TPC][0]; *n1_pucch1 = phy_vars_eNB->pucch_config_dedicated[UE_id].n1PUCCH_AN_CS_list[dlsch0_harq->TPC][0];
} }
*n1_pucch1 = 31; *n1_pucch1 = 31;
#if MEGALOG
printf("n1_pucch0 %d n1_pucch1 %d\n", *n1_pucch0, *n1_pucch1); printf("n1_pucch0 %d n1_pucch1 %d\n", *n1_pucch0, *n1_pucch1);
#endif
} }
} }
...@@ -2774,9 +2780,11 @@ void pucch_procedures(const unsigned char sched_subframe,PHY_VARS_eNB *phy_vars_ ...@@ -2774,9 +2780,11 @@ void pucch_procedures(const unsigned char sched_subframe,PHY_VARS_eNB *phy_vars_
subframe); subframe);
#endif #endif
} // abstraction flag } // abstraction flag
#if MEGALOG
printf("NO CC SR f/sf %d/%d: do_SR %d/pl %d (n1 SR %d/noSR %d) m %d pucch payload %d format %d (1a %d 1b %d) (tb1 %d 2 %d)\n", frame, subframe, printf("NO CC SR f/sf %d/%d: do_SR %d/pl %d (n1 SR %d/noSR %d) m %d pucch payload %d format %d (1a %d 1b %d) (tb1 %d 2 %d)\n", frame, subframe,
do_SR, SR_payload, phy_vars_eNB->scheduling_request_config[UE_id].sr_PUCCH_ResourceIndex, n1_pucch0, metric0, pucch_payload0[0], format, do_SR, SR_payload, phy_vars_eNB->scheduling_request_config[UE_id].sr_PUCCH_ResourceIndex, n1_pucch0, metric0, pucch_payload0[0], format,
pucch_format1a, pucch_format1b, phy_vars_eNB->dlsch_eNB[UE_id][0]->subframe_tx[sfm4], phy_vars_eNB->dlsch_eNB[UE_id][1]->subframe_tx[sfm4]); pucch_format1a, pucch_format1b, phy_vars_eNB->dlsch_eNB[UE_id][0]->subframe_tx[sfm4], phy_vars_eNB->dlsch_eNB[UE_id][1]->subframe_tx[sfm4]);
#endif
} // active_SCCs=0 } // active_SCCs=0
#ifdef Rel10 #ifdef Rel10
else if ((phy_vars_eNB->n_configured_SCCs[UE_id] == 1) && else if ((phy_vars_eNB->n_configured_SCCs[UE_id] == 1) &&
...@@ -2941,8 +2949,10 @@ printf("pucch detect on pucch %d payload %d %d (metric %d/%d)\n", metric0 > metr ...@@ -2941,8 +2949,10 @@ printf("pucch detect on pucch %d payload %d %d (metric %d/%d)\n", metric0 > metr
frame, frame,
subframe, subframe,
PUCCH1b_THRES); PUCCH1b_THRES);
#if MEGALOG
printf("SR: do_SR %d (n1 %d/%d/%d) m0/m1/m2 %d/%d/%d p0 %d%d cs0 %d cs1 %d\n", printf("SR: do_SR %d (n1 %d/%d/%d) m0/m1/m2 %d/%d/%d p0 %d%d cs0 %d cs1 %d\n",
do_SR, phy_vars_eNB->scheduling_request_config[UE_id].sr_PUCCH_ResourceIndex, n1_pucch0, n1_pucch1, metric0, metric1, metric2, pucch_payload0[0], pucch_payload0[1], cs0, cs1); do_SR, phy_vars_eNB->scheduling_request_config[UE_id].sr_PUCCH_ResourceIndex, n1_pucch0, n1_pucch1, metric0, metric1, metric2, pucch_payload0[0], pucch_payload0[1], cs0, cs1);
#endif
if (do_SR == 1 && metric0 > metric1 && metric0 > metric2) { if (do_SR == 1 && metric0 > metric1 && metric0 > metric2) {
SR_payload = 1; SR_payload = 1;
} else if (metric1 > metric2) { } else if (metric1 > metric2) {
...@@ -3479,10 +3489,12 @@ printf("PHY RX f/sf %d/%d sched_sf %d\n", frame, subframe, sched_subframe); ...@@ -3479,10 +3489,12 @@ printf("PHY RX f/sf %d/%d sched_sf %d\n", frame, subframe, sched_subframe);
#endif #endif
phy_vars_eNB->ulsch_eNB[i]->harq_processes[harq_pid]->o_ACK[0]=0; phy_vars_eNB->ulsch_eNB[i]->harq_processes[harq_pid]->o_ACK[0]=0;
phy_vars_eNB->ulsch_eNB[i]->harq_processes[harq_pid]->o_ACK[1]=0; phy_vars_eNB->ulsch_eNB[i]->harq_processes[harq_pid]->o_ACK[1]=0;
#if MEGALOG
if (phy_vars_eNB->ulsch_eNB[i]->harq_processes[harq_pid]->O_ACK) if (phy_vars_eNB->ulsch_eNB[i]->harq_processes[harq_pid]->O_ACK)
printf("pusch f/sf %d/%d harq_pid %d ulsch %p O_ACK %d (%d %d)\n", frame, subframe, harq_pid, phy_vars_eNB->ulsch_eNB[i], phy_vars_eNB->ulsch_eNB[i]->harq_processes[harq_pid]->O_ACK, printf("pusch f/sf %d/%d harq_pid %d ulsch %p O_ACK %d (%d %d)\n", frame, subframe, harq_pid, phy_vars_eNB->ulsch_eNB[i], phy_vars_eNB->ulsch_eNB[i]->harq_processes[harq_pid]->O_ACK,
phy_vars_eNB->dlsch_eNB[i][0]->subframe_tx[sf]>0, phy_vars_eNB->dlsch_eNB[i][0]->subframe_tx[sf]>0,
phy_vars_eNB->n_configured_SCCs[i] == 1 && phy_vars_eNB->dlsch_eNB[i][0]->dlsch_s[0][0]->subframe_tx[sf] > 0); phy_vars_eNB->n_configured_SCCs[i] == 1 && phy_vars_eNB->dlsch_eNB[i][0]->dlsch_s[0][0]->subframe_tx[sf] > 0);
#endif
} }
LOG_D(PHY, LOG_D(PHY,
...@@ -3565,8 +3577,10 @@ printf("pusch f/sf %d/%d harq_pid %d ulsch %p O_ACK %d (%d %d)\n", frame, subfra ...@@ -3565,8 +3577,10 @@ printf("pusch f/sf %d/%d harq_pid %d ulsch %p O_ACK %d (%d %d)\n", frame, subfra
ret); ret);
#if MEGALOG
if (phy_vars_eNB->ulsch_eNB[i]->harq_processes[harq_pid]->O_ACK) if (phy_vars_eNB->ulsch_eNB[i]->harq_processes[harq_pid]->O_ACK)
printf("o_ACK %d %d\n", phy_vars_eNB->ulsch_eNB[i]->harq_processes[harq_pid]->o_ACK[0], phy_vars_eNB->ulsch_eNB[i]->harq_processes[harq_pid]->o_ACK[1]); printf("o_ACK %d %d\n", phy_vars_eNB->ulsch_eNB[i]->harq_processes[harq_pid]->o_ACK[0], phy_vars_eNB->ulsch_eNB[i]->harq_processes[harq_pid]->o_ACK[1]);
#endif
//compute the expected ULSCH RX power (for the stats) //compute the expected ULSCH RX power (for the stats)
phy_vars_eNB->ulsch_eNB[(uint32_t)i]->harq_processes[harq_pid]->delta_TF = phy_vars_eNB->ulsch_eNB[(uint32_t)i]->harq_processes[harq_pid]->delta_TF =
get_hundred_times_delta_IF_eNB(phy_vars_eNB,i,harq_pid, 0); // 0 means bw_factor is not considered get_hundred_times_delta_IF_eNB(phy_vars_eNB,i,harq_pid, 0); // 0 means bw_factor is not considered
......
...@@ -784,6 +784,7 @@ static void fapi_schedule_retransmission_ue(int module_id, int CC_id, int frame, ...@@ -784,6 +784,7 @@ static void fapi_schedule_retransmission_ue(int module_id, int CC_id, int frame,
/* TODO: handle the case where CC_id != servCellIndex */ /* TODO: handle the case where CC_id != servCellIndex */
if (CC_id != d->servCellIndex) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); abort(); } if (CC_id != d->servCellIndex) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); abort(); }
#if MEGALOG
static char *X[] = {"ONE", "ONE_A", "ONE_B", "ONE_C", "ONE_D", "TWO", "TWO_A", "TWO_B"}; static char *X[] = {"ONE", "ONE_A", "ONE_B", "ONE_C", "ONE_D", "TWO", "TWO_A", "TWO_B"};
static char *Y[] = {"VRB_DISTRIBUTED", "VRB_LOCALIZED"}; static char *Y[] = {"VRB_DISTRIBUTED", "VRB_LOCALIZED"};
printf("RETR fsf %d/%d rnti %d rbBitmap %x rbShift %d rbgSubset %d resAlloc %d nr_of_tbs %d tbsSize[0] %d mcs[0] %d (latest %d) ndi[0] %d rv[0] %d cceIndex %d aggrLevel %d precodingInfo %d format %s tpc %d harqProcess %d vrbFormat %s tbSwap %d spsRelease %d preambleIndex %d prachMaskIndex %d nGap %d dlPowerOffset %d pdcchPowerOffset %d cifPresent %d\n", printf("RETR fsf %d/%d rnti %d rbBitmap %x rbShift %d rbgSubset %d resAlloc %d nr_of_tbs %d tbsSize[0] %d mcs[0] %d (latest %d) ndi[0] %d rv[0] %d cceIndex %d aggrLevel %d precodingInfo %d format %s tpc %d harqProcess %d vrbFormat %s tbSwap %d spsRelease %d preambleIndex %d prachMaskIndex %d nGap %d dlPowerOffset %d pdcchPowerOffset %d cifPresent %d\n",
...@@ -815,6 +816,7 @@ printf("RETR fsf %d/%d rnti %d rbBitmap %x rbShift %d rbgSubset %d resAlloc %d n ...@@ -815,6 +816,7 @@ printf("RETR fsf %d/%d rnti %d rbBitmap %x rbShift %d rbgSubset %d resAlloc %d n
d->dci.dlPowerOffset, d->dci.dlPowerOffset,
d->dci.pdcchPowerOffset, d->dci.pdcchPowerOffset,
d->dci.cifPresent); d->dci.cifPresent);
#endif
/* TODO: deal with MCS 29-31 in the PHY layer /* TODO: deal with MCS 29-31 in the PHY layer
* in the meantime, let's replace with the last used MCS * in the meantime, let's replace with the last used MCS
*/ */
...@@ -889,6 +891,7 @@ static void fapi_schedule_ue(int module_id, int CC_id, int frame, int subframe, ...@@ -889,6 +891,7 @@ static void fapi_schedule_ue(int module_id, int CC_id, int frame, int subframe,
if (d->nr_rlcPDU_List[0] != 1) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); return; } if (d->nr_rlcPDU_List[0] != 1) { printf("%s:%d:%s: TODO\n", __FILE__, __LINE__, __FUNCTION__); return; }
#if MEGALOG
static char *X[] = {"ONE", "ONE_A", "ONE_B", "ONE_C", "ONE_D", "TWO", "TWO_A", "TWO_B"}; static char *X[] = {"ONE", "ONE_A", "ONE_B", "ONE_C", "ONE_D", "TWO", "TWO_A", "TWO_B"};
static char *Y[] = {"VRB_DISTRIBUTED", "VRB_LOCALIZED"}; static char *Y[] = {"VRB_DISTRIBUTED", "VRB_LOCALIZED"};
printf("fsf %d/%d rnti %d rbBitmap %x rbShift %d rbgSubset %d resAlloc %d nr_of_tbs %d tbsSize[0] %d mcs[0] %d ndi[0] %d rv[0] %d cceIndex %d aggrLevel %d precodingInfo %d format %s tpc %d harqProcess %d vrbFormat %s tbSwap %d spsRelease %d preambleIndex %d prachMaskIndex %d nGap %d dlPowerOffset %d pdcchPowerOffset %d cifPresent %d\n", printf("fsf %d/%d rnti %d rbBitmap %x rbShift %d rbgSubset %d resAlloc %d nr_of_tbs %d tbsSize[0] %d mcs[0] %d ndi[0] %d rv[0] %d cceIndex %d aggrLevel %d precodingInfo %d format %s tpc %d harqProcess %d vrbFormat %s tbSwap %d spsRelease %d preambleIndex %d prachMaskIndex %d nGap %d dlPowerOffset %d pdcchPowerOffset %d cifPresent %d\n",
...@@ -919,6 +922,7 @@ printf("fsf %d/%d rnti %d rbBitmap %x rbShift %d rbgSubset %d resAlloc %d nr_of_ ...@@ -919,6 +922,7 @@ printf("fsf %d/%d rnti %d rbBitmap %x rbShift %d rbgSubset %d resAlloc %d nr_of_
d->dci.dlPowerOffset, d->dci.dlPowerOffset,
d->dci.pdcchPowerOffset, d->dci.pdcchPowerOffset,
d->dci.cifPresent); d->dci.cifPresent);
#endif
/* generate DCI */ /* generate DCI */
if (dci_pdu->Num_common_dci >= NUM_DCI_MAX) { printf("%s:%d:%s: too much DCIs\n", __FILE__, __LINE__, __FUNCTION__); abort(); } if (dci_pdu->Num_common_dci >= NUM_DCI_MAX) { printf("%s:%d:%s: too much DCIs\n", __FILE__, __LINE__, __FUNCTION__); abort(); }
...@@ -1067,9 +1071,11 @@ abort(); ...@@ -1067,9 +1071,11 @@ abort();
T(T_ENB_MAC_UE_DL_PDU_WITH_DATA, T_INT(module_id), T_INT(CC_id), T_INT(d->rnti), T_INT(frame), T_INT(subframe), T(T_ENB_MAC_UE_DL_PDU_WITH_DATA, T_INT(module_id), T_INT(CC_id), T_INT(d->rnti), T_INT(frame), T_INT(subframe),
T_INT(d->dci.harqProcess), T_BUFFER(UE_list->DLSCH_pdu[CC_id][0][UE_id].payload[0], tbs)); T_INT(d->dci.harqProcess), T_BUFFER(UE_list->DLSCH_pdu[CC_id][0][UE_id].payload[0], tbs));
#if MEGALOG
printf("BLOCK (%d)", tbs); printf("BLOCK (%d)", tbs);
for (i = 0; i < tbs; i++) printf(" %2.2x", (unsigned char)UE_list->DLSCH_pdu[CC_id][0][UE_id].payload[0][i]); for (i = 0; i < tbs; i++) printf(" %2.2x", (unsigned char)UE_list->DLSCH_pdu[CC_id][0][UE_id].payload[0][i]);
printf("\n"); printf("\n");
#endif
add_ue_dlsch_info(module_id, add_ue_dlsch_info(module_id,
CC_id, CC_id,
UE_id, UE_id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment