@@ -15,6 +15,7 @@ Part 1 - How to build the test module
15
15
=====================================
16
16
17
17
The menuconfig contains an option that could be found by following path:
18
+
18
19
Device Drivers -> DMA Engine support -> DMA Test client
19
20
20
21
In the configuration file the option called CONFIG_DMATEST. The dmatest could
@@ -23,26 +24,24 @@ be built as module or inside kernel. Let's consider those cases.
23
24
Part 2 - When dmatest is built as a module
24
25
==========================================
25
26
26
- Example of usage: : :
27
+ Example of usage::
27
28
28
29
% modprobe dmatest channel=dma0chan0 timeout=2000 iterations=1 run=1
29
30
30
- ...or: : :
31
+ ...or::
31
32
32
33
% modprobe dmatest
33
34
% echo dma0chan0 > /sys/module/dmatest/parameters/channel
34
35
% echo 2000 > /sys/module/dmatest/parameters/timeout
35
36
% echo 1 > /sys/module/dmatest/parameters/iterations
36
37
% echo 1 > /sys/module/dmatest/parameters/run
37
38
38
- ...or on the kernel command line: : :
39
+ ...or on the kernel command line::
39
40
40
41
dmatest.channel=dma0chan0 dmatest.timeout=2000 dmatest.iterations=1 dmatest.run=1
41
42
42
- ..hint:: available channel list could be extracted by running the following
43
- command:
44
-
45
- ::
43
+ .. hint ::
44
+ available channel list could be extracted by running the following command::
46
45
47
46
% ls -1 /sys/class/dma/
48
47
@@ -64,12 +63,12 @@ before returning. For example, the following scripts wait for 42 tests
64
63
to complete before exiting. Note that if 'iterations' is set to 'infinite' then
65
64
waiting is disabled.
66
65
67
- Example: : :
66
+ Example::
68
67
69
68
% modprobe dmatest run=1 iterations=42 wait=1
70
69
% modprobe -r dmatest
71
70
72
- ...or: : :
71
+ ...or::
73
72
74
73
% modprobe dmatest run=1 iterations=42
75
74
% cat /sys/module/dmatest/parameters/wait
@@ -81,7 +80,7 @@ Part 3 - When built-in in the kernel
81
80
The module parameters that is supplied to the kernel command line will be used
82
81
for the first performed test. After user gets a control, the test could be
83
82
re-run with the same or different parameters. For the details see the above
84
- section " Part 2 - When dmatest is built as a module..."
83
+ section ` Part 2 - When dmatest is built as a module `_.
85
84
86
85
In both cases the module parameters are used as the actual values for the test
87
86
case. You always could check them at run-time by running ::
@@ -91,12 +90,11 @@ case. You always could check them at run-time by running ::
91
90
Part 4 - Gathering the test results
92
91
===================================
93
92
94
- Test results are printed to the kernel log buffer with the format: : :
93
+ Test results are printed to the kernel log buffer with the format::
95
94
96
95
"dmatest: result <channel>: <test id>: '<error msg>' with src_off=<val> dst_off=<val> len=<val> (<err code>)"
97
96
98
- Example of output: ::
99
-
97
+ Example of output::
100
98
101
99
% dmesg | tail -n 1
102
100
dmatest: result dma0chan0-copy0: #1: No errors with src_off=0x7bf dst_off=0x8ad len=0x3fea (0)
@@ -106,7 +104,7 @@ the parens represents additional information, e.g. error code, error counter,
106
104
or status. A test thread also emits a summary line at completion listing the
107
105
number of tests executed, number that failed, and a result code.
108
106
109
- Example: : :
107
+ Example::
110
108
111
109
% dmesg | tail -n 1
112
110
dmatest: dma0chan0-copy0: summary 1 test, 0 failures 1000 iops 100000 KB/s (0)
0 commit comments