From 1e667b379ae77f97ce5ec0bfb1a7c332ad8f12a3 Mon Sep 17 00:00:00 2001 From: Bartosz Podrygajlo Date: Thu, 16 Jan 2025 07:49:14 +0100 Subject: [PATCH 1/2] Downgrade gNB power limit LOG from "warning" to "debug" Downgrade the UE power limited LOG from LOG_W to LOG_D. This is to avoid flooding stdout when UE in low coverage enters power limited state for a longer period of time. The same information can be inferred from the periodic UE print which also contains PH value (negative PH values indicate that the UE is power limited) --- openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c index afc8c7e6d9..a43492fcfc 100644 --- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c +++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c @@ -1641,7 +1641,7 @@ static void nr_ue_max_mcs_min_rb(int mu, } if (ph_limit < tx_power) - LOG_W(NR_MAC, "Normalized power %d based on current resources (RBs %d, MCS %d) exceed reported PHR %d (normalized value)\n", + LOG_D(NR_MAC, "Normalized power %d based on current resources (RBs %d, MCS %d) exceed reported PHR %d (normalized value)\n", tx_power, *Rb, *mcs, ph_limit); } From d44279a9a36f123fd94bf670ce4380294a81d394 Mon Sep 17 00:00:00 2001 From: Bartosz Podrygajlo Date: Fri, 31 Jan 2025 16:02:47 +0100 Subject: [PATCH 2/2] Fix PHR PH value to power headroom conversion. --- openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c index a43492fcfc..94e42af2ae 100644 --- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c +++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c @@ -453,9 +453,9 @@ static int nr_process_mac_pdu(instance_t module_idP, if (phr->PH < 55) { PH = phr->PH - 32; } else if (phr->PH < 63) { - PH = 28 + (phr->PH - 55) * 2; + PH = 24 + (phr->PH - 55) * 2; } else { - PH = 42; + PH = 38; } // in sched_ctrl we set normalized PH wrt MCS and PRBs long *deltaMCS = ul_bwp->pusch_Config ? ul_bwp->pusch_Config->pusch_PowerControl->deltaMCS : NULL;