Use [HW] logging instead of [PHY] or [NR_PHY]
This commit is contained in:
+12
-12
@@ -90,7 +90,7 @@ void oai_xran_fh_rx_callback(void *pCallbackTag, xran_status_t status)
|
|||||||
rx_sym = callback_tag->symbol & 0xFF;
|
rx_sym = callback_tag->symbol & 0xFF;
|
||||||
uint32_t ru_id = callback_tag->oXuId;
|
uint32_t ru_id = callback_tag->oXuId;
|
||||||
|
|
||||||
LOG_D(NR_PHY,
|
LOG_D(HW,
|
||||||
"rx_callback frame %d, subframe %d, slot %d, second %lld, rx_sym %d ru_id %d\n",
|
"rx_callback frame %d, subframe %d, slot %d, second %lld, rx_sym %d ru_id %d\n",
|
||||||
frame,
|
frame,
|
||||||
subframe,
|
subframe,
|
||||||
@@ -127,7 +127,7 @@ void oai_xran_fh_rx_callback(void *pCallbackTag, xran_status_t status)
|
|||||||
rx_RU[ru_id][slot2] = 1;
|
rx_RU[ru_id][slot2] = 1;
|
||||||
if (last_frame > 0 && frame > 0
|
if (last_frame > 0 && frame > 0
|
||||||
&& ((slot2 > 0 && last_frame != frame) || (slot2 == 0 && last_frame != ((1024 + frame - 1) & 1023))))
|
&& ((slot2 > 0 && last_frame != frame) || (slot2 == 0 && last_frame != ((1024 + frame - 1) & 1023))))
|
||||||
LOG_E(PHY, "Jump in frame counter last_frame %d => %d, slot %d\n", last_frame, frame, slot2);
|
LOG_E(HW, "Jump in frame counter last_frame %d => %d, slot %d\n", last_frame, frame, slot2);
|
||||||
for (int i = 0; i < num_ports; i++) {
|
for (int i = 0; i < num_ports; i++) {
|
||||||
if (rx_RU[i][slot2] == 0)
|
if (rx_RU[i][slot2] == 0)
|
||||||
return;
|
return;
|
||||||
@@ -142,16 +142,16 @@ void oai_xran_fh_rx_callback(void *pCallbackTag, xran_status_t status)
|
|||||||
info->tti = tti;
|
info->tti = tti;
|
||||||
info->sl = slot2;
|
info->sl = slot2;
|
||||||
info->f = frame;
|
info->f = frame;
|
||||||
LOG_D(PHY, "Push %d.%d.%d (slot %d, subframe %d,last_slot %d)\n", frame, info->sl, slot, ru_id, subframe, last_slot);
|
LOG_D(HW, "Push %d.%d.%d (slot %d, subframe %d,last_slot %d)\n", frame, info->sl, slot, ru_id, subframe, last_slot);
|
||||||
pushNotifiedFIFO(&oran_sync_fifo, req);
|
pushNotifiedFIFO(&oran_sync_fifo, req);
|
||||||
#else
|
#else
|
||||||
LOG_D(PHY, "Writing %d.%d.%d (slot %d, subframe %d,last_slot %d)\n", frame, slot2, ru_id, slot, subframe, last_slot);
|
LOG_D(HW, "Writing %d.%d.%d (slot %d, subframe %d,last_slot %d)\n", frame, slot2, ru_id, slot, subframe, last_slot);
|
||||||
oran_sync_info.tti = tti;
|
oran_sync_info.tti = tti;
|
||||||
oran_sync_info.sl = slot2;
|
oran_sync_info.sl = slot2;
|
||||||
oran_sync_info.f = frame;
|
oran_sync_info.f = frame;
|
||||||
#endif
|
#endif
|
||||||
} else
|
} else
|
||||||
LOG_E(PHY, "Cannot Push %d.%d.%d (slot %d, subframe %d,last_slot %d)\n", frame, slot2, ru_id, slot, subframe, last_slot);
|
LOG_E(HW, "Cannot Push %d.%d.%d (slot %d, subframe %d,last_slot %d)\n", frame, slot2, ru_id, slot, subframe, last_slot);
|
||||||
last_slot = slot2;
|
last_slot = slot2;
|
||||||
last_frame = frame;
|
last_frame = frame;
|
||||||
} // rx_sym == 7
|
} // rx_sym == 7
|
||||||
@@ -289,7 +289,7 @@ int xran_fh_rx_read_slot(ru_info_t *ru, int *frame, int *slot)
|
|||||||
while ((f = pollNotifiedFIFO(&oran_sync_fifo)) != NULL) {
|
while ((f = pollNotifiedFIFO(&oran_sync_fifo)) != NULL) {
|
||||||
oran_sync_info_t *old_info = NotifiedFifoData(res);
|
oran_sync_info_t *old_info = NotifiedFifoData(res);
|
||||||
oran_sync_info_t *new_info = NotifiedFifoData(f);
|
oran_sync_info_t *new_info = NotifiedFifoData(f);
|
||||||
LOG_E(PHY, "Detected double sync message %d.%d => %d.%d\n", old_info->f, old_info->sl, new_info->f, new_info->sl);
|
LOG_E(HW, "Detected double sync message %d.%d => %d.%d\n", old_info->f, old_info->sl, new_info->f, new_info->sl);
|
||||||
delNotifiedFIFO_elt(res);
|
delNotifiedFIFO_elt(res);
|
||||||
res = f;
|
res = f;
|
||||||
}
|
}
|
||||||
@@ -305,14 +305,14 @@ int xran_fh_rx_read_slot(ru_info_t *ru, int *frame, int *slot)
|
|||||||
uint32_t tti_in = oran_sync_info.tti;
|
uint32_t tti_in = oran_sync_info.tti;
|
||||||
|
|
||||||
static int last_slot = -1;
|
static int last_slot = -1;
|
||||||
LOG_D(PHY, "oran slot %d, last_slot %d\n", *slot, last_slot);
|
LOG_D(HW, "oran slot %d, last_slot %d\n", *slot, last_slot);
|
||||||
int cnt = 0;
|
int cnt = 0;
|
||||||
// while (*slot == last_slot) {
|
// while (*slot == last_slot) {
|
||||||
while (tti_in == oran_sync_info.tti) {
|
while (tti_in == oran_sync_info.tti) {
|
||||||
//*slot = oran_sync_info.sl;
|
//*slot = oran_sync_info.sl;
|
||||||
cnt++;
|
cnt++;
|
||||||
}
|
}
|
||||||
LOG_D(PHY, "cnt %d, Reading %d.%d\n", cnt, *frame, *slot);
|
LOG_D(HW, "cnt %d, Reading %d.%d\n", cnt, *frame, *slot);
|
||||||
last_slot = *slot;
|
last_slot = *slot;
|
||||||
#endif
|
#endif
|
||||||
// return(0);
|
// return(0);
|
||||||
@@ -380,9 +380,9 @@ int xran_fh_rx_read_slot(ru_info_t *ru, int *frame, int *slot)
|
|||||||
int16_t payload_len = 0;
|
int16_t payload_len = 0;
|
||||||
|
|
||||||
|
|
||||||
LOG_D(PHY, "pRbMap->nPrbElm %d\n", pRbMap->nPrbElm);
|
LOG_D(HW, "pRbMap->nPrbElm %d\n", pRbMap->nPrbElm);
|
||||||
for (idxElm = 0; idxElm < pRbMap->nPrbElm; idxElm++) {
|
for (idxElm = 0; idxElm < pRbMap->nPrbElm; idxElm++) {
|
||||||
LOG_D(PHY,
|
LOG_D(HW,
|
||||||
"prbMap[%d] : PRBstart %d nPRBs %d\n",
|
"prbMap[%d] : PRBstart %d nPRBs %d\n",
|
||||||
idxElm,
|
idxElm,
|
||||||
pRbMap->prbMap[idxElm].nRBStart,
|
pRbMap->prbMap[idxElm].nRBStart,
|
||||||
@@ -436,7 +436,7 @@ int xran_fh_rx_read_slot(ru_info_t *ru, int *frame, int *slot)
|
|||||||
} // vv_inf
|
} // vv_inf
|
||||||
if ((*frame & 0x7f) == 0 && *slot == 0 && xran_get_common_counters(gxran_handle, &x_counters[0]) == XRAN_STATUS_SUCCESS) {
|
if ((*frame & 0x7f) == 0 && *slot == 0 && xran_get_common_counters(gxran_handle, &x_counters[0]) == XRAN_STATUS_SUCCESS) {
|
||||||
for (int o_xu_id = 0; o_xu_id < fh_init->xran_ports; o_xu_id++) {
|
for (int o_xu_id = 0; o_xu_id < fh_init->xran_ports; o_xu_id++) {
|
||||||
LOG_I(NR_PHY,
|
LOG_I(HW,
|
||||||
"[%s%d][rx %7ld pps %7ld kbps %7ld][tx %7ld pps %7ld kbps %7ld][Total Msgs_Rcvd %ld]\n",
|
"[%s%d][rx %7ld pps %7ld kbps %7ld][tx %7ld pps %7ld kbps %7ld][Total Msgs_Rcvd %ld]\n",
|
||||||
"o-du ",
|
"o-du ",
|
||||||
o_xu_id,
|
o_xu_id,
|
||||||
@@ -448,7 +448,7 @@ int xran_fh_rx_read_slot(ru_info_t *ru, int *frame, int *slot)
|
|||||||
x_counters[o_xu_id].tx_bytes_per_sec * 8 / 1000L,
|
x_counters[o_xu_id].tx_bytes_per_sec * 8 / 1000L,
|
||||||
x_counters[o_xu_id].Total_msgs_rcvd);
|
x_counters[o_xu_id].Total_msgs_rcvd);
|
||||||
for (int rxant = 0; rxant < ru->nb_rx / fh_init->xran_ports; rxant++)
|
for (int rxant = 0; rxant < ru->nb_rx / fh_init->xran_ports; rxant++)
|
||||||
LOG_I(NR_PHY,
|
LOG_I(HW,
|
||||||
"[%s%d][pusch%d %7ld prach%d %7ld]\n",
|
"[%s%d][pusch%d %7ld prach%d %7ld]\n",
|
||||||
"o_du",
|
"o_du",
|
||||||
o_xu_id,
|
o_xu_id,
|
||||||
|
|||||||
@@ -443,7 +443,7 @@ int *oai_oran_initialize(struct xran_fh_init *xran_fh_init, struct xran_fh_confi
|
|||||||
pi->prach_tag = tag;
|
pi->prach_tag = tag;
|
||||||
pi->pusch_tag = tag;
|
pi->pusch_tag = tag;
|
||||||
#ifdef E_RELEASE
|
#ifdef E_RELEASE
|
||||||
LOG_W(PHY, "Please be aware that E release support will be removed in the future. Consider switching to F release.\n");
|
LOG_W(HW, "Please be aware that E release support will be removed in the future. Consider switching to F release.\n");
|
||||||
oran_allocate_buffers(gxran_handle, o_xu_id, 1, pi, &xran_fh_config[o_xu_id]);
|
oran_allocate_buffers(gxran_handle, o_xu_id, 1, pi, &xran_fh_config[o_xu_id]);
|
||||||
#elif defined F_RELEASE
|
#elif defined F_RELEASE
|
||||||
oran_allocate_buffers(gxran_handle, o_xu_id, 1, pi, xran_fh_init->mtu, &xran_fh_config[o_xu_id]);
|
oran_allocate_buffers(gxran_handle, o_xu_id, 1, pi, xran_fh_init->mtu, &xran_fh_config[o_xu_id]);
|
||||||
|
|||||||
@@ -214,11 +214,11 @@ void oran_fh_if4p5_south_in(RU_t *ru, int *frame, int *slot)
|
|||||||
|
|
||||||
RU_proc_t *proc = &ru->proc;
|
RU_proc_t *proc = &ru->proc;
|
||||||
int f, sl;
|
int f, sl;
|
||||||
LOG_D(PHY, "Read rxdataF %p,%p\n", ru_info.rxdataF[0], ru_info.rxdataF[1]);
|
LOG_D(HW, "Read rxdataF %p,%p\n", ru_info.rxdataF[0], ru_info.rxdataF[1]);
|
||||||
start_meas(&ru->rx_fhaul);
|
start_meas(&ru->rx_fhaul);
|
||||||
int ret = xran_fh_rx_read_slot(&ru_info, &f, &sl);
|
int ret = xran_fh_rx_read_slot(&ru_info, &f, &sl);
|
||||||
stop_meas(&ru->rx_fhaul);
|
stop_meas(&ru->rx_fhaul);
|
||||||
LOG_D(PHY, "Read %d.%d rxdataF %p,%p\n", f, sl, ru_info.rxdataF[0], ru_info.rxdataF[1]);
|
LOG_D(HW, "Read %d.%d rxdataF %p,%p\n", f, sl, ru_info.rxdataF[0], ru_info.rxdataF[1]);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
printf("ORAN: %d.%d ORAN_fh_if4p5_south_in ERROR in RX function \n", f, sl);
|
printf("ORAN: %d.%d ORAN_fh_if4p5_south_in ERROR in RX function \n", f, sl);
|
||||||
}
|
}
|
||||||
@@ -231,7 +231,7 @@ void oran_fh_if4p5_south_in(RU_t *ru, int *frame, int *slot)
|
|||||||
|
|
||||||
if (proc->first_rx == 0) {
|
if (proc->first_rx == 0) {
|
||||||
if (proc->tti_rx != *slot) {
|
if (proc->tti_rx != *slot) {
|
||||||
LOG_E(PHY,
|
LOG_E(HW,
|
||||||
"Received Time doesn't correspond to the time we think it is (slot mismatch, received %d.%d, expected %d.%d)\n",
|
"Received Time doesn't correspond to the time we think it is (slot mismatch, received %d.%d, expected %d.%d)\n",
|
||||||
proc->frame_rx,
|
proc->frame_rx,
|
||||||
proc->tti_rx,
|
proc->tti_rx,
|
||||||
@@ -241,7 +241,7 @@ void oran_fh_if4p5_south_in(RU_t *ru, int *frame, int *slot)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (proc->frame_rx != *frame) {
|
if (proc->frame_rx != *frame) {
|
||||||
LOG_E(PHY,
|
LOG_E(HW,
|
||||||
"Received Time doesn't correspond to the time we think it is (frame mismatch, %d.%d , expected %d.%d)\n",
|
"Received Time doesn't correspond to the time we think it is (frame mismatch, %d.%d , expected %d.%d)\n",
|
||||||
proc->frame_rx,
|
proc->frame_rx,
|
||||||
proc->tti_rx,
|
proc->tti_rx,
|
||||||
@@ -251,10 +251,10 @@ void oran_fh_if4p5_south_in(RU_t *ru, int *frame, int *slot)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
proc->first_rx = 0;
|
proc->first_rx = 0;
|
||||||
LOG_I(PHY, "before adjusting, OAI: frame=%d slot=%d, XRAN: frame=%d slot=%d\n", *frame, *slot, proc->frame_rx, proc->tti_rx);
|
LOG_I(HW, "before adjusting, OAI: frame=%d slot=%d, XRAN: frame=%d slot=%d\n", *frame, *slot, proc->frame_rx, proc->tti_rx);
|
||||||
*frame = proc->frame_rx;
|
*frame = proc->frame_rx;
|
||||||
*slot = proc->tti_rx;
|
*slot = proc->tti_rx;
|
||||||
LOG_I(PHY, "After adjusting, OAI: frame=%d slot=%d, XRAN: frame=%d slot=%d\n", *frame, *slot, proc->frame_rx, proc->tti_rx);
|
LOG_I(HW, "After adjusting, OAI: frame=%d slot=%d, XRAN: frame=%d slot=%d\n", *frame, *slot, proc->frame_rx, proc->tti_rx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user