Skip to content

Commit 6f0f948

Browse files
author
codebot
committed
Update main
# Conflicts: # include/srsran/phy/upper/signal_processors/dmrs_pucch_processor.h # lib/phy/upper/equalization/equalize_zf_3x4.h # lib/phy/upper/equalization/equalize_zf_4x4.h # tests/unittests/phy/generic_functions/transform_precoding/transform_precoder_test_data.tar.gz # tests/unittests/phy/upper/channel_processors/pusch/pusch_demodulator_test_data.tar.gz # tests/unittests/phy/upper/signal_processors/dmrs_pucch_processor_test_data.h # tests/unittests/phy/upper/signal_processors/dmrs_pucch_processor_test_doubles.h
2 parents 366744f + a77e99f commit 6f0f948

File tree

103 files changed

+2321
-703
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+2321
-703
lines changed

.gitlab/ci-shared/build.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,6 @@ variables:
117117
builder.sh -m "-j${KUBERNETES_CPU_REQUEST} ${target}" ${BUILD_CMD} "$@" ${SRSRANDIR}
118118
{ set +x; } 2>/dev/null
119119
}
120-
- |
121-
build_plugin() {
122-
target="$1"
123-
shift
124-
set -x
125-
builder.sh -m "-j${KUBERNETES_CPU_REQUEST} ${target}" ${BUILD_CMD} "$@" ${CI_PROJECT_DIR}
126-
{ set +x; } 2>/dev/null
127-
}
128120
- |
129121
launch_tests_srsran() {
130122
cd ${SRSRANDIR}/build
@@ -133,11 +125,3 @@ variables:
133125
ctest -j${KUBERNETES_CPU_REQUEST} --schedule-random --output-on-failure --output-junit xunit.xml "$@"
134126
{ set +x; } 2>/dev/null
135127
}
136-
- |
137-
launch_tests_plugin() {
138-
cd ${CI_PROJECT_DIR}/build
139-
echo "Using LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
140-
set -x
141-
ctest -j${KUBERNETES_CPU_REQUEST} --schedule-random --output-on-failure --output-junit xunit.xml "$@"
142-
{ set +x; } 2>/dev/null
143-
}

.gitlab/ci/e2e/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SRSGNB_REGISTRY_URI=registry.gitlab.com/softwareradiosystems/srsgnb
22
RETINA_REGISTRY_PREFIX=registry.gitlab.com/softwareradiosystems/ci/retina
3-
RETINA_VERSION=0.54.12
3+
RETINA_VERSION=0.54.13
44
UBUNTU_VERSION=24.04
55
AMARISOFT_VERSION=2023-09-08
66
SRSUE_VERSION=23.11

