Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Simple PCIe FMC carrier SPEC
Commits
00a51e44
Commit
00a51e44
authored
Jun 26, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tst: fix test_dma_read parameters
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
c1aa6327
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
test_dma.py
pytest/test_dma.py
+11
-3
No files found.
pytest/test_dma.py
View file @
00a51e44
...
...
@@ -25,11 +25,19 @@ class TestDma(object):
spec
.
dma_stop
()
@
pytest
.
mark
.
parametrize
(
"dma_size"
,
[
random
.
randrange
(
0
,
1
*
1024
*
1024
,
4
)
for
i
in
range
(
100
)])
[
0
,
1
,
2
,
3
]
+
\
[
5
,
7
,
9
]
+
\
[
2
**
i
for
i
in
range
(
24
)])
def
test_dma_read
(
self
,
spec
,
dma_size
):
"""
Read from SPEC DDR at random offsets. We just want to see if the DMA
engine reports errors
We just want to see if the DMA engine reports errors. Test the
engine with different sizes, but same offset (default:
0x0). On the engine side we will get several transfers
(scatterlist) depending on the size.
Regressions:
- 0: the driver returns immediatly without starting any DMA transfer
- 1, 2, 3, 4: performing transfers of these sizes led to a failure
"""
spec
.
dma_start
()
data
=
spec
.
dma_read
(
dma_size
)
...
...
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