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
canghaiwuhen
OpenXG-RAN
Commits
e40f2532
Commit
e40f2532
authored
Jan 25, 2018
by
Veronica.Quintuna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change algo to have the same measurements accross all cases
parent
300def54
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
55 deletions
+34
-55
openair1/PHY/LTE_TRANSPORT/dlsch_coding.c
openair1/PHY/LTE_TRANSPORT/dlsch_coding.c
+2
-7
openair1/PHY/LTE_TRANSPORT/ulsch_decoding.c
openair1/PHY/LTE_TRANSPORT/ulsch_decoding.c
+5
-14
openair1/SCHED/phy_procedures_lte_eNb.c
openair1/SCHED/phy_procedures_lte_eNb.c
+27
-34
No files found.
openair1/PHY/LTE_TRANSPORT/dlsch_coding.c
View file @
e40f2532
...
...
@@ -636,14 +636,9 @@ int dlsch_encoding(PHY_VARS_eNB *eNB,
req
->
coreId
=
0
;
req
->
processedBy
[
0
]
=
0
;
req
->
decodeIterations
=
0
;
// Ignore write error (if no trace listner)
if
(
write
(
eNB
->
proc
.
threadPool
.
traceFd
,
req
,
sizeof
(
request_t
)
-
2
*
sizeof
(
void
*
)))
{};
start_meas
(
i_stats
);
rdata
->
dlsch
->
harq_processes
[
rdata
->
harq_pid
]
->
RTC
[
rdata
->
r
]
=
sub_block_interleaving_turbo
(
4
+
(
rdata
->
Kr_bytes
*
8
),
rdata
->
output
+
96
,
//&dlsch->harq_processes[harq_pid]->d[r][96],
rdata
->
dlsch
->
harq_processes
[
rdata
->
harq_pid
]
->
w
[
rdata
->
r
]);
req
->
next
=
eNB
->
proc
.
threadPool
.
doneRequests
;
eNB
->
proc
.
threadPool
.
doneRequests
=
req
;
stop_meas
(
i_stats
);
free
(
req
);
}
}
return
0
;
...
...
openair1/PHY/LTE_TRANSPORT/ulsch_decoding.c
View file @
e40f2532
...
...
@@ -704,25 +704,16 @@ request_t * ulsch_decoding_data(PHY_VARS_eNB *eNB,int UE_id,int harq_pid,int llr
req
->
decodeIterations
=
rdata
->
decodeIterations
;
req
->
coreId
=
0
;
req
->
processedBy
[
0
]
=
0
;
// Ignore write error (if no trace listner)
if
(
write
(
eNB
->
proc
.
threadPool
.
traceFd
,
req
,
sizeof
(
request_t
)
-
2
*
sizeof
(
void
*
)))
{};
// Reassembly of Transport block here
if
(
rdata
->
decodeIterations
<=
eNB
->
ulsch
[
UE_id
]
->
max_turbo_iterations
)
{
// last block in a TDU is processed in caller
if
(
rdata
->
segment_r
<
(
rdata
->
nbSegments
-
1
)
)
{
ulsch_harq
->
processedSegments
++
;
memcpy
(
ulsch_harq
->
b
+
rdata
->
offset
,
rdata
->
decoded_bytes
+
Fbytes
,
blockSize
);
freeRequest
(
req
);
}
}
else
req
->
next
=
eNB
->
proc
.
threadPool
.
doneRequests
;
eNB
->
proc
.
threadPool
.
doneRequests
=
req
;
if
(
rdata
->
decodeIterations
>
eNB
->
ulsch
[
UE_id
]
->
max_turbo_iterations
)
// Entire TPU need retransmission
break
;
}
offset
+=
blockSize
;
}
return
(
req
)
;
return
NULL
;
}
static
inline
unsigned
int
lte_gold_unscram
(
unsigned
int
*
x1
,
unsigned
int
*
x2
,
unsigned
char
reset
)
__attribute__
((
always_inline
));
...
...
openair1/SCHED/phy_procedures_lte_eNb.c
View file @
e40f2532
...
...
@@ -584,7 +584,6 @@ void phy_procedures_eNB_TX(PHY_VARS_eNB *eNB,
if
(
eNB
->
proc
.
threadPool
.
activated
)
{
// Wait all other threads finish to process
int
nbRequest
=
0
;
//printf("%s:%d:%d\n", __FILE__,__LINE__,eNB->proc.threadPool.notFinishedJobs);
int
rr
=
0
;
mutexlock
(
eNB
->
proc
.
threadPool
.
lockReportDone
);
...
...
@@ -611,8 +610,7 @@ void phy_procedures_eNB_TX(PHY_VARS_eNB *eNB,
}
}
mutexunlock
(
eNB
->
proc
.
threadPool
.
lockReportDone
);
}
request_t
*
tmp
;
while
((
tmp
=
eNB
->
proc
.
threadPool
.
doneRequests
)
!=
NULL
)
{
tmp
->
returnTime
=
rdtsc
();
...
...
@@ -627,9 +625,6 @@ void phy_procedures_eNB_TX(PHY_VARS_eNB *eNB,
rdata
->
dlsch
->
harq_processes
[
rdata
->
harq_pid
]
->
w
[
rdata
->
r
]);
freeRequest
(
tmp
);
stop_meas
(
&
eNB
->
dlsch_interleaving_stats
);
nbRequest
++
;
}
//if ( nbRequest ) printf("Done %d code blocks in %ld µsec\n", nbRequest, (rdtsc()-now)/eNB->proc.threadPool.cpuCyclesMicroSec);
}
for
(
UE_id
=
0
;
UE_id
<
NUMBER_OF_UE_MAX
;
UE_id
++
)
{
...
...
@@ -1487,7 +1482,6 @@ void post_decode(request_t* decodeResult) {
if
(
ulsch_harq
->
O_ACK
>
0
)
fill_ulsch_harq_indication
(
eNB
,
ulsch_harq
,
ulsch
->
rnti
,
rdata
->
frame
,
rdata
->
subframe
,
ulsch
->
bundling
);
}
freeRequest
(
decodeResult
);
}
void
pusch_procedures
(
PHY_VARS_eNB
*
eNB
,
eNB_rxtx_proc_t
*
proc
)
...
...
@@ -1548,8 +1542,6 @@ void pusch_procedures(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc)
frame
,
subframe
);
stop_meas
(
&
eNB
->
ulsch_decoding_stats
);
if
(
ret
!=
NULL
)
post_decode
(
ret
);
}
else
if
(
ulsch
&&
ulsch
->
rnti
>
0
&&
(
ulsch_harq
->
status
==
ACTIVE
)
&&
(
ulsch_harq
->
frame
==
frame
)
&&
...
...
@@ -1590,17 +1582,18 @@ void pusch_procedures(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc)
}
}
mutexunlock
(
eNB
->
proc
.
threadPool
.
lockReportDone
);
}
request_t
*
tmp
;
while
((
tmp
=
eNB
->
proc
.
threadPool
.
doneRequests
)
!=
NULL
)
{
tmp
->
returnTime
=
rdtsc
();
turboDecode_t
*
rdata
=
(
turboDecode_t
*
)
tmp
->
data
;
tmp
->
decodeIterations
=
rdata
->
decodeIterations
;
post_decode
(
tmp
);
tmp
->
returnTime
=
rdtsc
();
// Ignore write error (if no trace listner)
if
(
write
(
eNB
->
proc
.
threadPool
.
traceFd
,
tmp
,
sizeof
(
request_t
)
-
2
*
sizeof
(
void
*
)))
{};
eNB
->
proc
.
threadPool
.
doneRequests
=
tmp
->
next
;
post_decode
(
tmp
);
}
freeRequest
(
tmp
);
}
}
...
...
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