Lines Matching +full:dma +full:- +full:channels

2 DMA Test Guide
7 This small document introduces how to test DMA drivers using dmatest module.
9 The dmatest module tests DMA memcpy, memset, XOR and RAID6 P+Q operations using
11 will initialize both buffers with a repeatable pattern and verify that the DMA
16 test multiple channels at the same time, and it can start multiple threads
20 The test suite works only on the channels that have at least one
21 capability of the following: DMA_MEMCPY (memory-to-memory), DMA_MEMSET
22 (const-to-memory or memory-to-memory, when emulated), DMA_XOR, DMA_PQ.
28 Part 1 - How to build the test module
33 Device Drivers -> DMA Engine support -> DMA Test client
38 Part 2 - When dmatest is built as a module
57 Example of multi-channel test usage (new in the 5.0 kernel)::
68 For all tests, starting in the 5.0 kernel, either single- or multi-channel,
74 After the channels are specified, each thread is set as pending. All threads
78 A list of available channels can be found by running the following command::
80 % ls -1 /sys/class/dma/
103 % modprobe -r dmatest
109 % modprobe -r dmatest
111 Part 3 - When built-in in the kernel
116 re-run with the same or different parameters. For the details see the above
117 section `Part 2 - When dmatest is built as a module`_.
120 case. You always could check them at run-time by running ::
122 % grep -H . /sys/module/dmatest/parameters/*
124 Part 4 - Gathering the test results
133 % dmesg | tail -n 1
134 dmatest: result dma0chan0-copy0: #1: No errors with src_off=0x7bf dst_off=0x8ad len=0x3fea (0)
144 % dmesg | tail -n 1
145 dmatest: dma0chan0-copy0: summary 1 test, 0 failures 1000 iops 100000 KB/s (0)
150 Part 5 - Handling channel allocation
153 Allocating Channels
154 -------------------
156 Channels do not need to be configured prior to starting a test run. Attempting
157 to run the test without configuring the channels will result in testing any
158 channels that are available.
163 dmatest: No channels configured, continue with any
165 Channels are registered using the "channel" parameter. Channels can be requested by their
173 More channels can be added by repeating the example above.
185 Another method of requesting channels is to request a channel with an empty string, Doing so
186 will request all channels available to be tested:
213 Note: Channels will have to be configured for each test run as channel configurations do not
216 Releasing Channels
217 -------------------
219 Channels can be freed by setting run to 0.
225 % cat /sys/class/dma/dma0chan1/in_use
228 % cat /sys/class/dma/dma0chan1/in_use
231 Channels allocated by previous test runs are automatically freed when a new