Lines Matching +full:multi +full:- +full:channel
11 capability of the following: DMA_MEMCPY (memory-to-memory), DMA_MEMSET
12 (const-to-memory or memory-to-memory, when emulated), DMA_XOR, DMA_PQ.
18 Part 1 - How to build the test module
23 Device Drivers -> DMA Engine support -> DMA Test client
28 Part 2 - When dmatest is built as a module
33 % modprobe dmatest timeout=2000 iterations=1 channel=dma0chan0 run=1
40 % echo dma0chan0 > /sys/module/dmatest/parameters/channel
45 dmatest.timeout=2000 dmatest.iterations=1 dmatest.channel=dma0chan0 dmatest.run=1
47 Example of multi-channel test usage (new in the 5.0 kernel)::
52 % echo dma0chan0 > /sys/module/dmatest/parameters/channel
53 % echo dma0chan1 > /sys/module/dmatest/parameters/channel
54 % echo dma0chan2 > /sys/module/dmatest/parameters/channel
58 For all tests, starting in the 5.0 kernel, either single- or multi-channel,
59 the channel parameter(s) must be set after all other parameters. It is at
62 to any of the other parameters, and an additional channel specified, the
70 % ls -1 /sys/class/dma/
73 emitted. A thread for that specific channel is created and is now pending, the
93 % modprobe -r dmatest
99 % modprobe -r dmatest
101 Part 3 - When built-in in the kernel
106 re-run with the same or different parameters. For the details see the above
107 section `Part 2 - When dmatest is built as a module`_.
110 case. You always could check them at run-time by running ::
112 % grep -H . /sys/module/dmatest/parameters/*
114 Part 4 - Gathering the test results
119 …"dmatest: result <channel>: <test id>: '<error msg>' with src_off=<val> dst_off=<val> len=<val> (<…
123 % dmesg | tail -n 1
124 dmatest: result dma0chan0-copy0: #1: No errors with src_off=0x7bf dst_off=0x8ad len=0x3fea (0)
134 % dmesg | tail -n 1
135 dmatest: dma0chan0-copy0: summary 1 test, 0 failures 1000 iops 100000 KB/s (0)
140 Part 5 - Handling channel allocation
144 -------------------
154 Channels are registered using the "channel" parameter. Channels can be requested by their
155 name, once requested, the channel is registered and a pending thread is added to the test list.
159 % echo dma0chan2 > /sys/module/dmatest/parameters/channel
163 Reading back the channel parameter will return the name of last channel that was added successfully.
167 % echo dma0chan1 > /sys/module/dmatest/parameters/channel
169 % echo dma0chan2 > /sys/module/dmatest/parameters/channel
171 % cat /sys/module/dmatest/parameters/channel
174 Another method of requesting channels is to request a channel with an empty string, Doing so
179 % echo "" > /sys/module/dmatest/parameters/channel
202 Note: Channels will have to be configured for each test run as channel configurations do not
206 -------------------
212 % echo dma0chan1 > /sys/module/dmatest/parameters/channel
221 channel is requested after completing a successful test run.