diff options
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/dmatest.txt | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/Documentation/dmatest.txt b/Documentation/dmatest.txt index 45b8c95f1a21..e6e16a7f3706 100644 --- a/Documentation/dmatest.txt +++ b/Documentation/dmatest.txt | |||
@@ -15,17 +15,19 @@ be built as module or inside kernel. Let's consider those cases. | |||
15 | 15 | ||
16 | Part 2 - When dmatest is built as a module... | 16 | Part 2 - When dmatest is built as a module... |
17 | 17 | ||
18 | After mounting debugfs and loading the module, the /sys/kernel/debug/dmatest | ||
19 | folder with a file named 'run' nodes will be created. 'run' controls run and | ||
20 | stop phases of the test. | ||
21 | |||
22 | Note that in this case test will not run on load automatically. | ||
23 | |||
24 | Example of usage: | 18 | Example of usage: |
19 | % modprobe dmatest channel=dma0chan0 timeout=2000 iterations=1 run=1 | ||
20 | |||
21 | ...or: | ||
22 | % modprobe dmatest | ||
25 | % echo dma0chan0 > /sys/module/dmatest/parameters/channel | 23 | % echo dma0chan0 > /sys/module/dmatest/parameters/channel |
26 | % echo 2000 > /sys/module/dmatest/parameters/timeout | 24 | % echo 2000 > /sys/module/dmatest/parameters/timeout |
27 | % echo 1 > /sys/module/dmatest/parameters/iterations | 25 | % echo 1 > /sys/module/dmatest/parameters/iterations |
28 | % echo 1 > /sys/kernel/debug/dmatest/run | 26 | % echo 1 > /sys/module/dmatest/parameters/run |
27 | |||
28 | ...or on the kernel command line: | ||
29 | |||
30 | dmatest.channel=dma0chan0 dmatest.timeout=2000 dmatest.iterations=1 dmatest.run=1 | ||
29 | 31 | ||
30 | Hint: available channel list could be extracted by running the following | 32 | Hint: available channel list could be extracted by running the following |
31 | command: | 33 | command: |
@@ -42,7 +44,7 @@ The following command should return actual state of the test. | |||
42 | 44 | ||
43 | To wait for test done the user may perform a busy loop that checks the state. | 45 | To wait for test done the user may perform a busy loop that checks the state. |
44 | 46 | ||
45 | % while [ $(cat /sys/kernel/debug/dmatest/run) = "Y" ] | 47 | % while [ $(cat /sys/module/dmatest/parameters/run) = "Y" ] |
46 | > do | 48 | > do |
47 | > echo -n "." | 49 | > echo -n "." |
48 | > sleep 1 | 50 | > sleep 1 |