Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
OpenXG-RAN
Commits
7c5b9457
Commit
7c5b9457
authored
Nov 16, 2023
by
Jaroslava Fiedlerova
Committed by
Raymond Knopp
Nov 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE based on harq_to_be_cleared value
parent
7bb529dc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c
+6
-6
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_types.h
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_types.h
+2
-0
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
+1
-1
No files found.
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c
View file @
7c5b9457
...
...
@@ -538,13 +538,13 @@ set_ldpc_dec_op(struct rte_bbdev_dec_op **ops, unsigned int n,
RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_IN_ENABLE
|
RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_OUT_ENABLE
|
RTE_BBDEV_LDPC_HQ_COMBINE_OUT_ENABLE
;
if
(
ops
[
i
]
->
ldpc_dec
.
rv_index
!=
0
)
{
if
(
p_offloadParams
->
setCombIn
)
{
ops
[
i
]
->
ldpc_dec
.
op_flags
|=
RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE
;
}
LOG_D
(
PHY
,
"ULSCH %02d HARQPID %02d R %02d COMBIN %d RV %d NCB %05d
\n
"
,
ulsch_id
,
harq_pid
,
r
,
p_offloadParams
->
setCombIn
,
p_offloadParams
->
rv
,
p_offloadParams
->
n_cb
);
ops
[
i
]
->
ldpc_dec
.
code_block_mode
=
1
;
// ldpc_dec->code_block_mode;
ops
[
i
]
->
ldpc_dec
.
harq_combined_input
.
offset
=
ulsch_id
*
(
32
*
1024
*
1024
)
+
harq_pid
*
(
2
*
1024
*
1024
)
+
r
*
(
1024
*
32
);
ops
[
i
]
->
ldpc_dec
.
harq_combined_output
.
offset
=
ulsch_id
*
(
32
*
1024
*
1024
)
+
harq_pid
*
(
2
*
1024
*
1024
)
+
r
*
(
1024
*
32
);
if
(
bufs
->
hard_outputs
!=
NULL
)
ops
[
i
]
->
ldpc_dec
.
hard_output
=
bufs
->
hard_outputs
[
start_idx
+
i
];
if
(
bufs
->
inputs
!=
NULL
)
...
...
@@ -1042,8 +1042,8 @@ int32_t LDPCdecoder(struct nrLDPC_dec_params *p_decParams,
decode_abort_t
*
ab
)
{
pthread_mutex_lock
(
&
decode_mutex
);
// hardcoded we use first device
struct
active_device
*
ad
=
active_devs
;
t_nrLDPCoffload_params
offloadParams
=
{.
E
=
p_decParams
->
E
,
.
n_cb
=
(
p_decParams
->
BG
==
1
)
?
(
66
*
p_decParams
->
Z
)
:
(
50
*
p_decParams
->
Z
),
...
...
@@ -1051,8 +1051,8 @@ int32_t LDPCdecoder(struct nrLDPC_dec_params *p_decParams,
.
Z
=
p_decParams
->
Z
,
.
rv
=
p_decParams
->
rv
,
.
F
=
p_decParams
->
F
,
.
Qm
=
p_decParams
->
Qm
};
LOG_D
(
PHY
,
"E %d
\n
"
,
p_decParams
->
E
)
;
.
Qm
=
p_decParams
->
Qm
,
.
setCombIn
=
p_decParams
->
setCombIn
}
;
struct
rte_bbdev_info
info
;
rte_bbdev_info_get
(
ad
->
dev_id
,
&
info
);
int
socket_id
=
GET_SOCKET
(
info
.
socket_id
);
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_types.h
View file @
7c5b9457
...
...
@@ -93,6 +93,7 @@ typedef struct nrLDPC_dec_params {
e_nrLDPC_outMode
outMode
;
/**< Output format */
int
crc_type
;
int
(
*
check_crc
)(
uint8_t
*
decoded_bytes
,
uint32_t
n
,
uint8_t
crc_type
);
uint8_t
setCombIn
;
}
t_nrLDPC_dec_params
;
typedef
struct
nrLDPCoffload_params
{
...
...
@@ -104,6 +105,7 @@ typedef struct nrLDPCoffload_params {
uint16_t
n_cb
;
uint16_t
F
;
/**< Filler bits */
uint8_t
Qm
;
/**< Modulation */
uint8_t
setCombIn
;
}
t_nrLDPCoffload_params
;
/**
...
...
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
View file @
7c5b9457
...
...
@@ -420,7 +420,7 @@ int nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
decParams
.
Z
=
harq_process
->
Z
;
decParams
.
numMaxIter
=
ulsch
->
max_ldpc_iterations
;
decParams
.
outMode
=
0
;
decParams
.
setCombIn
=
!
harq_process
->
harq_to_be_cleared
;
if
(
harq_process
->
harq_to_be_cleared
)
{
for
(
int
r
=
0
;
r
<
harq_process
->
C
;
r
++
)
harq_process
->
d_to_be_cleared
[
r
]
=
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment