Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
61b4e625
Commit
61b4e625
authored
Apr 14, 2021
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ertm14: fix swapped RX late/RX match streamer counters. Add Fixed latency info
parent
35323c61
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
board.c
boards/ertm14/board.c
+10
-0
cmd_ertm14.c
boards/ertm14/cmd_ertm14.c
+8
-4
No files found.
boards/ertm14/board.c
View file @
61b4e625
...
...
@@ -943,6 +943,16 @@ static void streamers_set_rx_latency( uint32_t lat )
writel
(
WR_STREAMERS_CFG_OR_RX_FIX_LAT
,
BASE_ERTM14_STREAMERS
+
offsetof
(
struct
WR_STREAMERS_WB
,
CFG
)
);
}
int
streamers_get_rx_latency
()
{
return
readl
(
BASE_ERTM14_STREAMERS
+
offsetof
(
struct
WR_STREAMERS_WB
,
RX_CFG5
)
);
}
int
streamers_get_rx_timeout
()
{
return
readl
(
BASE_ERTM14_STREAMERS
+
offsetof
(
struct
WR_STREAMERS_WB
,
RX_CFG6
)
);
}
static
void
streamers_set_rx_timeout
(
uint32_t
tmo
)
{
board_dbg
(
"streamers: set RX timeout = %d cycles
\n
"
,
tmo
);
...
...
boards/ertm14/cmd_ertm14.c
View file @
61b4e625
...
...
@@ -353,9 +353,9 @@ static int ertm14_monitor_ui(void)
ret
=
diag_read_word
(
8
,
DIAG_RO_BANK
,
&
rx_count
);
ret
=
diag_read_word
(
4
,
DIAG_RO_BANK
,
&
rx_lat_max
);
ret
=
diag_read_word
(
5
,
DIAG_RO_BANK
,
&
rx_lat_min
);
ret
=
diag_read_word
(
18
,
DIAG_RO_BANK
,
&
rx_match
);
ret
=
diag_read_word
(
2
0
,
DIAG_RO_BANK
,
&
rx_late
);
ret
=
diag_read_word
(
2
2
,
DIAG_RO_BANK
,
&
rx_timeout
);
ret
=
diag_read_word
(
20
,
DIAG_RO_BANK
,
&
rx_match
);
ret
=
diag_read_word
(
2
2
,
DIAG_RO_BANK
,
&
rx_late
);
ret
=
diag_read_word
(
2
4
,
DIAG_RO_BANK
,
&
rx_timeout
);
struct
ertm14_board_state
*
st
=
ertm14_get_current_state
();
...
...
@@ -373,7 +373,11 @@ static int ertm14_monitor_ui(void)
cprintf
(
C_WHITE
,
"%d
\n
"
,
rx_late
);
cprintf
(
C_GREY
,
"RX Timeout: "
);
cprintf
(
C_WHITE
,
"%d
\n
"
,
rx_timeout
);
cprintf
(
C_GREY
,
"RX Config Latency: "
);
cprintf
(
C_WHITE
,
"%d
\n
"
,
streamers_get_rx_latency
()
);
cprintf
(
C_GREY
,
"RX Config Timeout: "
);
cprintf
(
C_WHITE
,
"%d
\n
"
,
streamers_get_rx_timeout
()
);
cprintf
(
C_GREY
,
"
\n
NCO Reset status:
\n
"
);
cprintf
(
C_GREY
,
"LO DDS Reset Mode: "
);
cprintf
(
C_WHITE
,
"%s
\n
"
,
nco_sync_source_to_string
(
st
->
lo
.
sync_source
));
...
...
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