apps/units/cu_up/cu_up_builder.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ cu_up_unit srsran::build_cu_up(const cu_up_unit_config& unit_cfg, const cu_up_un
100100

101101
for (auto& qos_ : config.qos) {
102102
qos_.second.pdcp_custom_cfg.metrics_notifier = pdcp_metric_notifier;
103+
if (!pdcp_metric_notifier) { // Disable PDCP metrics if E2 is not enabled since there is no consumer.
104+
qos_.second.pdcp_custom_cfg.metrics_period = std::chrono::milliseconds(0);
105+
}
103106
}
104107

105108
wrapper.unit =

include/srsran/cu_cp/cu_cp_metrics_handler.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "srsran/ran/nr_cgi.h"
2727
#include "srsran/ran/pci.h"
2828
#include "srsran/ran/rnti.h"
29+
#include "srsran/rrc/rrc_ue.h"
2930
#include <chrono>
3031
#include <memory>
3132

@@ -41,6 +42,8 @@ struct metrics_report {
4142
gnb_du_id_t du_id;
4243
/// PCI of the UE's PCell.
4344
pci_t pci;
45+
/// RRC connection state of the UE.
46+
rrc_state rrc_connection_state;
4447
};
4548
struct cell_info {
4649
nr_cell_global_id_t cgi;

include/srsran/du/du_high/du_manager/du_manager.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11

22
#pragma once
33

4-
#include "srsran/adt/byte_buffer.h"
54
#include "srsran/du/du_high/du_manager/du_configurator.h"
65
#include "srsran/f1ap/du/f1ap_du.h"
76
#include "srsran/ran/du_types.h"
8-
#include "srsran/ran/logical_channel/lcid.h"
9-
#include "srsran/ran/rnti.h"
107
#include "srsran/support/async/async_task.h"
11-
#include <string>
128

139
namespace srsran {
1410

include/srsran/mac/mac_ue_configurator.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ struct mac_ue_create_request {
7878
physical_cell_group_config phy_cell_group_cfg;
7979
bool initial_fallback = true;
8080
const byte_buffer* ul_ccch_msg = nullptr;
81+
std::optional<slot_point> ul_ccch_slot_rx;
8182

8283
// Scheduler-only params.
8384
sched_ue_config_request sched_cfg;

include/srsran/phy/generic_functions/transform_precoding/transform_precoder.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ class transform_precoder
5353
/// \remark An assertion is triggered if the number of RB to deprecode is invalid.
5454
/// \remark An assertion is triggered if the number of RB exceeds the maximum initialized number of RB.
5555
virtual void deprecode_ofdm_symbol(span<cf_t> out, span<const cf_t> in) = 0;
56+
57+
/// \brief Calculates the resultant noise variance after reverting the transform precoding operation.
58+
///
59+
/// Noise variances that are NaN, infinite or negative are not taken into account neither for the calculation of mean
60+
/// nor overwriting.
61+
/// \param[out] out Resultant noise variance.
62+
/// \param[in] in Input noise variance for each resource element.
63+
virtual void deprecode_ofdm_symbol_noise(span<float> out, span<const float> in) = 0;
5664
};
5765

5866
} // namespace srsran

include/srsran/phy/upper/channel_processors/pusch/pusch_processor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class pusch_processor
144144
unsigned n_id;
145145
/// Number of transmission layers as per TS38.211 Section 6.3.1.3.
146146
unsigned nof_tx_layers;
147-
/// Port indexes the PUSCH reception is mapped to.
147+
/// Port indices the PUSCH reception is mapped to.
148148
static_vector<uint8_t, MAX_PORTS> rx_ports;
149149
/// Indicates which symbol in the slot transmit DMRS.
150150
symbol_slot_mask dmrs_symbol_mask;

include/srsran/phy/upper/pucch_formats_3_4_helpers.h renamed to include/srsran/phy/upper/pucch_formats3_4_helpers.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
#pragma once
2727

2828
#include "srsran/adt/bounded_integer.h"
29+
#include "srsran/phy/generic_functions/transform_precoding/transform_precoder.h"
2930
#include "srsran/phy/support/mask_types.h"
31+
#include "srsran/phy/support/resource_grid_reader.h"
3032
#include "srsran/phy/upper/equalization/modular_ch_est_list.h"
3133
#include "srsran/ran/pucch/pucch_constants.h"
3234

@@ -39,7 +41,7 @@ namespace srsran {
3941
/// set to \c false otherwise.
4042
/// \param[in] additional_dmrs Whether \e additionalDMRS parameter is set for the PUCCH resource.
4143
/// \returns The symbol mask for symbols containing DM-RS for that configuration, as per TS38.211 Table 6.4.1.3.3.2-1.
42-
inline symbol_slot_mask get_pucch_formats_3_4_dmrs_symbol_mask(
44+
inline symbol_slot_mask get_pucch_formats3_4_dmrs_symbol_mask(
4345
bounded_integer<unsigned, pucch_constants::FORMAT3_MIN_NSYMB, pucch_constants::FORMAT3_MAX_NSYMB> nof_symbols,
4446
bool frequency_hopping,
4547
bool additional_dmrs)

include/srsran/phy/upper/pucch_helper.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ class pucch_helper
4646
}
4747

4848
/// Computes the NR-PUCCH group sequence (TS 38.211 clause 6.3.2.2.1 Group and sequence hopping).
49-
void compute_group_sequence(pucch_group_hopping group_hopping, unsigned n_id, unsigned& u, unsigned& v)
49+
/// \param[in] group_hopping Group hopping configuration.
50+
/// \param[in] n_id Scrambling identifier.
51+
/// \return A pair of sequence group u and sequence number v.
52+
static std::pair<unsigned, unsigned> compute_group_sequence(pucch_group_hopping group_hopping, unsigned n_id)
5053
{
5154
unsigned f_gh = 0;
5255
unsigned f_ss = 0;
@@ -57,14 +60,13 @@ class pucch_helper
5760
break;
5861
case pucch_group_hopping::ENABLE:
5962
srsran_terminate("Group hopping is not implemented");
60-
return;
6163
case pucch_group_hopping::DISABLE:
6264
srsran_terminate("Hopping is not implemented");
63-
return;
6465
}
6566

66-
u = (f_gh + f_ss) % low_papr_sequence_collection::NOF_GROUPS;
67-
v = 0;
67+
unsigned u = (f_gh + f_ss) % low_papr_sequence_collection::NOF_GROUPS;
68+
unsigned v = 0;
69+
return {u, v};
6870
}
6971

7072
/// \brief Computes the NR alpha index (1-NRE) (TS 38.211 clause 6.3.2.2.2 Cyclic shift hopping)

0 commit comments

Comments
 (0)